Commit 7de482ac213c10e1dbfb31d53f66ea85cd2c2b57
1 parent
9e1f25cd
Exists in
master
and in
1 other branch
Extract i18n key in apps/index view
Extract i18n key to allow translation in future. Back to 'Notification Service' instead of 'Notify' introduce on [f18a9814c2a04753f3c7946e2dce688cb81255ce] see #531
Showing
2 changed files
with
23 additions
and
11 deletions
Show diff stats
app/views/apps/index.html.haml
1 | -- content_for :title, 'Apps' | |
1 | +- content_for :title, t('.title') | |
2 | 2 | - content_for :action_bar do |
3 | - %span= link_to('Add a New App', new_app_path, :class => 'add') if current_user.admin? | |
3 | + %span= link_to(t('.new_app'), new_app_path, :class => 'add') if current_user.admin? | |
4 | 4 | |
5 | 5 | %table.apps |
6 | 6 | %thead |
7 | 7 | %tr |
8 | - %th Name | |
8 | + %th= t('.name') | |
9 | 9 | - if any_github_repos? || any_bitbucket_repos? |
10 | - %th Repository | |
10 | + %th= t('.repository') | |
11 | 11 | - if any_notification_services? |
12 | - %th Notify | |
12 | + %th= t('.notify') | |
13 | 13 | - if any_issue_trackers? |
14 | - %th Tracker | |
14 | + %th= t('.tracker') | |
15 | 15 | - if any_deploys? |
16 | - %th Last Deploy | |
17 | - %th Errors | |
16 | + %th= t('.last_deploy') | |
17 | + %th=t('.errors') | |
18 | 18 | %tbody |
19 | 19 | - apps.each do |app| |
20 | 20 | %tr |
... | ... | @@ -54,6 +54,6 @@ |
54 | 54 | %tr |
55 | 55 | %td{:colspan => 3} |
56 | 56 | %em |
57 | - No apps here. | |
58 | - = link_to 'Click here to create your first one', new_app_path | |
57 | + = t('.no_apps') | |
58 | + = link_to t('.click_to_create'), new_app_path | |
59 | 59 | ... | ... |
config/locales/en.yml
... | ... | @@ -57,7 +57,6 @@ en: |
57 | 57 | merge_several: |
58 | 58 | success: "%{nb} errors have been merged." |
59 | 59 | |
60 | - | |
61 | 60 | devise: |
62 | 61 | registrations: |
63 | 62 | 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: |
66 | 65 | omniauth_callbacks: |
67 | 66 | failure: "Could not authenticate you from %{kind} because \"%{reason}\"." |
68 | 67 | success: "Successfully authenticated from %{kind} account." |
68 | + | |
69 | + apps: | |
70 | + index: | |
71 | + notify: Notification Service | |
72 | + tracker: Tracker | |
73 | + last_deploy: Last Deploy | |
74 | + errors: Errors | |
75 | + name: Name | |
76 | + repository: Repository | |
77 | + title: Apps | |
78 | + new_app: Add a New App | |
79 | + no_apps: 'No apps here.' | |
80 | + click_to_create: 'Click here to create your first one' | ... | ... |