From 5fd4acffd5f8d5a92503b309fa74d0c81014c463 Mon Sep 17 00:00:00 2001 From: Mathias Jakobsen Date: Mon, 13 Mar 2023 10:07:59 +0000 Subject: [PATCH] Merge pull request #12159 from overleaf/jel-translations [web] Add translations for top nav and footer GitOrigin-RevId: 4240943e91ea6e1d19ce020cdacfe05c0302fdf8 --- services/web/app/views/layout/fat-footer-base.pug | 6 +++--- services/web/app/views/layout/footer-marketing.pug | 1 + services/web/locales/en.json | 9 ++++++++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/services/web/app/views/layout/fat-footer-base.pug b/services/web/app/views/layout/fat-footer-base.pug index de24c6c314..8be6728af8 100644 --- a/services/web/app/views/layout/fat-footer-base.pug +++ b/services/web/app/views/layout/fat-footer-base.pug @@ -9,10 +9,10 @@ .fat-footer-base-item a.fat-footer-social(href="https://twitter.com/overleaf") i.fa.fa-twitter-square(aria-hidden="true") - .sr-only Overleaf on Twitter + .sr-only #{translate("app_on_x", {social: "Twitter"})} a.fat-footer-social(href="https://www.facebook.com/overleaf.editor") i.fa.fa-facebook-square(aria-hidden="true") - .sr-only Overleaf on Facebook + .sr-only #{translate("app_on_x", {social: "Facebook"})} a.fat-footer-social(href="https://www.linkedin.com/company/writelatex-limited") i.fa.fa-linkedin-square(aria-hidden="true") - .sr-only Overleaf on LinkedIn + .sr-only #{translate("app_on_x", {social: "LinkedIn"})} diff --git a/services/web/app/views/layout/footer-marketing.pug b/services/web/app/views/layout/footer-marketing.pug index 1f7f184e19..23c0fd1eb9 100644 --- a/services/web/app/views/layout/footer-marketing.pug +++ b/services/web/app/views/layout/footer-marketing.pug @@ -8,6 +8,7 @@ footer.site-footer li © #{new Date().getFullYear()} Overleaf else if !settings.nav.hide_powered_by li + //- year of Server Pro release, static | © 2023 | a(href='https://www.overleaf.com/for/enterprises') Powered by Overleaf diff --git a/services/web/locales/en.json b/services/web/locales/en.json index 96926d2690..d43896486b 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -88,6 +88,7 @@ "anonymous": "Anonymous", "anyone_with_link_can_edit": "Anyone with this link can edit this project", "anyone_with_link_can_view": "Anyone with this link can view this project", + "app_on_x": "__appName__ on __social__", "apply_educational_discount": "Apply educational discount", "apply_educational_discount_info": "Overleaf offers a 40% educational discount for groups of 10 or more. Applies to students or faculty using Overleaf for teaching.", "approaching_compile_timeout_limit_upgrade_for_more_compile_time": "You are approaching your compile timeout limit. Upgrade to Overleaf Premium for <0>4x more compile time.", @@ -482,6 +483,7 @@ "feature_not_included": "Feature not included", "featured_latex_templates": "Featured LaTeX Templates", "features": "Features", + "features_and_benefits": "Features & Benefits", "february": "February", "file_action_created": "Created", "file_action_deleted": "Deleted", @@ -516,12 +518,17 @@ "footer_plans_and_pricing": "Plans & pricing", "for_american_express": "For <0>American Express, the <1>4 digits on the <2>front of your card.", "for_enterprise": "For enterprise", + "for_enterprises": "For Enterprises", + "for_groups": "For Groups", "for_groups_or_site_wide": "For groups or site-wide", "for_individuals_and_groups": "For individuals & groups", + "for_publishers": "For Publishers", "for_students": "For students", "for_students_only": "For students only", - "for_universities": "For universities", + "for_teaching": "For Teaching", + "for_universities": "For Universities", "for_visa_mastercard_and_discover": "For <0>Visa, MasterCard and Discover, the <1>3 digits on the <2>back of your card.", + "for_writing": "For Writing", "forgot_your_password": "Forgot your password", "fr": "French", "free": "Free",