Skip to content

Commit

Permalink
Trsnaltions dir is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Dec 24, 2008
1 parent 8405d97 commit a5a47c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/r18n-desktop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class << self
# Get user locale from system environment and load I18n object with locale
# information and translations from +translations_dir+. If user set locale
# +manual+ put it as last argument.
def from_env(translations_dir, manual = nil)
def from_env(translations_dir = nil, manual = nil)
locales = Array(R18n::I18n.system_locale)
locales.insert(0, manual) if not manual.nil?
self.set I18n.new(locales, translations_dir)
Expand Down

0 comments on commit a5a47c6

Please sign in to comment.