diff options
author | Azul <azul@leap.se> | 2014-05-24 10:33:31 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-05-26 13:01:34 +0200 |
commit | 4085e3fabef6427cd3f8be9b61c209bd82eaa595 (patch) | |
tree | f5ca512efd7d81c29a43dd846b60ad29074dae63 /app/views/common | |
parent | 19bce0f114180f355f0df367cf6d21bd957734a6 (diff) |
navigation works with empty locale selected
Just in case some translation keys are not present things should still work and make sense.
So translation keys should be picked in a meaningful way and scoped rather than prefixed.
For example overview.account will turn into "Account" if no translation is present while "overview_account" will turn into "Overview Account". We usually want the former.
Diffstat (limited to 'app/views/common')
-rw-r--r-- | app/views/common/_action_buttons.html.haml | 8 | ||||
-rw-r--r-- | app/views/common/_download_button.html.haml | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/app/views/common/_action_buttons.html.haml b/app/views/common/_action_buttons.html.haml index c74fcd1..d00cf74 100644 --- a/app/views/common/_action_buttons.html.haml +++ b/app/views/common/_action_buttons.html.haml @@ -2,10 +2,10 @@ .row-fluid.second .login.span4 %span.link= link_to(icon('ok-sign', icon_color) + t(:login), login_path, :class => 'btn') - %span.info= t(:login_info) + %span.info= t(:login_info, default: "") .signup.span4 %span.link= link_to(icon('user', icon_color) + t(:signup), signup_path, :class => 'btn') - %span.info= t(:signup_info) + %span.info= t(:signup_info, default: "") .help.span4 - %span.link= link_to(icon('question-sign', icon_color) + t(:get_help), new_ticket_path, :class => 'btn') - %span.info= t(:help_info) + %span.link= link_to(icon('question-sign', icon_color) + t(:support_tickets), new_ticket_path, :class => 'btn') + %span.info= t(:support_info, default: "") diff --git a/app/views/common/_download_button.html.haml b/app/views/common/_download_button.html.haml index e57c56b..d6d7bde 100644 --- a/app/views/common/_download_button.html.haml +++ b/app/views/common/_download_button.html.haml @@ -4,5 +4,5 @@ .download.span8 = link_to client_download_url, class: "btn btn-large btn-primary" do = big_icon('download') - = t(:download_client) + = t(:download_bitmask) .span2 |