mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-07 04:24:35 -04:00
FEATURE: Allow emoji in some translated strings
This commit is contained in:
parent
fbfdb4c28a
commit
7e8f4286e3
3 changed files with 8 additions and 4 deletions
app/assets/javascripts/discourse
config/locales
|
@ -3,3 +3,7 @@ import registerUnbound from 'discourse/helpers/register-unbound';
|
|||
registerUnbound('i18n', function(key, params) {
|
||||
return I18n.t(key, params);
|
||||
});
|
||||
|
||||
registerUnbound('replace-emoji', function(text) {
|
||||
return new Handlebars.SafeString(Discourse.Emoji.unescape(text));
|
||||
});
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
<a {{action "neverShow"}}>{{i18n "signup_cta.hide_forever"}}</a>
|
||||
</p>
|
||||
{{else}}
|
||||
<p>{{i18n "signup_cta.intro"}}</p>
|
||||
<p>{{i18n "signup_cta.value_prop"}}</p>
|
||||
<p>{{replace-emoji (i18n "signup_cta.intro")}}</p>
|
||||
<p>{{replace-emoji (i18n "signup_cta.value_prop")}}</p>
|
||||
<p>{{signupMethodsTranslated}}</p>
|
||||
|
||||
<div class="buttons">
|
||||
|
|
|
@ -729,8 +729,8 @@ en:
|
|||
hide_session: "Remind me tomorrow"
|
||||
hide_forever: "Never show this again"
|
||||
hidden_for_session: "OK, I'll ask you tomorrow. You can always click the 'Log In' button to create an account, too."
|
||||
intro: Hey there! ? Looks like you're enjoying the discussion, but you're not signed up for an account.
|
||||
value_prop: When you create an account, we can track exactly what you've read, so you always come right back where you left off. You can also get notifications, here and via email, whenever new posts are made. And you can like posts to share the love. 💘
|
||||
intro: "Hey there! :heart_eyes: Looks like you're enjoying the discussion, but you're not signed up for an account."
|
||||
value_prop: "When you create an account, we can track exactly what you've read, so you always come right back where you left off. You can also get notifications, here and via email, whenever new posts are made. And you can like posts to share the love. :heartbeat:"
|
||||
methods:
|
||||
sso: "Signing up is easy: all you need is an account on the main site."
|
||||
only_email: "Signing up is easy: all you need is an email and password."
|
||||
|
|
Loading…
Add table
Reference in a new issue