Skip to content

Commit

Permalink
properly reload translations when a new language is available
Browse files Browse the repository at this point in the history
fixes incomplete translations after switching the language in installation
  • Loading branch information
Ladislav Slezak committed Jul 2, 2013
1 parent 5e4cf9c commit 5ea5ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ruby/yast/i18n.rb
Expand Up @@ -21,7 +21,7 @@ def textdomain domain
available = available_locales
if FastGettext.available_locales != available
# reload the translations, a new language is available
FastGettext.translation_repositories.keys.each {|dom| FastGettext.add_text_domain(domain, :path => LOCALE_DIR)}
FastGettext.translation_repositories.keys.each {|dom| FastGettext.add_text_domain(dom, :path => LOCALE_DIR)}
FastGettext.available_locales = available
end

Expand Down

0 comments on commit 5ea5ac1

Please sign in to comment.