X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fi18n-guide.txt;h=95d662a56880736c0befa7c66abd06badbff1d5e;hp=bfc89b34c0d128b61cddaa9068ae912a36914ce8;hb=87e0e995192236dcc9a56e0b9766bb7c7e6cfcf3;hpb=d38751a8ee663bb6501674623c961d16048281b9 diff --git a/qcsrc/menu/i18n-guide.txt b/qcsrc/menu/i18n-guide.txt index bfc89b34c0..95d662a568 100644 --- a/qcsrc/menu/i18n-guide.txt +++ b/qcsrc/menu/i18n-guide.txt @@ -1,3 +1,18 @@ +How to make the .po template: + +find . -type f -not -name \*.po -not -name \*.txt | xgettext -LC -k_ -f- --from-code utf-8 + + +How to compare the .po template against a language file: + +msgcmp ../../menu.dat.de.po messages.po + + +How to merge the .po template into a language file: + +msgmerge -U ../../menu.dat.de.po messages.po + + Guideline: - do NOT translate strings in error() messages, or in dprint()! - delete obviously useless developer prints while at it @@ -6,8 +21,6 @@ Guideline: - mark translatable strings with _() - if a translatable string is a strcat monster, change it to sprintf - if code loads files with text, use language_filename() -- test by: - find . -type f -not -name \*.po -not -name \*.txt | xgettext -LC -k_ -f- --from-code utf-8 - interesting vim macros: :map # /" :map ' i_(2f"a)/"