<div dir="ltr"><a href="https://api.kde.org/ecm/module/ECMPoQmTools.html">https://api.kde.org/ecm/module/ECMPoQmTools.html</a><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le dim. 14 mai 2023 à 17:47, 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"><u></u>

  
   
 
 <div>
  <div>
   Hi,
  </div> 
  <div>
    
  </div> 
  <div>
   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 <<a href="mailto:jazeix@gmail.com" target="_blank">jazeix@gmail.com</a>> 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" target="_blank">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" target="_blank">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>
 </div>

</blockquote></div>