> > > I tried to copy a locale. It does not seem to work. > > > My context: > > > OS: Solaris 9 > Browser: Apache 2.0.52 > SquirrelMail version : 1.4.4 > PHP version 4.3.10 > PHP Options for localisation: --with-gettext --with-iconv > > > The os is configured for fr_CA (Canadian French) but not fr_FR. > SquirrelMail has fr_FR only. > > > 1st question: Am i right to assume i will not be able to configure > fr_FR in SquirrelMail if it is not installed for the OS? > > So, i am trying to copy fr_FR to fr_CA. > > > I imported the package fr_FR-1.4.4-20050308.tar.gz, untarred and > proceeded to rename fr_FR fr_CA. I copied the "locale" directory, as well > as the "image" directory and "help" directory (had to rename the image > file). I then ran the "install" script. > > I also install and compile locales (all of them) with the > "compilelocales" > script. (i downloaded "locales-1.4.4-20050308-src.tar.gz" and > "all_locales-1.4.4-20050308.tar.gz"). > > > Then i edited the function i18n.php and added: > > > $languages['fr_CA']['NAME'] = 'Can.French'; > $languages['fr_CA']['CHARSET'] = 'iso-8859-1'; > $languages['fr_CA']['LOCALE'] = 'fr_CA.ISO8859-1'; > $languages['fr']['ALIAS'] = 'fr_CA'; > > > > I edited config/config.php to specity : > > > $squirrelmail_default_language = 'fr_CA' > > > I restartted Apache. I still get english for the interface. Only the > help files are in french. > > My other option is to reinstall the OS with fr_FR as well as apache,php > and all other required packages. I would prefer to avoir this.
1. are you running php in safe mode? 2. do you have NLSPATH variable set in apache environment? 3. Try these two php scripts <?php var_dump(setlocale(LC_ALL,'fr_CA.ISO8859-1')); ?> <?php var_dump(setlocale(LC_ALL,'fr_CA.ISO-8859-1')); ?> If first one returns false and second - fa_CA.ISO_8859-1 string - add hyphen to full locale name or port patch from 1.4.5cvs. http://cvs.sf.net/viewcvs.py/squirrelmail/squirrelmail/functions/i18n.php?r1=1.129.2.33&r2=1.129.2.34 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click -- squirrelmail-users mailing list Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines List Address: [email protected] List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
