Sunday 13 August 2006 7:50:51 am
Hi Adolfo,
I would go straight to the function responsible for loading the .ts files and check what directories are used there.
The easiest (though most likely not the most elegant) way is to go to the file \lib\ezi18n\classes\eztstranslator.php and insert some wellplaced debug notices in the function loadTranslationFile. (Don't forget to make a backup of the file ...) With eZDebug::writeNotice( 'using translation folders:' . print_r($this>RootCache, true)); in line 146 you can see what directories are considered for holding translations. An eZDebug::writeNotice( 'found translation file:' . $path); at the end of the foreach ( $roots as $root ) loop (line 171) will show you what files are considered. (Please note that line numbers might differ slightly as played around with the formatting of this file and I am to lazy to download a fresh copy.) Save the file, enable debug output, clear the cache and refresh your webpage. In the debug output you should now see the at least some information about what EZ is doing. If your folder or file does not turn up there, make sure that you do not have a typo in your site.ini.append or in your filename. If your translation appears to be loaded just fine, please show me your site.ini.append file and maybe also your translation.ts. Claudia
|