Merge pull request #3779 from riking/signup-cta

Allow emoji in translated strings
This commit is contained in:
Sam 2015-09-17 11:34:41 +10:00
commit faada383fa
3 changed files with 8 additions and 4 deletions

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