Browse files

Clean up code

  • Loading branch information...
1 parent 7508690 commit a14fd7b2071a683d03fb1c14facc97b3494726cd @ai committed Jun 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 r18n-desktop/lib/r18n-desktop.rb
View
4 r18n-desktop/lib/r18n-desktop.rb
@@ -39,8 +39,8 @@ class << self
# locale +manual+ put it as last argument.
def from_env(translations_places = nil, manual = nil)
locales = Array(R18n::I18n.system_locale)
- locales.insert(0, ENV['LANG']) unless ENV['LANG'].nil?
- locales.insert(0, manual) unless manual.nil?
+ locales.insert(0, ENV['LANG']) if ENV['LANG']
+ locales.insert(0, manual) if manual
self.set I18n.new(locales, translations_places)
end
end

0 comments on commit a14fd7b

Please sign in to comment.