Skip to content

Commit

Permalink
Fix ruby-i18n#116 (npgettext with msgcntxt).
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikos Dimitrakopoulos committed Nov 7, 2011
1 parent e590b8c commit 28cf411
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/i18n/backend/gettext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def parse(filename)
def normalize(locale, data)
data.inject({}) do |result, (key, value)|
unless key.nil? || key.empty?
key = key.gsub(I18n::Gettext::CONTEXT_SEPARATOR, '|')
key, value = normalize_pluralization(locale, key, value) if key.index("\000")

parts = key.split('|').reverse
Expand Down

0 comments on commit 28cf411

Please sign in to comment.