Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2005-10-17 06:44:15
- TomBus
- Member
- From: Bavaria
- Registered: 2005-07-06
- Posts: 85
Diagnose : Locale : en_GB.UTF-8
Hi,
I would like to change Locale: en_GB.UTF-8 to Locale: de_DE.ISO-8859-1.
Does anybody know how to do this?
german forum
ciao
Tom
Offline
Re: Diagnose : Locale : en_GB.UTF-8
This usually happens when you don’t have a internet-connection during install. You should (install and) switch to another language and back. The locale is set according to the current language and changed when you change the language.
Offline
#3 2005-10-17 07:59:49
- TomBus
- Member
- From: Bavaria
- Registered: 2005-07-06
- Posts: 85
Re: Diagnose : Locale : en_GB.UTF-8
Hi,
I hope we don’t speak about two different things.
I always had an internet-connection during install, how can i do without?
Sencer said “The locale is set according to the current language and changed when you change the language”
I tried it, but nothing changed.
Tom
Offline
#4 2005-10-18 00:32:53
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Diagnose : Locale : en_GB.UTF-8
Sencer said “The locale is set according to the current language and changed when you change the language”
I tried it, but nothing changed.
That probably means your system doesn’t recognize the locale strings we use. You can see them listed in textpattern/lib/txplib_update.php. de_DE.ISO_8859-1 is already there. Check those against the names used by your system’s locale files (typically /usr/share/locale or /usr/local/share/locale). Either the DE files are missing, or they use a different naming scheme.
You should use a utf-8 locale if it’s available. Textpattern does utf-8 natively.
Alex
Offline
#5 2005-10-18 15:18:34
- TomBus
- Member
- From: Bavaria
- Registered: 2005-07-06
- Posts: 85
Re: Diagnose : Locale : en_GB.UTF-8
Hi,
zero understanding :(
My page has textpattern/lang/de-de.txt (new from 17.10.05) and in the administrator-interface everthing is in german, okay, but the diagnostic still says “Regionale Einstellungen: en_GB.UTF-8” ??
[Zem said: Check those against the names used by your system’s locale files (typically /usr/share/locale or /usr/local/share/locale] I hope I find the right info >> phpinfo said: Local Value ISO-8859-1
Tom
Offline
#6 2005-10-18 22:44:40
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Diagnose : Locale : en_GB.UTF-8
Locales are handled by your server’s operating system, not Textpattern (de-de.txt is Textpattern’s language file, which contains all the text used in the admin interface; the OS Locale handles things like time and date translation, upper/lowercase conversion, etc). Locale names vary from one OS to another. Txp is defaulting to en_GB.UTF-8 because it can’t find a German locale on your server. That might be because there isn’t one installed, or because Textpattern doesn’t recognize its name.
If your server is Unix, you can usually look in the /usr/share/locale or /usr/local/share/locale directories to see a list of supported locales. Textpattern is looking for one of ‘de_DE.UTF-8’, ‘de_DE’, ‘de’, ‘deu’, ‘german’, ‘de_DE.ISO_8859-1’.
If there is a German locale, but its name doesn’t match, can you let us know what it is please, along with your server OS?
Alex
Offline
#7 2005-10-19 21:08:31
- TomBus
- Member
- From: Bavaria
- Registered: 2005-07-06
- Posts: 85
Offline
Re: Diagnose : Locale : en_GB.UTF-8
Is it possible that you are mixing up the meaning of locales and that of character-sets?
What is it in the end that you are trying to achieve?
Offline
#9 2005-10-20 04:04:58
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Diagnose : Locale : en_GB.UTF-8
Tom,
It looks like the http://www.denkfreude.de/iso.php page includes utf-8 characters, but specifes the page character set as ISO8859-1. That’s why those characters are showing up incorrectly.
As Sencer says, the locale and the page character set are different things entirely. Essentially, if your locale is incorrect (it’s shown on the diagnostics page), the worst that will happen is that dates aren’t translated correctly. The locale won’t affect the way your pages or articles are displayed.
If the problem really is with the locale, and not the page character set, we need you to find out what the correct locale name is on your system, by looking at the contents of those directories (or asking tech support). You don’t have to change anything.
Alex
Offline
#10 2005-10-20 11:50:49
- TomBus
- Member
- From: Bavaria
- Registered: 2005-07-06
- Posts: 85
Re: Diagnose : Locale : en_GB.UTF-8
Hi Sencer and zem,
We all are right and this is a fact:
The data for RSS are supplied from textpattern in UTF-8.
The page character is set as ISO8859-1 and that’s why those characters are showing up incorrectly.
The provider told me, the locales are
de_DE@euro for ISO-8859-15
de_DE for ISO-8859-1
And so we are again at the beginning, why are the results of the diagnosis (?):
MySQL: 3.23.49-log
Regionale Einstellungen: en_GB.UTF-8
Server: Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.1.2 mod_perl/1.26
If textpattern in german sites would send the data of rss in ISO-8859-1 there would be never a problem with the funny UMLAUTE ?
Is it or Not ?
Tom
Offline
#11 2005-10-21 00:06:50
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Diagnose : Locale : en_GB.UTF-8
> Server: Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.1.2 mod_perl/1.26
There’s one of your problems. Textpattern requires PHP 4.3. It works pretty well in older versions, particularly 4.2, but the older the version, the more things won’t work. This is one of them.
4.1.2 was released three and a half years ago. Perhaps it’s time for your host to upgrade?
If textpattern in german sites would send the data of rss in ISO-8859-1 there would be never a problem with the funny UMLAUTE ?
Textpattern sends html and rss data in utf-8. German characters (and others) work just fine. 8859-1 isn’t needed. (Again, about the only thing the locale affects is the display of dates – if your feed output is messed up, it’s not because of the locale).
Alex
Offline
#12 2005-10-21 06:01:27
- TomBus
- Member
- From: Bavaria
- Registered: 2005-07-06
- Posts: 85
Re: Diagnose : Locale : en_GB.UTF-8
I feared that :).
I asked for upgrade before.
<b>Only</b> for the wishes of their customers german providers don’t want to change there system’s !
Tom
Offline