aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/general/_locale_switcher.rhtml24
1 files changed, 12 insertions, 12 deletions
diff --git a/app/views/general/_locale_switcher.rhtml b/app/views/general/_locale_switcher.rhtml
index 4f01a4d13..530fbc40c 100644
--- a/app/views/general/_locale_switcher.rhtml
+++ b/app/views/general/_locale_switcher.rhtml
@@ -1,12 +1,12 @@
- <% if FastGettext.default_available_locales.length > 1 %>
- <div id="user_locale_switcher">
- Language:
- <% for possible_locale in FastGettext.default_available_locales %>
- <% if possible_locale == I18n.locale.to_s %>
- <%= possible_locale %>
- <% else %>
- <a href="<%= locale_switcher(possible_locale, params) %>"><%= possible_locale %></a>
- <% end %>
- <% end %>
- </div>
- <% end %>
+<% if FastGettext.default_available_locales.length > 1 && !params.empty? %>
+ <div id="user_locale_switcher">
+ Language:
+ <% for possible_locale in FastGettext.default_available_locales %>
+ <% if possible_locale == I18n.locale.to_s %>
+ <%= possible_locale %>
+ <% else %>
+ <a href="<%= locale_switcher(possible_locale, params) %>"><%= possible_locale %></a>
+ <% end %>
+ <% end %>
+ </div>
+<% end %>