Change default language
« on: March 18, 2015, 10:54:25 AM »
Does anybody know how to change the default language (English) chosen from the language bar? I have a site with two languages installed (English and Chinese) but the browser (IE 11) keeps loading English even though I have made changes in config.php. Manually (via the language bar) the language can be changed just fine.

Thanx in adv.  :)

Mark

*

Pharg

  • *****
  • 2,071
  • osDate Version: osDate Evo v1.0
Re: Change default language
« Reply #1 on: March 18, 2015, 11:15:28 AM »
Hi Mark,

What version osDate are you using?

Is the osDate Language Option section on the left column showing so you change the languages?
What are you changing in the script in the config.php?

Having 2 or more languages loaded in the admin/Manage Languages area loads them to the database.

You might want to use the new osDate translator mod you can find it here
http://www.osdateforum.com/configuration-installation-4/translation/msg5208/?topicseen#new
« Last Edit: March 18, 2015, 11:21:37 AM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

Re: Change default language
« Reply #2 on: March 18, 2015, 01:07:12 PM »
Hi Pharg,

thanx for your quick response.

OSdate 2.5.4

I can change the language by using the language bar on the main page, http://cnlovematch.com

I have loaded the languages to the database...

These lines are changed in config.php:

define( 'DEFAULT_LANG', 'chinese' );

define( 'DEFAULT_COUNTRY', 'ch' );

Thanx again  :)

Best regards

Mark

*

Pharg

  • *****
  • 2,071
  • osDate Version: osDate Evo v1.0
Re: Change default language
« Reply #3 on: March 18, 2015, 08:42:30 PM »
Hi Mark,

Your welcome, we are up to osDate 2.6.5 you might want to update soon.

The translator Mod works better than the standard language changer.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

Re: Change default language
« Reply #4 on: March 19, 2015, 06:00:08 AM »
Hi Pharg,

you don't know what else that needs to be changed to make the default language Chinese?

Best regards

Mark

*

Pharg

  • *****
  • 2,071
  • osDate Version: osDate Evo v1.0
Re: Change default language
« Reply #5 on: March 19, 2015, 07:13:55 AM »
Hi lordbane,

In the admin under the Site Global Settings on line 4 you will find it is set to English.

Default Admin language (Logout and Login to effect) English change to Chinese :) Only if you can read Chinese that is!!
Plus in the same area under USer Controls you will find hald way down:
Default country : US Change to CN For China

« Last Edit: March 19, 2015, 07:18:51 AM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

Re: Change default language
« Reply #6 on: March 19, 2015, 07:39:03 PM »
Hi Pharg,

sorry to say, I have done that allready but it doesn´t solve the problem   ???

Do you have other suggestions?

Best regards

Mark

*

Pharg

  • *****
  • 2,071
  • osDate Version: osDate Evo v1.0
Re: Change default language
« Reply #7 on: March 19, 2015, 09:43:57 PM »
Hi Pharg,

thanx for your quick response.

OSdate 2.5.4

I can change the language by using the language bar on the main page, http://cnlovematch.com

I have loaded the languages to the database...

These lines are changed in config.php:

define( 'DEFAULT_LANG', 'chinese' );

define( 'DEFAULT_COUNTRY', 'ch' );

Thanx again  :)

Best regards

Mark


Hi Mark,

The default country should be CN like in the database.
So change the
Quote
define( 'DEFAULT_COUNTRY', 'ch' );
to
Quote
define( 'DEFAULT_COUNTRY', 'CN' );

For IE 11 issues try putting in the meta tag below in to the index_header.tpl
Code: [Select]
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>

« Last Edit: March 19, 2015, 09:50:13 PM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35