diff options
author | Ruben Davila <rdavila84@gmail.com> | 2017-04-13 09:03:47 +0300 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2017-04-13 09:03:47 +0300 |
commit | 73d0730d09b5f9a9b68f158cc72ad30c7a2b35d0 (patch) | |
tree | 3443759bd564dca586716c46d6dd8c74594432e7 /app/views/profiles/show.html.haml | |
parent | 020e12a6ae99e9b9dfaa3cfbd640ecdf31d7424d (diff) |
Set locale through controller filter
Diffstat (limited to 'app/views/profiles/show.html.haml')
-rw-r--r-- | app/views/profiles/show.html.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/profiles/show.html.haml b/app/views/profiles/show.html.haml index dc71a04cbf0..d8ef64ceb72 100644 --- a/app/views/profiles/show.html.haml +++ b/app/views/profiles/show.html.haml @@ -74,7 +74,8 @@ %span.help-block This email will be displayed on your public profile. .form-group = f.label :preferred_language, class: "label-light" - = f.select :preferred_language, Gitlab::I18n::AVAILABLE_LANGUAGES, {}, class: "select2" + = f.select :preferred_language, Gitlab::I18n::AVAILABLE_LANGUAGES.map { |lang| [_(lang[0]), lang[1]] }, + {}, class: "select2" .form-group = f.label :skype, class: "label-light" = f.text_field :skype, class: "form-control" |