FEATURE: Allow emoji in some translated strings

This commit is contained in:
Kane York 2015-09-16 17:28:33 -07:00
parent fbfdb4c28a
commit 7e8f4286e3
3 changed files with 8 additions and 4 deletions
app/assets/javascripts/discourse
helpers
templates/components
config/locales

View file

@ -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));
});

View file

@ -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">

View file

@ -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."