The idea behind using the _() function was exactly to make use of the gettext environment, if available. And if not available, provide a function that does something similar. So either one should not compile gettext into PHP (or not load it on Windows) or use it (I currently don't use it and mainly use the SQLite-based solution).
So you could lines like // Set language to German // => modify for language settings from SESSION setlocale(LC_ALL, 'de_DE'); // Specify location of translation tables bindtextdomain("myPHPApp", "./locale"); // Choose domain textdomain("myPHPApp"); to common.php and create the locale files for it. Armin Walter Lorenzetti wrote: > > another problem that i obtain with pmapper until 1.0 version but i never said > you before: > > on we debian installation i have to change in every file _() lenguage function > because i obtain the seguent error: > > _() cannot redeclare in common.php > > so i had to modify the function from _() to leng_() and than i had to replace > every _() to leng_() in every files where it was > > I don't known if other linux users had have this type of problem but i' have > to do you a request.. why in pmapper2 we change this lenguage function? if > isn't it a big problem? > > All the best > Walter > > > >