Commit e967c09ed77da3a96465c5961a1230c0fce0f273
1 parent
9c8369ad
Exists in
master
and in
28 other branches
Don't require compiled locales to run
Showing
1 changed file
with
7 additions
and
8 deletions
Show diff stats
lib/noosfero/i18n.rb
... | ... | @@ -8,13 +8,12 @@ end |
8 | 8 | |
9 | 9 | # translations in place? |
10 | 10 | locale_dir = Rails.root.join('locale') |
11 | +repos = [] | |
11 | 12 | if File.exists?(locale_dir) |
12 | - repos = [ | |
13 | - FastGettext::TranslationRepository.build('noosfero', :type => 'mo', :path => locale_dir), | |
14 | - FastGettext::TranslationRepository.build('iso_3166', :type => 'mo', :path => locale_dir), | |
15 | - FastGettext::TranslationRepository.build('rails', :type => 'mo', :path => locale_dir), | |
16 | - ] | |
17 | - | |
18 | - FastGettext.add_text_domain 'noosferofull', :type => :chain, :chain => repos | |
19 | - FastGettext.default_text_domain = 'noosferofull' | |
13 | + repos << FastGettext::TranslationRepository.build('noosfero', :type => 'mo', :path => locale_dir) | |
14 | + repos << FastGettext::TranslationRepository.build('iso_3166', :type => 'mo', :path => locale_dir) | |
15 | + repos << FastGettext::TranslationRepository.build('rails', :type => 'mo', :path => locale_dir) | |
20 | 16 | end |
17 | + | |
18 | +FastGettext.add_text_domain 'noosferofull', :type => :chain, :chain => repos | |
19 | +FastGettext.default_text_domain = 'noosferofull' | ... | ... |