summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSheogorath2019-03-10 01:43:02 +0100
committerSheogorath2019-03-10 01:43:13 +0100
commit5e634aef87861a396ec6c79e6e2b126ac44af5d3 (patch)
tree91986b1ae7f921978632e617caf82f90d29d0493
parent1ffc492442261f8cd2bde8b10f0a3227250e7ca6 (diff)
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 <sheogorath@shivering-isles.com>
-rw-r--r--locales/en.json2
-rw-r--r--public/views/index/body.ejs2
2 files changed, 2 insertions, 2 deletions
diff --git a/locales/en.json b/locales/en.json
index 262b5f77..15ed6e4e 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 3cab8bf3..40ff9db3 100644
--- a/public/views/index/body.ejs
+++ b/public/views/index/body.ejs
@@ -150,7 +150,7 @@
<option value="id">Bahasa Indonesia</option>
</select>
<p>
- <%= __('Powered by') %> <a href="https://codimd.org">CodiMD</a> | <a href="<%- serverURL %>/s/release-notes" target="_blank" rel="noopener"><%= __('Releases') %></a>| <a href="<%- sourceURL %>" target="_blank" rel="noopener"><%= __('Source Code') %></a><% if(privacyStatement) { %> | <a href="<%- serverURL %>/s/privacy" target="_blank" rel="noopener"><%= __('Privacy') %></a><% } %><% if(termsOfUse) { %> | <a href="<%- serverURL %>/s/terms-of-use" target="_blank" rel="noopener"><%= __('Terms of Use') %></a><% } %>
+ <%- __('Powered by %s', '<a href="https://codimd.org">CodiMD</a>') %> | <a href="<%- serverURL %>/s/release-notes" target="_blank" rel="noopener"><%= __('Releases') %></a>| <a href="<%- sourceURL %>" target="_blank" rel="noopener"><%= __('Source Code') %></a><% if(privacyStatement) { %> | <a href="<%- serverURL %>/s/privacy" target="_blank" rel="noopener"><%= __('Privacy') %></a><% } %><% if(termsOfUse) { %> | <a href="<%- serverURL %>/s/terms-of-use" target="_blank" rel="noopener"><%= __('Terms of Use') %></a><% } %>
</p>
<h6 class="social-foot">
<%- __('Follow us on %s and %s.', '<a href="https://github.com/hackmdio/CodiMD" target="_blank" rel="noopener"><i class="fa fa-github"></i> GitHub</a>, <a href="https://riot.im/app/#/room/#codimd:matrix.org" target="_blank" rel="noopener"><i class="fa fa-comments"></i> Riot</a>', '<a href="https://translate.codimd.org" target="_blank" rel="noopener"><i class="fa fa-globe"></i> POEditor</a>') %>