From 5e634aef87861a396ec6c79e6e2b126ac44af5d3 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Sun, 10 Mar 2019 01:43:02 +0100 Subject: [PATCH] Fix possible order changes for 'Powered by' in other languages Since not all languages use the same word oder and we run into potential issues, where the translation of powered by need to add something after the CodiMD link, this should give us the needed flexiblity. Signed-off-by: Sheogorath --- locales/en.json | 2 +- public/views/index/body.ejs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/locales/en.json b/locales/en.json index 262b5f77e..15ed6e4e2 100644 --- a/locales/en.json +++ b/locales/en.json @@ -114,6 +114,6 @@ "Export user data": "Export user data", "Help us translating on %s": "Help us translating on %s", "Source Code": "Source Code", - "Powered by": "Powered by", + "Powered by %s": "Powered by %s", "Register": "Register" } diff --git a/public/views/index/body.ejs b/public/views/index/body.ejs index 3cab8bf34..40ff9db37 100644 --- a/public/views/index/body.ejs +++ b/public/views/index/body.ejs @@ -150,7 +150,7 @@

- <%= __('Powered by') %> CodiMD | <%= __('Releases') %>| <%= __('Source Code') %><% if(privacyStatement) { %> | <%= __('Privacy') %><% } %><% if(termsOfUse) { %> | <%= __('Terms of Use') %><% } %> + <%- __('Powered by %s', 'CodiMD') %> | <%= __('Releases') %>| <%= __('Source Code') %><% if(privacyStatement) { %> | <%= __('Privacy') %><% } %><% if(termsOfUse) { %> | <%= __('Terms of Use') %><% } %>