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

Karsten Hilbert <[email protected]> Thu, 24 Apr 2025 15:46:10 +0200
Newsgroups gmane.comp.gnu.medical.devel
Message-ID <[email protected]>
Hola,

> Translation to spanish is 99,99999% complete I think

Nice. Feel free to send me your es.po and I'll merge it.

> My problem now is I have to add some items to the translation which were=
 not included
> originally.

Do I understand correctly that you want to translate a few
terms which do not show up for translation in the es.po file ?

> I have modified the .pot file found on the github repo to add these chan=
ges, but my
> problem
> is I can't find where in my system to place my updated .pot file for it =
to register to
> GNUmed.

The .pot file is generated from source from the script
.../gnumed/client/po/create-gnumed_po.sh and its purpose is
to contain all strings marked for translation within the
current source code state. That file is then merged with the
existing LANGUAGE.po files which contain per-language
translations. That way a new LANGUAGE.po file is created per
language containing new and already-translated strings.

In other words, if the string you want to translate is not
contained within the generated .pot file then that string
has not been marked for translation in the source code. Tell
me which and I'll mark up that string.

Manually adding a string to the .pot, merging that into
es.po, and translating that string will still not make
GNUmed show the translation because it doesn't know that is
supposed to be translated (for which the string needs to be
marked inside the source code like so: _('string to translate').

> If it's any help, the directory where I place the updated .mo file for i=
t to register
> and
> work is: /usr/share/locale/es/LC_MESSAGES

Yes, that should work. Also, the log is your friend as it
tells you where GNUmed looks for translations ... ;-)

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