Can not set default localisation
Hello,
I am opening this topic as I was unable to solve my problem by reading previous entries about it.
As I need a German localisation for a small IT trainee class I tried to set up the most recent German localization pack. While enabling it went smoothly, the dropdown box for changing the default localisation pack remains empty.
Installation: Most recent Vanilla 2 Forums application on rented PHP 5.2.1 server
Attempted Solutions: Re-Installation of forum software + localization pack;
CHMOD permissions changed to 666/777 where required according to documentation;
Manual adaption of '$Locales = array_unique($Locales/*, SORT_STRING*/);' in class.localemodel.php
Help ressources used: Vanilla documentation,
http://vanillaforums.org/discussion/16162/my-default-locale-dropdown-selection-does-not-work
http://vanillaforums.org/discussion/15585/unable-to-set-a-default-locale-dropdown-list-is-void
Thank you for your help in advance!
Comments
@RobertW
you may need the latest PHP version,It should be version 5.2.9 or newer.
http://php.net/downloads.php
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Thank you for your reply. As it is a rented server I have no influence on the PHP version used and need a software-side (as in forum) workaround for displaying the default locales.
@RobertW
Traurig, Maybe you could talk to your host and tell them their php is outdated .
Did you check your config.php?see if you don't have this but for your locale? :
$Configuration['Garden']['Locale']= 'en-CA';
if you don't have this add it to your config.php see if it helps
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
I added the variable and replaced the config file on server, unfortunately without effect. Would changing "en-CA" to "de-DE" help which is the shortcut of the new localisation?
Yes ! it certainly should en-Ca is english (Canada lol) so change to your locale de-DE (deutsch)
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Still no change I'm afraid. Attaching my config file, if you could please check for possible mistakes...
Your attachment did not show, Try erasing the old locale map ini
/forum/cache/locale_map.ini
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Change your server.
Apparently the file type is disallowed, not seeing any errors though. Tried erasing the locale map.ini, no effect.
you can post the code using < pre > code goes here < / pre >
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Maybe it's nothing but could you try using capital letter ?
$Configuration['EnabledLocales']['German'] = 'de-DE';
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Tried and changed, no effect once more. Sorry, I know it's a pretty frustrating issue...
Well we know that the issue is likely outdated php on your server.
I would back track and remove what you commented out and put it back to ($Locales, SORT_STRING);
/forum/library/core/class.locale.php is what calls the active locales. It is what is supposed to render the definitions and also the settings in the dashboard.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
I know it's probably the php issue, however I consider it pretty annoying that changing the language fails because of a strangely coded dropdown-render-menu. I will probably need to switch to another forum software then but it's hard to find alternatives with simple structures like this. Came here as I didn't want another "complex" forum with category display and far too much functionality for my needs.
Thanks for your assistance, I greatly appreciate it.
If the other forum software requires a newer php version you may have the same issues. All forum software uses php . I have not found any other forum software that is as user friendly as Vanilla. There are many German users here. Maybe @HalfCat can be of more help than I in this matter.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
I don't think we have a communication issue here, your suggestions were very helpful. PHP in itself is no problem and I'm running several parallel domains with different forum or cms software, this problem is the first of that kind I ever had. E.g. using the recently released Wordpress 3.5 build provides no problems at all.
You have the forum embedded in Wordpress ? The reason I mentioned HalfCat is because he might have more experience with that locale. Or know other German users of that locale who may have experienced the same issue.
Also in doing research on Locales I find that there are various for Germany and it may be important t write them like this :
German - Germany de-DE
as you can see there is also
German - Liechtenstein de-LI
The first de is German in general and the second DE means Germany
So I deduce from this:
$Configuration['EnabledLocales']['German - Germany'] = 'de-DE';
But the problem here is that something is not being summoned so it renders in the dashboard setting in the drop down menu. You can name a locale anything as long as the file name matches. It is just a name it should not affect it unless the names are wrong.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
No, the forum was supposed to run as standalone, own domain, database and server directory. I downloaded the German localisation from Vanilla's localisation section, German for Germany in 'du' variation.
I ran out of ideas I downloaded the locale to see what it contains and the instructions, seems rather simple, it should work. Out of curiosity, before you installed the locale, were you able to see the en-Ca skeleton in the dashboard?
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌