Changes

Jump to: navigation, search

Coding for translation

127 bytes added, 17:56, 30 December 2019
m
Deferred key on lists
print(_(a))
</pre>
In this case, you are marking translatable strings with the function _T_(), which won’t conflict with any definition of _().
 
See [https://docs.python.org/dev/library/gettext.html#deferred-translations deferred translations]
Current custom key on gramps code is '''_T_'''. Set as xgettext flag on [https://github.com/gramps-project/gramps/blob/master/po/genpot.sh#L6 shell script] and [https://github.com/gramps-project/gramps/blob/master/po/update_po.py#L716 python interface], generating the translation strings template.
==Changing translated text message in the source code==

Navigation menu