mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 17:53:23 +08:00
Merge pull request #3779 from riking/signup-cta
Allow emoji in translated strings
This commit is contained in:
commit
faada383fa
|
@ -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…
Reference in New Issue
Block a user