Gettext msgctxt support #116

Closed
nikosd opened this Issue Nov 4, 2011 · 1 comment

Projects

None yet

1 participant

@nikosd
nikosd commented Nov 4, 2011

Currently the I18n::Backend::Gettext module treats "context" (in pgettext and npgettext) and "scope" in almost the same way. Basically, it expects the context to be in the "Context|Real translation text" format. They are totally different though in Gettext : http://www.gnu.org/software/gettext/manual/gettext.html and the context is implemented through the msgctxt key in the PO file.

I know that this is not currently supported in the i18n API so I'm sure whether this could actually be supported but then it could be better to raise a warning at least that the two functions (pgettext and npgettext) are being used.

@nikosd
nikosd commented Nov 7, 2011

Please see the pull request for failing test proof + fix. My apologies for the stupid fixture names in the po (couldn't think of anything better)

@nikosd nikosd closed this Nov 7, 2011
@tenderlove tenderlove pushed a commit to tenderlove/i18n that referenced this issue Jun 29, 2014
@nikosd nikosd Fix #116 (npgettext with msgcntxt). 28cf411
@atzorvas atzorvas pushed a commit to e-travel/i18n that referenced this issue Jan 12, 2016
@lawrencepit lawrencepit Issue #116 Expose as a gem 9e20201
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment