<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div>
Hi,
</div>
<div class="default-style">
</div>
<div class="default-style">
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.
</div>
<blockquote type="cite">
<div>
El 14/05/2023 9:26 CEST Johnny Jazeix <jazeix@gmail.com> escribió:
</div>
<div>
</div>
<div>
</div>
<div dir="ltr">
<div dir="ltr">
</div>
<br>
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">
Le sam. 13 mai 2023 à 23:57, Enol P. <<a href="mailto:enolp@softastur.org">enolp@softastur.org</a>> a écrit :
</div>
<blockquote>
<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>
</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">
</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)
</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">
</div>
</div>
</blockquote>
</body>
</html>