E N D E A V O U R M A R K I I I N T E R N A T I O N A L I Z A T I O N L A N G U A G E http://freshmeat.net/projects/endeavour2/ Copyright (C) 1997-2008 WolfPack Entertainment http://www.battlefieldlinux.com/wolfpack/ ========================= COMPILING FOR NON-ENGLISH Perform these steps *before* performing any of the steps described in the INSTALL file! Edit the file: endeavour2/config.h Uncomment the language defination that defines the language you want to compile the program for. Language definations are named PROG_LANGUAGE_* (where * is the name of the language) Make sure that only one language defination is uncommented, you may need to comment out other languages! Save and exit. Then follow the instructions described in the INSTALL file. ======= HACKING (This section is intended for contributors and developers) The internationalization of language is a compile time system. Strings in the modules are stated for each language supported by compile time definations. A sample code for the statement of a string for multiple language: /* Yes button */ d->yes_btn = w = GUIButtonPixmapLabelH( (guint8 **)icon_ok_20x20_xpm, #if defined(PROG_LANGUAGE_SPANISH) "Si" #elif defined(PROG_LANGUAGE_FRENCH) "Oui" #elif defined(PROG_LANGUAGE_GERMAN) "Ja" #elif defined(PROG_LANGUAGE_ITALIAN) "Sì" #elif defined(PROG_LANGUAGE_DUTCH) "Ja" #elif defined(PROG_LANGUAGE_PORTUGUESE) "Sim" #elif defined(PROG_LANGUAGE_NORWEGIAN) "Ja" #else "Yes" #endif , NULL ); Note that the default language is PROG_LANGUAGE_ENGLISH, it does not appear in the compile time defination since it is the last, default, compile time case. To add support, make sure that stated strings or statements that are language dependent follow the above example. Note: Prior compile time language support uses #ifdef's, they are still present in some modules and should be updated to conform to the above sample using #if and #elif defined() instead of #ifdef's. ===== NOTES *** ALWAYS CONTACT THE AUTHORS FIRST BEFORE STARTING WORK ON *** ANY CONTRIBUTED WORK THAT YOU PLAN TO SUBMIT!!! Some language conversions were done using the help of http://www.freetranslation.com/ ================= ENDEAVOUR MARK II