[Pkg-isocodes-devel] [pkg-isocodes-Bugs][315881] Include code ISO for each item as msgctxt in the PO file

pkg-isocodes-bugs at alioth.debian.org pkg-isocodes-bugs at alioth.debian.org
Sun Nov 19 10:12:36 UTC 2017


pkg-isocodes-Bugs item #315881 was changed at 2017-11-19 11:12 by Tobias Quathamer
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413077&aid=315881&group_id=30316

Status: Open
Priority: 3
Submitted By: Jordi Mas (jordimas-guest)
>Assigned to: Tobias Quathamer (toddy)
Summary: Include code ISO for each item as msgctxt in the PO file 
>Part: General


Initial Comment:
Hello,

Right now the PO files look like:

#. name for afr, af
msgid "Afrikaans"
msgstr "afrikaans"

It will be much better if the codes instead of been comments are included in as msgctxt, that is:

msgctxt "afr, af"
msgid "Afrikaans"
msgstr "afrikaans"

Two benefits:
* When used with translation memories will provide a context. For example, the currency "Gold" is a pretty standard name. This will allow to differentiate to which code they refer.
* PO is a poor format. This will allow to parse this information by scripts and conversion tools in a more structured way


Jordi,



----------------------------------------------------------------------

>Comment By: Tobias Quathamer (toddy)
Date: 2017-11-19 11:12

Message:
Hi Jordi,

thanks for your suggestion. However, I'm not convinced that this change is worthwhile.

It adds another layer on top of all programs using the translations in their output. All those programs already need to switch to another gettext domain (e.g. "iso_3166-1") to be able to get the translations. Within those gettext domains, the msgid is unique, so there's no need to use a message context.

Most (or even all?) .po file editors support the display of comments, so the information "afr, af" is already available to the translators.

Regarding the structured parsing of .po files by scripts, the automatic comment inserted into our .po files is really rather stable and has not been changed in the last few years (to the best of my knowledge).

Regards,
Tobias


----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413077&aid=315881&group_id=30316



More information about the Pkg-isocodes-devel mailing list