tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Capability mismatch between gettext-lib and gettext-tools

On Fri, 03 May 2013 19:42:03 +0900, Joerg Sonnenberger 
<> wrote:

On Fri, May 03, 2013 at 07:36:40PM +0900, OBATA Akio wrote:
On Fri, 03 May 2013 18:56:35 +0900, Joerg Sonnenberger 
<> wrote:

>On Fri, May 03, 2013 at 11:11:18AM +0900, OBATA Akio wrote:
>>On Fri, 03 May 2013 00:12:59 +0900, Joerg Sonnenberger 
<> wrote:
>>>On Thu, May 02, 2013 at 11:25:29PM +0900, OBATA Akio wrote:
>>>>* NetBSD's gettext-lib is not a GNU's one, but it is supported.
>>>>  whereas gettext-tools is still GNU's 0.14.4, and not support it.
>>>But the main problem remains that NetBSD's libintl doesn't support the
>>>newer .po format, which is used by msgfmt from gettext 0.15+ to provide
>>>context based translations.
>>Do you think what is missing in NetBSD's libintl for context based
>>I know msgfmt(1) is missing to handle it, not libintl.
>Context based translations required a newer .po format. We only support
>for the first version AFAIK.

No, same format with application level additional usage.

From the source, it is using version 2 or so of the binary format, we
only support format version 0.

From the source,

msgctxt "ctxt"
msgid "id"
msgstr "str"

will be just treated as

msgid "ctxt\004id"
msgstr "str"

no additional API, applications will search translations with msgid
as "ctxt\004id".

I've just rewrite pkgsrc/mk/tools/msgfmt-msgctxt.awk to do same as above,
and result of *.mo file is same as generated by msgfmt from gettext-0.18.2.
Yes, context based translated messages are appeared with NetBSD libintl.

After some additional tests, I'll commit it.

OBATA Akio /

Home | Main Index | Thread Index | Old Index