From 5afd6cc8a1fa63f93161f783e1090d805c8151e5 Mon Sep 17 00:00:00 2001 From: Kuba Brecka Date: Tue, 5 Mar 2013 08:30:47 +0100 Subject: [PATCH] extract some strings from views/modal --- .../javascripts/discourse/views/modal/edit_category_view.js | 2 +- app/assets/javascripts/discourse/views/modal/history_view.js | 2 +- config/locales/client.en.yml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/views/modal/edit_category_view.js b/app/assets/javascripts/discourse/views/modal/edit_category_view.js index 480e850ae96..97e96254c01 100644 --- a/app/assets/javascripts/discourse/views/modal/edit_category_view.js +++ b/app/assets/javascripts/discourse/views/modal/edit_category_view.js @@ -23,7 +23,7 @@ Discourse.EditCategoryView = Discourse.ModalBodyView.extend({ title: (function() { if (this.get('category.id')) return Em.String.i18n("category.edit_long"); - return "Create Category"; + return Em.String.i18n("category.create"); }).property('category.id'), buttonTitle: (function() { diff --git a/app/assets/javascripts/discourse/views/modal/history_view.js b/app/assets/javascripts/discourse/views/modal/history_view.js index 474eaad1c41..36a48c8dcbe 100644 --- a/app/assets/javascripts/discourse/views/modal/history_view.js +++ b/app/assets/javascripts/discourse/views/modal/history_view.js @@ -8,7 +8,7 @@ **/ Discourse.HistoryView = Discourse.View.extend({ templateName: 'history', - title: 'History', + title: Em.String.i18n('history'), modalClass: 'history-modal', loadSide: function(side) { diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 7c1c75caf06..3e2caf700af 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -585,6 +585,7 @@ en: likes: "Likes" top_contributors: "Participants" category_title: "Category" + history: "History" categories_list: "Categories List"