Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clean up code

  • Loading branch information...
commit a14fd7b2071a683d03fb1c14facc97b3494726cd 1 parent 7508690
@ai authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.