From 7de482ac213c10e1dbfb31d53f66ea85cd2c2b57 Mon Sep 17 00:00:00 2001 From: Cyril Mougel Date: Mon, 19 Aug 2013 17:37:54 +0200 Subject: [PATCH] Extract i18n key in apps/index view --- app/views/apps/index.html.haml | 20 ++++++++++---------- config/locales/en.yml | 14 +++++++++++++- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/app/views/apps/index.html.haml b/app/views/apps/index.html.haml index 0c321c6..19f8064 100644 --- a/app/views/apps/index.html.haml +++ b/app/views/apps/index.html.haml @@ -1,20 +1,20 @@ -- content_for :title, 'Apps' +- content_for :title, t('.title') - content_for :action_bar do - %span= link_to('Add a New App', new_app_path, :class => 'add') if current_user.admin? + %span= link_to(t('.new_app'), new_app_path, :class => 'add') if current_user.admin? %table.apps %thead %tr - %th Name + %th= t('.name') - if any_github_repos? || any_bitbucket_repos? - %th Repository + %th= t('.repository') - if any_notification_services? - %th Notify + %th= t('.notify') - if any_issue_trackers? - %th Tracker + %th= t('.tracker') - if any_deploys? - %th Last Deploy - %th Errors + %th= t('.last_deploy') + %th=t('.errors') %tbody - apps.each do |app| %tr @@ -54,6 +54,6 @@ %tr %td{:colspan => 3} %em - No apps here. - = link_to 'Click here to create your first one', new_app_path + = t('.no_apps') + = link_to t('.click_to_create'), new_app_path diff --git a/config/locales/en.yml b/config/locales/en.yml index 909b5bc..1652714 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -57,7 +57,6 @@ en: merge_several: success: "%{nb} errors have been merged." - devise: registrations: signed_up_but_unconfirmed: 'A message with a confirmation link has been sent to your email address. Please open the link to activate your account.' @@ -66,3 +65,16 @@ en: omniauth_callbacks: failure: "Could not authenticate you from %{kind} because \"%{reason}\"." success: "Successfully authenticated from %{kind} account." + + apps: + index: + notify: Notification Service + tracker: Tracker + last_deploy: Last Deploy + errors: Errors + name: Name + repository: Repository + title: Apps + new_app: Add a New App + no_apps: 'No apps here.' + click_to_create: 'Click here to create your first one' -- libgit2 0.21.2