I can't get localization to work in cakephp 2.3 - cakephp

Localization on my website was working until one day, my website went down. The host did some changes and after that, my website is in english.
I set the default language to French but everything is in english.
If I display the language
echo Configure::read('Config.language');
The result is "fre"
I have set Configure::write('Config.language', 'fre'); in bootstrap.php
Thanks

In 2.3 the lang code for french was changed from fre to fra as mentioned in the migration guide.

Related

DNN Language Selector works only on Home Page

I am facing very strange issue in my DotNetNuke website (8.04 Version). I have dual language installed (German and English) in which German is default language.
From the homepage i can switch to English or German which is working fine, but from all other pages (including host and admin pages) I can only able to switch English but can not change to German. When i choose German, Page is reloaded but language is always English, if i need to switch to German, only option i have is to go to home page. Any help will be appropriated.
Thnx
This is quite standard behaviour if you have not yet translated the pages from one language to the other.
Follow these steps:
Navigate to Admin > Advanced Settings > Languages
Select the page that you want to translate, using the dropdown menu
In the German language column, translate the page title, description and module titles
Tick the checkbox that says "translated".
Hit update and repeat steps 1-5 for every page you need to translate.
Here's an image that shows the same
Ref: DNN documentation

WP Plugin qTranslate bad post titles in Google News

I am the admin of the website: www.hansa-online.de and I started using qTranslate X just a few days ago.
Everything works fine, except the display of the post titles in google news. The title contains the language tags and also is build out of the 2 different language versions of the title. (Title in google news looks like this: [:de]Rickmers verkauft Trust-Manager[:en]Rickmers sells all trustee)
I have to find a quick solution for this problem because the news site is pretty big and if I can't fix the problem by the end of the day I have to stop using the plugin. Since everything else works fine I hope anyone can help me fix this issue.
Thanks
Lenni

Alaxos Acl plugin internationalization issue

Im using alaxos Acl plugin for managing user roles and groups in my cakephp 2.6 project,the plugin use english as the default language, the problem i want to change it to the french language in my cakephp project, but i don't know how.
i added
Configure::write('Config.language', 'fre'); to the bootstrap.php of the plugin or the bootstrap.php of my main application but it didn't work.
Thanks in advance
You just made me realize that I always see my own plugin in English as well...
The point is that at some point (Internationalizing Your Application) the french code has changed from fre to fra but I've never updated the plugin.
Rename the folder plugins/Acl/Locale/fre to plugins/Acl/Locale/fra, and use Configure::write('Config.language', 'fr') and it should work.

CakePHP l10n default locale

We are struggling with a l10n problem in cakePHP. It seems that the default language is picked up from what is sent by the browser's user agent. Is there a way to override this option, using a setting in core.php ?
Thanks
Regards
Gabriel
Your problem is about localization (l10n).
I think that the cookbook can help you : http://book.cakephp.org/view/1230/Localization-in-CakePHP
Regards

Have problem with maintaining session in a Website sone in CakePHP

Well as I have posted earlier too...I have created a site in two languages.One with URL www.mainDomain.com(English) and other with www.fr.subDomain.com(French).Both are done in CakePHP,in french I have just changed the views of it to French.But the problem is,when anybody login's in English version and then switches to the French version,the session does'nt recognizes it and ask for login again.It has become to be the biggest bug in the Web application which I have done till far.How can manage this thing? Is there any way so that I can manage session on the same time?Please suggest me some thing,so that I can resolve this thing...!!!
Thanks in advance
Perhaps this may help you: http://www.cake-toppings.com/tag/subdomains/

Resources