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


On Wed, 2017-05-31 at 15:23 +0100, Caolán McNamara wrote:
16. msgctxt gets dropped

Working through the consequences in test builds, this turns into
msgctxt doesn't get minimized instead of dropped, i.e.

we would go from a .po of...

msgctxt ""
"app.src\n"
"SV_APP_OSVERSION\n"
"string.text"
msgid "OS: "
msgstr "Betriebssystem:"

to

msgctxt "SV_APP_OSVERSION"
msgid "OS: "
msgstr "Betriebssystem:"

and existing translation entries in .hrc + .src go from

vcl/inc/svids.hrc
#define SV_RESID_STRING_NOSELECTIONPOSSIBLE          2001

vcl/source/src/menu.src
String SV_STR_FOO
{
    Text [ en-US ] = "No selection";
};
 
to
 
vcl/inc/strings.hrc
#define SV_STR_FOO NC_("SV_STR_FOO", "No selection")

with new ones recommended as giving human helpful contexts, e.g.

#define NEW_STRING NC("scrollbar|tooltip", "up")

and retrofit the current .ui file .po generated msgctxts back into the
context field of the .ui

I'm not finished my proposal yet, just updating on my new thinking
around retaining a msgctxt

Context


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.