Skip to content

Commit

Permalink
Updated raw_locales_links so that I can track locales and support old…
Browse files Browse the repository at this point in the history
… tag
  • Loading branch information
Breccan committed Nov 30, 2010
1 parent f4d234b commit ce2bd8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/views/translations/_form.html.erb
Expand Up @@ -6,6 +6,7 @@

<%= form.error_messages %>
<%= form.hidden_field :locale %>
<%= hidden_field_tag :version, params[:version] if params[:version] %>

<!-- Use a table instead of floated divs because it gives better results in IE -->
<table style="width: 98%;">
Expand Down
4 changes: 2 additions & 2 deletions lib/translatables_helper.rb
Expand Up @@ -103,9 +103,9 @@ def needed_in_locales_links(translatable, options = {})
#Links to all locales
def raw_locale_links(options = {})
links = TranslationsHelper::available_locales.keys.collect do |locale|
link_to_unless_current(TranslationsHelper::available_locales[locale],
{:link => link_to_unless_current(TranslationsHelper::available_locales[locale],
url_for(:locale => locale, :to_locale => (params[:to_locale] if defined?(params)))
)
), :locale => locale}
end
links
end
Expand Down

0 comments on commit ce2bd8d

Please sign in to comment.