Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2015-07-02 19:22:18

ax
Plugin Author
From: Germany
Registered: 2009-08-19
Posts: 165

Cannot change active language

After having installed a new language in the language tab, and trying to activate this language, I would get this error message:

Fatal error: Uncaught exception ‘Exception’ with message ‘invalid_argument: locale’ in /srv/www/htdocs/cases/textpattern/vendors/Textpattern/L10n/Locale.php:139 Stack trace: #0 /srv/www/htdocs/cases/textpattern/include/txp_lang.php(310): Textpattern_L10n_Locale->setLocale(6, ‘en-us’) #1 /srv/www/htdocs/cases/textpattern/include/txp_lang.php(49): save_language() #2 /srv/www/htdocs/cases/textpattern/index.php(212): include(‘/srv/www/htdocs…’) #3 {main} thrown in /srv/www/htdocs/cases/textpattern/vendors/Textpattern/L10n/Locale.php on line 139

Using 4.6-dev (3f057f6706500276344eb3cbff58b754) PHP version: 5.6.9-0+deb8u1 Apache/2.4.10

But no problems with changing between English (Great Britain) and German, which I had installed about 2 weeks ago together with the Textpattern install from Github. I tried several languages, but with the same result. Inactivating all plugins has no effect. Also, I wonder if I could uninstall these languages that are not needed easily?

Offline

#2 2015-07-02 19:56:31

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

Re: Cannot change active language

This sounds like a missing locale on your server – more info: forum.textpattern.com/viewtopic.php?id=40685

Offline

#3 2015-07-02 22:35:44

ax
Plugin Author
From: Germany
Registered: 2009-08-19
Posts: 165

Re: Cannot change active language

Bingo, and for the records: Follow these instructions when having a Debian system to change the language

https://wiki.debian.org/ChangeLanguage

Then reboot. Thanks!

Offline

Board footer

Powered by FluxBB