Date: prev next · Thread: first prev next last
2017 Archives by date, by thread · List index

On Thu, 2017-07-13 at 12:54 +0300, Mihkel Tõnnov wrote:
Hi Caolán, *,

2017-07-13 12:43 GMT+03:00 Caolán McNamara <>:

In our code I've autogenerated matching initial contexts for the
matching .ui and .hrc source strings.

Could you clarify what do you mean by that?

I'll take a pair of real examples:

Currently a .hrc/.src entry of SV_APP_CPUTHREADS

//in vcl/inc/svids.hrc
#define SV_APP_CPUTHREADS                           10800

//in vcl/source/src/app.src
    Text [en-US] = "CPU threads: ";

corresponding .po entry where the msgctxt is currently autogenerated on
extraction from .src to .po

msgctxt ""
msgid "CPU threads: "
msgstr "something or other"

turns into

//in our source where the 1st arg is the context and all existing
//entries contexts are simply derived from the define name

corresponding .po entry
msgid "CPU threads: "
msgstr "something or other"

and the msgctxt is no longer generated on export to .po just taken from
the source entry

The other case is .ui entries, they go from e.g.

<property name="label" translatable="yes">Options</property>

with a .po entry of

msgctxt ""
msgid "Options"
msgstr "Optionen"

where the msgctxt is similarly autogenerated on export to .po


<property name="label" translatable="yes"

where the context/msgctxt for existing strings has been one-time
derived from the .ui filename and widget/object the string belong to

with a corresponding .po entry of

msgctxt "printdialog|label21"
msgid "Options"
msgstr "Optionen"

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.