On 2012/5/29 Daniel Hartwig wrote:
Hello
[Please CC me as I am not subscribed on the list]
I am working on some docbook which has a list of items:
<seglistitem>
<seg><literal>%p</literal></seg>
<seg>Package Name</seg>
<seg>30</seg>
<seg>Yes</seg>
…
<seglistitem>
<seg><literal>%u</literal></seg>
<seg>Disk Usage Change</seg>
<seg>30</seg>
<seg>No</seg>
Which generates this msgid of interest:
#. type: Content of:
<book><chapter><section><section><section><segmentedlist><seglistitem><seg>
#: en/aptitude.xml:7233 en/aptitude.xml:7293 en/aptitude.xml:7384
msgid "30"
msgstr ""
In some locales the translation of "30" is different for each of these
items. For example, German should use "30" for the first but "29"
for
the second. Is there some way to generate a unique msgid for each of
those seg tags? I have tried using ID attributes:
<seg id="packagename-width">30</seg>
…
<seg id="diskusage-width">30</seg>
but this does not work.
Any help with this would be greatly appreciated.
Hello,
You need contexts as described in
http://www.gnu.org/savannah-checkouts/gnu/gettext/manual/html_node/Contex...
but unfortunately there is no such support in po4a.
You may define these values as ENTITY and let localization teams
override default values.
Denis