Difference between revisions of "Converting translation files"

From Knotter
Jump to navigation Jump to search
(Created page with "To convert the po files into Qt linguist files: # Convert knotter_knotter-(lang).po into knotter_(lang).ts (lconvert) # Add knotter_(lang).ts to translations.pri # Update the ...")
 
Line 1: Line 1:
To convert the po files into Qt linguist files:
+
==From GNU Gettext Qt Linguist==
 
# Convert knotter_knotter-(lang).po into knotter_(lang).ts (lconvert)
 
# Convert knotter_knotter-(lang).po into knotter_(lang).ts (lconvert)
 
# Add knotter_(lang).ts to translations.pri
 
# Add knotter_(lang).ts to translations.pri
 
# Update the translations (lupdate)
 
# Update the translations (lupdate)
 
# Compile knotter_(lang).ts into knotter_(lang).qm (lrelease)
 
# Compile knotter_(lang).ts into knotter_(lang).qm (lrelease)
 +
 +
Example:
 +
 +
<source lang=bash>
 +
lconvert -i data/translations/knotter_knotter-ru.po -o data/translations/knotter_ru.ts
 +
lconvert -i data/translations/knotter_knotter-en_GB.po -o data/translations/knotter_en_GB.ts
 +
lupdate knotter.pro
 +
lrelease knotter.pro
 +
</source>

Revision as of 14:24, 18 October 2013

From GNU Gettext Qt Linguist

  1. Convert knotter_knotter-(lang).po into knotter_(lang).ts (lconvert)
  2. Add knotter_(lang).ts to translations.pri
  3. Update the translations (lupdate)
  4. Compile knotter_(lang).ts into knotter_(lang).qm (lrelease)

Example:

lconvert -i data/translations/knotter_knotter-ru.po -o data/translations/knotter_ru.ts
lconvert -i data/translations/knotter_knotter-en_GB.po -o data/translations/knotter_en_GB.ts
lupdate knotter.pro
lrelease knotter.pro