Translation building instructions

Johnny Jazeix jazeix at gmail.com
Sun May 14 08:26:31 BST 2023


Le sam. 13 mai 2023 à 23:57, Enol P. <enolp at softastur.org> a écrit :

> Hi everyone,
>
> Long time ago I made an script to build ast locale translations but I've
> lost it, and I forgot all commands to execute. However, I couldn't find any
> information about this online.
>
> I appreciate if someone can send me all necessary instructions to build
> translations.
>

Hi,
to compile .po file to .mo file:
    msgfmt file.po -o file.mo

to compile to .qm file:
    lconvert -if po -of ts -i file.po -o file.ts
    lrelease -compress -nounfinished file.ts -qm file.qm

(from the doc,
https://www.gnu.org/software/gettext/manual/html_node/msgfmt-Invocation.html,
it seems we can get a .qm directly using "msgfmt --qt file.po -o file.qm"
but I haven't tested it so I'm not sure of the differences)
Depending on your OS, msgfmt is in the gettext package, lconvert/lrelease
in qttools.

Cheers,
Johnny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-i18n-doc/attachments/20230514/2d003cab/attachment.htm>


More information about the kde-i18n-doc mailing list