Commit 1e3f985a6b8e46e80ba9df412aa800a4b7c468cf
1 parent
e54109c9
Exists in
master
and in
29 other branches
Do not symlink obsolete .mo files
Showing
2 changed files
with
1 additions
and
2 deletions
Show diff stats
lib/noosfero/i18n.rb
... | ... | @@ -12,7 +12,6 @@ repos = [] |
12 | 12 | if File.exists?(locale_dir) |
13 | 13 | repos << FastGettext::TranslationRepository.build('noosfero', :type => 'mo', :path => locale_dir) |
14 | 14 | repos << FastGettext::TranslationRepository.build('iso_3166', :type => 'mo', :path => locale_dir) |
15 | - repos << FastGettext::TranslationRepository.build('rails', :type => 'mo', :path => locale_dir) | |
16 | 15 | end |
17 | 16 | |
18 | 17 | FastGettext.add_text_domain 'noosferofull', :type => :chain, :chain => repos | ... | ... |
lib/tasks/gettext.rake
... | ... | @@ -26,7 +26,7 @@ task :symlinkmo do |
26 | 26 | lang = File.basename(dir) |
27 | 27 | orig_lang = langmap[lang] || lang |
28 | 28 | mkdir_p("#{Rails.root}/locale/#{lang}/LC_MESSAGES") |
29 | - ['iso_3166', 'rails'].each do |domain| | |
29 | + ['iso_3166'].each do |domain| | |
30 | 30 | origin = "/usr/share/locale/#{orig_lang}/LC_MESSAGES/#{domain}.mo" |
31 | 31 | target = "#{Rails.root}/locale/#{lang}/LC_MESSAGES/#{domain}.mo" |
32 | 32 | if !File.symlink?(target) | ... | ... |