qiBuild documentation

qilinguist.qigettext – Tools for gettext

Library to extract, generate, update and compile translatable sentences with gettext

class qilinguist.qigettext.GettextProject(*args, **kwargs)

GettextProject Class

pot_file

Pot File

get_po_file(locale)

Get Pot File

mo_path

Mo Path

update()

Read the source files, generate the template, generate the catalogs

release(raises=True)

Compile every catalog.

extract_pot_file()

Extract sentence from source file and generate POT file

need_pot_file(func)

Need Pot File

update_po_file(*args, **kwargs)

Update PO file from POT

generate_po_file(locale)

Generate PO file

generate_mo_file(locale)

Generate .mo file for the given locale

install(destination)

Install