From b65ac132b7c2962fd89951c569641cabe5b8212e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Thu, 25 Dec 2014 18:04:23 +0100 Subject: [PATCH] FIX: 1.9 regression on i18n strings with variables --- .../javascripts/discourse/templates/modal/not_activated.hbs | 4 ++-- app/assets/javascripts/discourse/templates/user-card.hbs | 2 +- .../javascripts/discourse/templates/user/preferences.hbs | 2 +- app/assets/javascripts/discourse/templates/user/user.hbs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/modal/not_activated.hbs b/app/assets/javascripts/discourse/templates/modal/not_activated.hbs index f4d0f2e14f5..4266126c8d3 100644 --- a/app/assets/javascripts/discourse/templates/modal/not_activated.hbs +++ b/app/assets/javascripts/discourse/templates/modal/not_activated.hbs @@ -1,8 +1,8 @@ diff --git a/app/assets/javascripts/discourse/templates/user-card.hbs b/app/assets/javascripts/discourse/templates/user-card.hbs index b04b659f58f..3f65a1865e8 100644 --- a/app/assets/javascripts/discourse/templates/user-card.hbs +++ b/app/assets/javascripts/discourse/templates/user-card.hbs @@ -43,7 +43,7 @@ {{#if isSuspended}}
{{fa-icon "ban"}} - {{i18n 'user.suspended_notice' date="user.suspendedTillDate"}}
+ {{i18n 'user.suspended_notice' date=user.suspendedTillDate}}
{{i18n 'user.suspended_reason'}} {{user.suspend_reason}}
{{else}} diff --git a/app/assets/javascripts/discourse/templates/user/preferences.hbs b/app/assets/javascripts/discourse/templates/user/preferences.hbs index 4a9e7e436c5..a1d50a4b569 100644 --- a/app/assets/javascripts/discourse/templates/user/preferences.hbs +++ b/app/assets/javascripts/discourse/templates/user/preferences.hbs @@ -17,7 +17,7 @@ {{/if}}
- {{{i18n 'user.username.short_instructions' username="username"}}} + {{{i18n 'user.username.short_instructions' username=username}}}
diff --git a/app/assets/javascripts/discourse/templates/user/user.hbs b/app/assets/javascripts/discourse/templates/user/user.hbs index 524a0232fdf..cccf2d5b27c 100644 --- a/app/assets/javascripts/discourse/templates/user/user.hbs +++ b/app/assets/javascripts/discourse/templates/user/user.hbs @@ -79,7 +79,7 @@ {{#if isSuspended}}
{{fa-icon "ban"}} - {{i18n 'user.suspended_notice' date="suspendedTillDate"}}
+ {{i18n 'user.suspended_notice' date=suspendedTillDate}}
{{i18n 'user.suspended_reason'}} {{suspend_reason}}
{{/if}}