<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le sam. 13 mai 2023 à 23:57, Enol P. <<a href="mailto:enolp@softastur.org">enolp@softastur.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div>
Hi everyone,
</div>
<div>
</div>
<div>
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.
</div>
<div>
</div>
<div>
I appreciate if someone can send me all necessary instructions to build translations.
</div></div></blockquote><div><br>
</div>Hi,<br>to compile .po file to .mo file:<br> msgfmt file.po -o file.mo<br><br>to compile to .qm file:<br> lconvert -if po -of ts -i file.po -o file.ts<br> lrelease -compress -nounfinished file.ts -qm file.qm</div><div class="gmail_quote"></div><div class="gmail_quote"><br></div><div class="gmail_quote">(from the doc, <a href="https://www.gnu.org/software/gettext/manual/html_node/msgfmt-Invocation.html">https://www.gnu.org/software/gettext/manual/html_node/msgfmt-Invocation.html</a>, 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)<br></div><div class="gmail_quote">Depending on your OS, msgfmt is in the gettext package, lconvert/lrelease in qttools.<br><br>Cheers,<br>Johnny</div><div class="gmail_quote"><br> </div></div>