Re: Where to place .pot file? + Hardcoded tab names change?

Karsten Hilbert <[email protected]> Sat, 3 May 2025 21:28:22 +0200
Newsgroups gmane.comp.gnu.medical.devel
Message-ID <[email protected]>
Am Sat, May 03, 2025 at 03:39:32PM -0300 schrieb Maria Scappini:

> In theory, all remaining fuzzy translations are on purpose! Most of them=
 I
> could not decide how to translate reliably, or some are part of tools th=
at
> currently do not work...

I see. That's fine.

> Do I understand correctly that gettext would always generate files with =
the
> unicode sequences?

gettext will scan the source code, lifting from it any
strings marked for translation, that is, wrapped in _(). If
a string contains a literal unicode character it will be
preserved as is and put into gnumed.pot and subsequently
into each LANGUAGE.po file.

In case a string contains a '\uUNICODE_CODE_POINT' escape
sequence it doubles up the escaping slash and stores
'\\uUNICODE_CODE_POINT' into gnumed.pot/LANG.po.

So it all depends on what's in the source, except that
escape slashes are ... escaped :-)

To the best of my knowledge having unescaped unicode code
point escape slashes inside gnumed.pot (perhaps by manually
adding them) does _not_ work when translation is attempted
later on. But I haven't tested that theory.

Karsten
=2D-=20
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B