<% if current_site.configuration.available_locales.length > 1 %>
  <div class="globalize_tool">
    <label><%= t('.translate') %></label>
    <% current_site.configuration.available_locales.each do |locale| %>
      <a href="#" data-toggle-edit-locale="<%= locale %>" class="locale_option tipsit" title="<%= t('.define_content_in_locale', locale_name: t("locales.#{locale}")) %>" <%= %Q{data-loaded-locale="#{locale}"}.html_safe if locale == current_site.configuration.default_locale %>>
        <span class="locale"><%= t("locales.#{locale}_short").upcase %></span>
        <span class="status"></span>
      </a>
    <% end %>
  </div>
<% end %>

<% if current_site.configuration.available_locales.length > 1 %>
  <div class="globalize_tool">
    <label><%= t('.translate') %></label>
    <% current_site.configuration.available_locales.each do |locale| %>
      <a href="#" data-toggle-edit-locale="<%= locale %>" class="locale_option tipsit" title="<%= t('.define_content_in_locale', locale_name: t("locales.#{locale}")) %>" <%= %Q{data-loaded-locale="#{locale}"}.html_safe if locale == current_site.configuration.default_locale %>>
        <span class="locale"><%= t("locales.#{locale}_short").upcase %></span>
        <span class="status"></span>
      </a>
    <% end %>
  </div>
<% else %>
  <div <%= %Q{data-loaded-locale="#{current_site.configuration.default_locale}"}.html_safe %>></div>
<% end %>

Fix default locale when only one locale is selected
Fix default locale when only one locale is selected
