Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Don't upcase language code in option value #5

Closed
wants to merge 1 commit into from

2 participants

Robin Stocker David Cato
David Cato davec closed this pull request from a commit
David Cato Don't upcase language tags. Closes #5
Also restore tests and remove the unnecessary rspec dependencies
(Test::Unit is used, not RSpec)
3033456
David Cato davec closed this in 3033456
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 9, 2011
  1. Robin Stocker
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/localized_language_select.rb
2  lib/localized_language_select.rb
View
@@ -28,7 +28,7 @@ class << self
def localized_languages_array options = {}
res = []
list = I18n.translate(:languages).each do |key, value|
- res << [value, key.to_s.upcase] if include_language?(key.to_s, options)
+ res << [value, key.to_s] if include_language?(key.to_s, options)
end
res.sort_by { |country| country.first.parameterize }
end
Something went wrong with that request. Please try again.