0 Members and 1 Guest are viewing this topic.

*

Pharg

  • *****
  • 3,107
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Here the the steps in changing the default language.

In the install osDateEvo is automatically set to English by default.

To change the Default language, firstly go to the admin, then to Global settings group, find the line saying
Default Admin language (Logout and Login to effect) It will be English, change to your selected
language example Dutch, Then logout.

Now you need to edit your config.php and find line 119:
Code: [Select]
define('DEFAULT_LANG', 'english');
Change to the same as you picked in the admin:
Code: [Select]
define('DEFAULT_LANG', 'dutch');
You will also need to change this line from:
Code: [Select]
define('DEFAULT_COUNTRY', 'US');Change to Selected language code:
Code: [Select]
define('DEFAULT_COUNTRY', 'nl');
In the init.php find this line about 303:
Code: [Select]
$_SESSION['opt_lang'] = ($opt_lang=='')?'english':$opt_lang;
Change to:
Code: [Select]
$_SESSION['opt_lang'] = ($opt_lang=='')?'DEFAULT_LANG':$opt_lang;
That's it, you will need to leave English loaded in the database, also load your selected language example: Dutch

Small part of the admin will be in English still the rest will be in your selected language.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

Pharg

  • *****
  • 3,107
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: How to change the Default language correctly including the admin area
« Reply #1 on: March 01, 2018, 05:57:21 AM »
Hi all,

In testing all the new languages, you will be happy to hear that having your selected language in the admin and also on the members side is now way better than before.

I set out to fully translate all the language files, to find some that had been set to me had many errors in them, so I decided to
redo them all.

In doing this, I then found heaps of Emails layouts and other needed language text missing, this is a very long process as I
have to compare them all to the main English lang file, which isn't easy as the file compare program can and does corrupt some text in different languages so they have to be fixed and check again.

I have been manually checking each and every line over and over again which is very time consuming, it takes about a week just to complete one lang_main.php and then you also have to translate the profile_questions.php also so the profiles also translate with the rest of the script and website.

With the New Version osDateEvo v 1.3 coming, there has been more changes and more text added, which has to go into all lang_main.php files.

So please bear with me, as I am nowhere near complete as I thought I was sorry to say, heaps more to do and some much needed breaks off it as you can understand.

Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35