lib/knj/locales.rb in knjrbfw-0.0.37 vs lib/knj/locales.rb in knjrbfw-0.0.38
- old
+ new
@@ -71,9 +71,11 @@
if Thread.current[:locale]
return Thread.current[:locale]
elsif ENV["LANGUAGE"]
return ENV["LANGUAGE"]
+ elsif ENV["LANG"]
+ return ENV["LANG"]
end
raise "Could not figure out locale."
end
end
\ No newline at end of file