| |
| | |

CodersClub

 Forgot password?
 Register
Search
Author: jhoxi
Collapse the left

how to set a default language?

[Copy link]

 Russia

Post time: 2012-02-17 20:39
| Show all posts
some métodod to solve this problem.?

In case of single lingual visitors it is simple!
config_global:
$_config['output']['language'] = 'es'; // or 'kr', or other language
$_config['detect_language'] = false;        // Auto-detect user language: true|false
 Author| Post time: 2012-02-17 20:58
| Show all posts
vot respondió a las 2012-2-17 21:39
In case of single lingual visitors it is simple!
config_global:
$_config['output']['language'] = 'e ...

Solvedd!

 Korea, Republic of

Post time: 2012-02-18 05:13
| Show all posts
In My case, site always return to english in  logout status.
and  at also  first visit after cookie clear, site is english.

my config file set:

$_config['output']['language'] = 'kr';

// ----------------------  CONFIG DETECT_LANGUAGE  ---------------------- //
$_config['detect_language'] = '0';

// --------------------  CONFIG ENABLE_MULTILINGUAL  -------------------- //
$_config['enable_multilingual'] = 1;

P.S
I replied to vot's mail about my server and desktop status.
thank vot your sincere work.
 Author| Post time: 2012-02-18 06:14
| Show all posts
ionobgy respondió a las 2012-2-18 06:13
In My case, site always return to english in  logout status.
and  at also  first visit after cookie  ...

This form is not correct,
There is no other method, i can only spanish name to "en" is the only solution
 Author| Post time: 2012-02-18 07:30
| Show all posts
Solved!
The problem is UCenter spanish version, I've corrected. I may prepare the Spanish version 2 ucenter

 Russia

Post time: 2012-02-18 13:05
| Show all posts
After verifying ionobgy's environment
I see the problem caused because of our Korean pack ID is not corresponding to the ISO-639 standard.
Our Korean ID is "kr" (like Korea contry code).
But the ISO language code must be not "kr" but "ko"!

What to do?
Variants:
1) Rename Korean language pack to "ko"
2) Add a small hardcoded patch for renaming "ko" to our "kr".
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-23 20:09 GMT+3 , Processed in 0.071522 sec., 7 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list