ruby-gettext / gettext

Gettext gem is a pure Ruby Localization(L10n) library and tool which is modeled after the GNU gettext package.
https://ruby-gettext.github.io/
68 stars 28 forks source link

Update README with more details about translation methods #62

Closed rgraff closed 5 years ago

rgraff commented 5 years ago

In general, this adds more information to the README regarding translation methods including how the parser will generate the pot/po files when it finds various translation methods in the ruby code. I think this will be helpful for people new to gettext (like me a few weeks ago).

Specifically, I tried to reduce confusion about the usage of the s_() and p_(). While similar, they are not the same. I've also noted how sorting by msgid is impacted by each.

kou commented 5 years ago

Thanks!