From 9cb6a37f3cab8dba3e0cfca6fdd0ddc332fc81a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Juli=C3=A1n?= Date: Thu, 7 May 2015 12:10:27 +0200 Subject: [PATCH] Translations --- app/locales/locale-en.json | 10 ++++++++++ app/modules/profile/includes/profile-bar.jade | 16 ++++++++-------- app/modules/profile/profile.jade | 2 +- 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/app/locales/locale-en.json b/app/locales/locale-en.json index c56a4a61..59f10abc 100644 --- a/app/locales/locale-en.json +++ b/app/locales/locale-en.json @@ -531,6 +531,16 @@ "TITLE": "Services" } }, + "USER": { + "PROFILE": { + "EDIT": "Edit profile", + "FOLLOW": "Follow", + "PROJECTS": "Projects", + "CLOSED_US": "Closed US", + "CONTACTS": "Contacts", + "REPORT": "Report Abuse" + } + }, "PROJECT": { "WELCOME": "Welcome", "SECTION_PROJECTS": "Projects", diff --git a/app/modules/profile/includes/profile-bar.jade b/app/modules/profile/includes/profile-bar.jade index a7a7aab3..fde3251b 100644 --- a/app/modules/profile/includes/profile-bar.jade +++ b/app/modules/profile/includes/profile-bar.jade @@ -1,12 +1,12 @@ section.profile-bar div.profile-image-wrapper img.profile-img(src="http://i.imgur.com/gPiHzHN.jpg", alt="{{ user.nickname }}") - div.edit-profile(title="Edit profile") - a.profile-edition(title="Edit Profile", href="") + div.edit-profile(title="{{ 'USER.PROFILE.EDIT' | translate }}") + a.profile-edition(title="{{ 'USER.PROFILE.EDIT' | translate }}", href="") span.icon.icon-edit - span Edit Profile + span(translate="USER.PROFILE.EDIT") a.button-green - span Follow + span(translate="USER.PROFILE.FOLLOW") div.profile-data h1 Silvia Rodríguez // If user has no defined role in its profile use all its project defined roles followed by an & @@ -15,19 +15,19 @@ section.profile-bar include ../../../svg/location.svg span Madrid // Remove Abuse Flag when a user is seeing itself - a.flag(href="", title="Report Abuse") + a.flag(href="", title="{{ 'USER.PROFILE.REPORT' | translate }}") include ../../../svg/flag.svg // These values in profile stats are not defined yet in UX. Please ask div.profile-stats div.stat span.stat-number 3 - span.stat-name projects + span.stat-name(translate="USER.PROFILE.PROJECTS") div.stat span.stat-number 67 - span.stat-name us done + span.stat-name(translate="USER.PROFILE.CLOSED_US") div.stat span.stat-number 34 - span.stat-name contacts + span.stat-name(translate="USER.PROFILE.CONTACTS") // TODO Hide until organizations come div.profile-organizations h3 Organizations diff --git a/app/modules/profile/profile.jade b/app/modules/profile/profile.jade index 8393deba..8ce0ba20 100644 --- a/app/modules/profile/profile.jade +++ b/app/modules/profile/profile.jade @@ -12,7 +12,7 @@ div.profile.centered div(tg-profile-tab="contacts", tab-title="Contacts Tab", tab-icon="icon-team") include includes/profile-contacts - div(tg-profile-tab="favorities", tab-title="Favorites Tab", tab-icon="icon-star-fill") + div(tg-profile-tab="favorites", tab-title="Favorites Tab", tab-icon="icon-star-fill") include includes/profile-favorites include includes/profile-sidebar