diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-06-30 12:36:18 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-06-30 12:36:18 +0100 |
commit | 1e438bcfad39702674e559f6a5a7d1e9d5c36abb (patch) | |
tree | 7821269776637cca88a7a62765a39b811f8da1ff | |
parent | cfcd750736a8f76c4cd4833c7aaf2c54e4fa43c2 (diff) |
Don't display locale options when there's only one.
Fixes bug introduced in 039fb5cc0f2965346ef23a4ba1b9d20f6cf73805
-rw-r--r-- | app/views/general/_locale_switcher.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/general/_locale_switcher.html.erb b/app/views/general/_locale_switcher.html.erb index 7d64c9069..7b6377665 100644 --- a/app/views/general/_locale_switcher.html.erb +++ b/app/views/general/_locale_switcher.html.erb @@ -1,4 +1,4 @@ - <% if FastGettext.default_available_locales.any? && !params.empty? %> + <% if FastGettext.default_available_locales.length > 1 && !params.empty? %> <div id="user_locale_switcher"> <div class="btn-group"> <% FastGettext.default_available_locales.each do |possible_locale| %> |