]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/i18n-guide.txt
some formatting fixes
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / i18n-guide.txt
1 Guideline:
2 - do NOT translate strings in error() messages, or in dprint()!
3 - delete obviously useless developer prints while at it
4 - change obvious developer prints from print to dprint (even in comments),
5   unless in developer-only functions (e.g. *dumptree*)
6 - mark translatable strings with _()
7 - if a translatable string is a strcat monster, change it to sprintf
8 - if code loads files with text, use language_filename()
9 - test by:
10   find . -type f -not -name \*.po -not -name \*.txt | xgettext -LC -k_ -f-
11 - interesting vim macros:
12   :map # /"<return>
13   :map ' i_(<esc>2f"a)<esc>/"<return>
14
15 Unresolved TODO:
16
17 - translated campaigns