Gettext gem is a pure Ruby Localization(L10n) library and tool which is modeled after the GNU gettext package.
69
stars
28
forks
source link
n_('singular', 'plural', 2) won't return nil anymore if PO contains msgstr[1] ""' #60
Closed
MichaelHoste closed 5 years ago
Hello,
We noticed a small bug where
n_("singular", "plural", 2)
returnednil
when the PO contains something like this:Usually it's not a big deal, but with
n_
we usually do constructions like this:And it raises
undefined method % for nil.
, so it certainly need to be fixed.I hope it will be merged. Have a nice day!