From 5518014024e06b869608dcce39fcd081911852f1 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Mon, 18 Apr 2022 18:21:46 +0200 Subject: [PATCH] Add translations for footer --- app/views/shared/_links.haml | 10 +++++----- config/locales/views.en.yml | 6 ++++++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/app/views/shared/_links.haml b/app/views/shared/_links.haml index 2c087d25..410469e1 100644 --- a/app/views/shared/_links.haml +++ b/app/views/shared/_links.haml @@ -1,12 +1,12 @@ .text-center.text-muted.pb-3 © = Date.today.year - %span{ title: Retrospring::Version.to_s }= APP_CONFIG['site_name'] + %span{ title: Retrospring::Version.to_s }= APP_CONFIG["site_name"] · - = link_to t('views.general.about'), about_path + = link_to t('.about'), about_path · - = link_to 'GitHub', 'https://github.com/Retrospring/retrospring' + = link_to t('.source'), 'https://github.com/Retrospring/retrospring' · - = link_to t('views.general.terms'), terms_path + = link_to t('.terms'), terms_path · - = link_to t('views.general.privacy'), privacy_policy_path + = link_to t('.privacy'), privacy_policy_path diff --git a/config/locales/views.en.yml b/config/locales/views.en.yml index bfb94ce2..37d488d4 100644 --- a/config/locales/views.en.yml +++ b/config/locales/views.en.yml @@ -174,6 +174,12 @@ en: body: "Raised content basically describes all the different boxes and panels you can see across the site." accent: example: "Some text on top of a accented area on a raised element!" + shared: + links: + about: "About" + source: "Source code" + terms: "Terms of Service" + privacy: "Privacy Policy" static: about: title: "About"