Translation building instructions

Johnny Jazeix jazeix at gmail.com
Sun May 14 16:50:53 BST 2023


https://api.kde.org/ecm/module/ECMPoQmTools.html

Le dim. 14 mai 2023 à 17:47, Enol P. <enolp at softastur.org> a écrit :

> Hi,
>
> As I can remember, po files could also be built using cmake and installed
> in their correct location. This is the way I used to use.
>
> El 14/05/2023 9:26 CEST Johnny Jazeix <jazeix at gmail.com> escribió:
>
>
>
>
> 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/573f6e84/attachment.htm>


More information about the kde-i18n-doc mailing list