German Istallation

Permalink
Hi, concrete5 is amazing. I tryed to switch the Backend to German. Downloaded the .po-file, and made the changes to the two php files. But if i have to compile the po file to an .mo file, can anybody help me? Is there an allready compiled version or how can i compile the file on my mac?
thanks for a tip

 
synlag replied on at Permalink Reply
synlag
you don't need to compile it; you can find a description at

http://de.wikibooks.org/wiki/Concrete5:_FAQ#Kann_c5_in_unterschiedl...
stadtantenne replied on at Permalink Reply
i tryed to install as shown in the wiki. just put the "messages.po" into the languages folder and insert ((define("LOCALE", 'de_DE');)) into the "site.php". But it won't work. GetTextSupport is enabled.
Remo replied on at Permalink Reply
Remo
Are the locales de_DE installed?

Not the po file, I'm talking about linux!
stadtantenne replied on at Permalink Reply
maybe thats the problem. i try concrete5 in MAMP-enviroment Apache on my mac. I'll try on my webserver. maybe MAMP-Apache don't use the locales from osx. tnx
2BitMarv replied on at Permalink Reply
2BitMarv
Hi,

I have the same problem. I was following the standard procedure (modified site.php and then base.php) for switching to german language and checked the return of setlocale(), which returned "de_DE" as i expected (var_dump(setlocale(LC_ALL, 'de_DE'))). My Provider is 1&1. PHP 5.2.8 works on a CGI basis not as a module. It still does not work and now I'm a bit confused. Any suggestions are very appreciated!
stadtantenne replied on at Permalink Reply
now i tryed an installation on my osx webserver under apache and still the same. there is no german translation workin so it seems that not MAMP was the problem.

again:
i took the geman "messages.po" into the "languages" folder and under "config/site.php" define("LOCALE", 'de_DE');

shall there be anything more?
Steff replied on at Permalink Reply
Steff
I think Remo is pointig into the right direction.

I don't know how it is on a mac. But on a linux system you have to install de de_DE locales. Have a look at this page:
http://linuxwiki.de/locale

To list the installed locales on a linux box, just type:
locale -a

there should be de_DE listed.

You can get additional information about locales here:
http://www.linux.com/feature/53781...
stadtantenne replied on at Permalink Reply
i tryed locale -a in the osx terminal and get a huge list of locals for german i get these:

de_AT
de_AT.ISO8859-1
de_AT.ISO8859-15
de_AT.UTF-8
de_CH
de_CH.ISO8859-1
de_CH.ISO8859-15
de_CH.UTF-8
de_DE
de_DE.ISO8859-1
de_DE.ISO8859-15
de_DE.UTF-8

so i don't thinkt that's the prob.
Steff replied on at Permalink Reply
Steff
1. check with phpinfo if you have activatet gettext in php
2. download poedit fromhttp://www.poedit.net/download.php... and install it.
3. open the messages.po with poedit
4. save the messages.po with poedit. it should make a messages.mo
5. copy the messages.mo to /languages/de_DE/LC_MESSAGES
6. add define('LOCALE', 'de_DE'); to /config/site.php

this are the steps i made to get the german lanuage-pack working.

hope this will help you too.
stadtantenne replied on at Permalink Reply
Thanks a lot. Now it works. Its quiet confusing in the description. There was no word about the folders /de_DE/LC_MESSAGES/ i had to create and nothing about creating the .mo file. thanks for help
2BitMarv replied on at Permalink Reply
2BitMarv
That was the right direction! Maybe this should be added to the documentation?

kind regards, Marv
Steff replied on at Permalink Reply
Steff
@Marv
Good Idea. I've just updated this german site
http://de.wikibooks.org/wiki/Concrete5:_FAQ#Kann_c5_in_unterschiedl...
alexb replied on at Permalink Reply
I tested this out locally on my computer. at first it didn't work. so i restarted the apache and then it worked. Unfortunately i do not have direct access to the apache of my real website. any suggestions?
Steff replied on at Permalink Reply
Steff
Did you have to activate gettext on your local machine? Or did you have to change any thing else to your config? Otherwise I can not imagin why you had to restart the Apache.
alexb replied on at Permalink Reply
i didn't change anything in the config, gettext was already activated. i just restarted the apache.

Now i renamed the de_DE folder to make the language files unavailable for concrete. But concrete was still in german (???). when i removed define("LOCALE", 'de_DE'); from my site.php it switched to english.

I typed again define("LOCALE", 'de_DE'); into my site.php with my de_DE folder still renamed and unavailable. i restarted. Now concrete was of course English, because it could not find the language files. when i renamed the folder to de_DE, it switched to german.

it seems that you can't switch to german, if the language files were not available during the last restart.
stadtantenne replied on at Permalink Reply
Maybe your webserver caches some files?