Code: Select all
//The engine supports translating by gettext compatible .po files.
//progs.dat uses progs.dat.<LANGUAGE>.po
//menu.dat uses menu.dat.<LANGUAGE>.po
//csprogs.dat uses csprogs.dat.<LANGUAGE>.po
//
//To create a string that can be translated, define it as
// string dotranslate_FILENOTFOUND = "File not found";
//Note: if the compiler does constant folding, this will only work if there is
//no other "File not found" string in the progs!
//
//Alternatively, if using the Xonotic patched fteqcc compiler, you can simplify
//this by using _("File not found") directly in the source code.
//
//The language is set by the "prvm_language" cvar: if prvm_language is set to
//"de", it will read progs.dat.de.po for translating strings in progs.dat.
//
//If prvm_language is set to the special name "dump", progs.dat.pot will be
//written, which is a translation template to be edited by filling out the
//msgstr entries.
i get a list of All strings i used in csqc, stuff like that
Code: Select all
msgid "vid_conwidth"
msgstr ""
msgid "vid_conheight"
msgstr ""
msgid "vid_width"
msgstr ""
msgid "vid_height"
msgstr ""
is there a way to specify which strings can be translated? I don't need all of them, but only a few.
at dpextensions says they should be used as:
Code: Select all
//To create a string that can be translated, define it as
// string dotranslate_FILENOTFOUND = "File not found";
//Note: if the compiler does constant folding, this will only work if there is
//no other "File not found" string in the progs!
but I'm not quite sure how to make a string dumped in the.po template and can be translated later.
I tried declaring in progs.dat "string dotranslate_FILENOTFOUND = "File not found";" without problems in compiling but without results in the dump
thank you in advance