Re: Contexts

Bruno Haible <[email protected]>
Newsgroups gmane.comp.parsers.bison.bugs,gmane.comp.gnu.gettext.bugs
Message-ID <2739756.CzineGoWJG@omega>
Hi Akim,

> >> but I believe contexts would help
> >> (https://www.gnu.org/software/gettext/manual/html_node/Contexts.html).
> > 
> > I don't think contexts can help here. Context are a kind of namespacing
> > system within a translation domain.
> 
> I was addressing the fact that token names might be too short
> and be in conflict with other occurrences of the same word.

Ah yes, for this issue, contexts are a solution.
(Now that you state what problem you want to solve, I agree with you :).)

> In Ruby, I frequently use s_ in such a case.
> 
> You didn't answer that part.  You dislike the idea of s_?

s_("foo|bar") is just a different way of writing pgettext("foo","bar").
Which one you prefer, is mostly a matter of style, I'd say.

Bruno
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.