diff --git a/lib/noosfero/i18n.rb b/lib/noosfero/i18n.rb index 22d8fb1..50227bc 100644 --- a/lib/noosfero/i18n.rb +++ b/lib/noosfero/i18n.rb @@ -6,9 +6,15 @@ class Object alias :ngettext :n_ end + +custom_locale_dir = Rails.root.join('custom_locales', Rails.env) +repos = [] +if File.exists?(custom_locale_dir) + repos << FastGettext::TranslationRepository.build('environment', :type => 'po', :path => custom_locale_dir) +end + # translations in place? locale_dir = Rails.root.join('locale') -repos = [] if File.exists?(locale_dir) repos << FastGettext::TranslationRepository.build('noosfero', :type => 'mo', :path => locale_dir) repos << FastGettext::TranslationRepository.build('iso_3166', :type => 'mo', :path => locale_dir) -- libgit2 0.21.2