From 494a0d5f065f4c5ffdc8795f51cb747426df72b3 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Fri, 23 Nov 2018 17:10:31 +0100 Subject: Add some missing translations There are some places in our code that made it to be not translated. This patch fixes some small translation problems and adds some static strings in templates to translation. Signed-off-by: Sheogorath --- locales/en.json | 4 +++- public/views/index/body.ejs | 2 +- public/views/shared/signin-modal.ejs | 16 ++++++++-------- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/locales/en.json b/locales/en.json index ead7ce2f..262b5f77 100644 --- a/locales/en.json +++ b/locales/en.json @@ -113,5 +113,7 @@ "Delete user": "Delete user", "Export user data": "Export user data", "Help us translating on %s": "Help us translating on %s", - "Source Code": "Source Code" + "Source Code": "Source Code", + "Powered by": "Powered by", + "Register": "Register" } diff --git a/public/views/index/body.ejs b/public/views/index/body.ejs index a5e591ef..3cab8bf3 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') %> CodiMD | <%= __('Releases') %>| <%= __('Source Code') %><% if(privacyStatement) { %> | <%= __('Privacy') %><% } %><% if(termsOfUse) { %> | <%= __('Terms of Use') %><% } %>

<%- __('Follow us on %s and %s.', ' GitHub, Riot', ' POEditor') %> diff --git a/public/views/shared/signin-modal.ejs b/public/views/shared/signin-modal.ejs index d46b8d54..40f01b57 100644 --- a/public/views/shared/signin-modal.ejs +++ b/public/views/shared/signin-modal.ejs @@ -57,7 +57,7 @@
<% }%> <% if (authProviders.ldap) { %> -

Via <% if (authProviders.ldapProviderName) { %> <%= authProviders.ldapProviderName %> (LDAP) <% } else { %> LDAP <% } %>

+

<%= __('Sign in via %s', authProviders.ldapProviderName ? authProviders.ldapProviderName + ' (LDAP)' : 'LDAP') %>

@@ -73,7 +73,7 @@
- +
@@ -82,7 +82,7 @@
<% }%> <% if (authProviders.openID) { %> -

OpenID

+

<%= __('Sign in via %s', 'OpenID') %>

@@ -92,7 +92,7 @@
- +
@@ -101,11 +101,11 @@
<% }%> <% if (authProviders.email) { %> -

Via Email

+

<%= __('Sign in via %s', 'E-Mail') %>

- +
@@ -117,8 +117,8 @@
- - <% if (authProviders.allowEmailRegister) { %><% }%> + + <% if (authProviders.allowEmailRegister) { %><% }%>
-- cgit v1.2.3