From: Martin H. <Mar...@we...> - 2002-06-20 13:18:35
|
Hi Oliv', I implemented a portable Internationalization class (I18n) and translated the Editwindow to german. This translation will only appear, if there is an en- vironment variable called 'LC_ALL' 'LANGUAGE' or 'LANG', that start with the two letters 'de'. To translate apcstudio to any language, it's enough to make a copy of 'i18n/text.en', where the last two letters fit the first two letters of the environment variable (de, fr, es, no, ...). Then, one has to translate that file line by line. For example, if you provide a file called 'text.fr', apcstudio assumes, that the 3rd line in 'text.fr' is the french translation of the 3rd line in file 'text.en' . In the code, I will go on to change every string I find that is of type ' "a word" ' to ' I18n::_("a word") ' after including "i18n.h" . This worked well for other projects and I don't expect any problems there. Please use the I18n::_("") method to provide a text, that can be seen by the user. Of course, debugging info and such stuff should not be trans- lated. I know nothing about the windows environment, that provides the language. Can you - if you find the time - add some funcionality to 'I18n::init()', that finds the right two lowercase-letters? If you have any questions about that, feel free to ask. I'll now go on to find some translators to spanish, norway(-ish'), dutch and - if you don't want to do the translation - french. I failed in my translation to french using the altavista web page. I wanted to do you a surprising favour with this translation, but I didn't make it. It's too hard for me to get into that language :-( Martin -- Mar...@we... http://www.martinhenne.de |