From e7716e6dd226284438fd6237ee6055f7de621c62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Wed, 22 Apr 2015 16:38:34 +0200 Subject: [PATCH] [i18n] Fix issues section name --- app/coffee/modules/issues/list.coffee | 8 +++++--- app/locales/locale-en.json | 1 + app/locales/locale-es.json | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/coffee/modules/issues/list.coffee b/app/coffee/modules/issues/list.coffee index f13d5e16..82d43e97 100644 --- a/app/coffee/modules/issues/list.coffee +++ b/app/coffee/modules/issues/list.coffee @@ -51,12 +51,14 @@ class IssuesController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fi "$tgNavUrls", "$tgEvents", "$tgAnalytics", - "tgLoader" + "tgLoader", + "$translate" ] constructor: (@scope, @rootscope, @repo, @confirm, @rs, @urls, @params, @q, @location, @appTitle, - @navUrls, @events, @analytics, tgLoader) -> - @scope.sectionName = "Issues" + @navUrls, @events, @analytics, tgLoader, @translate) -> + + @scope.sectionName = @translate.instant("ISSUES.LIST_SECTION_NAME") @scope.filters = {} if _.isEmpty(@location.search()) diff --git a/app/locales/locale-en.json b/app/locales/locale-en.json index 123c0d1e..d2b06f21 100644 --- a/app/locales/locale-en.json +++ b/app/locales/locale-en.json @@ -700,6 +700,7 @@ "LINK_LOGIN": "Are you already registered? Log in" }, "ISSUES": { + "LIST_SECTION_NAME": "Issues", "SECTION_NAME": "Issue Details", "ACTION_NEW_ISSUE": "+ NEW ISSUE", "ACTION_PROMOTE_TO_US": "Promote to User Story", diff --git a/app/locales/locale-es.json b/app/locales/locale-es.json index 26763a59..7eb451f6 100644 --- a/app/locales/locale-es.json +++ b/app/locales/locale-es.json @@ -697,6 +697,7 @@ "LINK_LOGIN": "¿Ya te has registrado? Inicia sesión" }, "ISSUES": { + "LIST_SECTION_NAME": "Peticiones", "SECTION_NAME": "Detalles de la petición", "ACTION_NEW_ISSUE": "+ NUEVA PETICIÓN", "ACTION_PROMOTE_TO_US": "Promover a Historia de Usuario",