PDA

View Full Version : Problem changing default language back to English


KenKlatt
16-10-05, 08:42 AM
Hello All!

I've just installed dotProject on a new site and I then installed the German Language pack as I would like users to be able to view the site in German if they like, but I want the default to be English.

Before installing the language pack, I noticed that there was nothing to select in the default user preferences screen for Locale. Then after I installed the pack, I could select German, but I could not see English on the list. I made the mistake of select German from this list and saving the configuration. Now when I log in everything is in German and I cannot set it back to English. Is there something I need to do when installing the German Language Pack that is not mentioned in the README (below)? I've also checked the System configuration and the host locale is set to 'en'. Don't know why it is still German.

I) b) Installation:
-------------------
0) Get the german localisation archive from sourceforge.net/projects/dotmods
1) Untar (tar -xvvz de_DE????????.tar.gz) the file to the dotProject root directory.
This archive contains the relevant diretory structure.
2) As with dotProject 2.0 and above it could be necessary to refresh the session in order
to have the new localisation files registered with dotProject. Eventually logout and relogin.
3) You now have the following options:

i) Set the german language for yourself (No system administrators permissions required):
+ Login with your username/password combination to dotProject
+ Choose 'My Info' from the upper right menu of dotProject
+ Choose 'user preferences' from the breadcrumb below the site header
+ Choose 'German (Ger)' from the Locale dropdown box and click submit

Or you must be logged in with system administrators permissions and may be allowed to:

ii) Set the german language for a special user:
+ Go to the User Admin Module (Main Menu)
+ Choose the relevant User from the list and click his name
+ Choose 'user preferences' from the breadcrumb below the site header
+ Choose 'German (Ger)' from the Locale dropdown box and click submit

iii) Set the german language as default for all new users (can be overriden a posteriori)
+ Go to the System Admin Module (Main Menu)
+ Choose 'Default User Preferences'
+ Choose 'German (Ger)' from the Locale dropdown box and click submit

iv) Set the german language as default for the login screen:
+ Go to the System Admin Module (Main Menu)
+ Choose 'System Configuration'
+ Change the Host Locale option to 'de' and save

I found a post on this forum about checking the lang.php file and I changed it in the de folder to say the following:

$dir = basename(dirname(__FILE__));

$LANGUAGES['de_DE'] = array ( $dir, 'German (Ger)', 'Deutsch (DE)', 'de');
$LANGUAGES['en_US'] = array ( $dir, 'English (US)', 'English (US)', 'enu');

Doing this allowed me to Select "Englisch" (sic. the German spelling) from the Locale menus, but it has no effect. Everything is still in German.

Is there anyone who can offer some guidance?

KenKlatt
19-10-05, 12:46 PM
Well, I finally just downloaded all the installation files again and reinstalled everything fresh with a new database and this time I was able to select all the different english locales from the configuration screens. This was not the case with my first installation attempt as I clearly remember having no options in the Locale dropdowns prior to installing the German Language Pack. Now I've installed the German Language Pack on the fresh install and everything appears to be working correctly. Luckily reinstallation was not too difficult since my site is a new one.