[EMAIL PROTECTED] schreef: > On Sat, 24 Mar 2007 13:53:32 -0400 Per Inge Mathisen > <[EMAIL PROTECTED]> wrote: > >> The attached giant patch adds gettext support for Warzone, and the >> beginnings of a Norwegian translation. >> >> There are a number of caveats: It moves all strings defined in the >> C >> code back into the C files using gettext instead of using the >> strres >> system (thanks Huehner for writing the script that did this!). It >> does >> not change anything related to how strings defined in the data/ >> directory are handled, they still use the strres system. Warzone >> does >> not support non-English characters, and sometimes show (huge!) >> graphics in place of such characters instead, for some reason I do >> not >> yet understand. >> >> Fixing the above issues will require more work. >> >> As regards translations, we need to come up with a conclusion as >> to >> what we want. I think we have the following options: >> * Use the existing system. It means we have to maintain all >> strings >> outside the C files where they are used, which is tiresome. >> * Use gettext. This means we get lots of tool support for free, >> since >> gettext is, AFAICT, what everyone else in the free software >> universe >> is using. Lots of translators are familiar with it. >> * Use only English. We can still move the strings into the C >> files to >> ease maintenance. >> >> You may guess which option I like best. But what I want to know is >> what the rest of you think. >> >> I would very much like to get a resolution on this pretty quick, >> because it sucks to maintain such a huge patch over time. >> >> - Per >> > > Why put data in C file ? Only code should be in C file. No data > that can be changes by users/mods. > This because if people want to mod, then no need to recompile the > source. > > Maybe I do not understand. Can you give example of another game > that does this? Gettext basically just uses the textstrings in the source code as id's to search for in a database with translations (and if none is found it uses that id as a fallback).
-- Giel
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Warzone-dev mailing list [email protected] https://mail.gna.org/listinfo/warzone-dev
