| |
| | |

CodersClub

 Forgot password?
 Register
Search
Author: jhoxi
Collapse the left

how to set a default language?

[Copy link]

 Korea, Republic of

Post time: 2012-02-17 10:59
| Show all posts
Edited by ionobgy at 2012-2-17 12:04
vot replied at 2012-2-17 11:48
I think it is not good to modify the core code for just set the default language

The only one me ...

I think so.
But I cannot set the default language to korean by "$_config['output']['language'] = 'kr'" code.

After set with above code.
If I logout, Then language return to english.
Maybe, I think that my browser change the setting or other embeded  html file change the setting.
Or bug.(but my all bowser--chrome, safari, firefox, IE display same problem therefore I guess the problem is my website's  other file except discuz.)

But I cannot correct the problem and  need the embeded file in my website.
Therefore I changed the source  code  for return to korean language forcefully.

I hope that problem is solved by other method than above coding.

 Russia

Post time: 2012-02-17 11:02
| Show all posts
Let's discuss the default language algorithm!

1) What to do if NO default language is set?
2) What to do if default language is invalid, i.e. is not present in the enabled language list?
3) What to do if a user bowser preferred language is not present in the enabled language list?
 Author| Post time: 2012-02-17 11:08
| Show all posts
Honestly, I would like the default language is Spanish, as it is very annoying to go to config_global.php(After the installation). There is any way to configure, I find the codes

 Korea, Republic of

Post time: 2012-02-17 11:09
| Show all posts
Edited by ionobgy at 2012-2-17 12:23
vot replied at 2012-2-17 12:02
Let's discuss the default language algorithm!

1) What to do if NO default language is set?

For find out the problem, I did try and try modification of code using your debug code in source.
But the detect language is suddenly turned  from kr to en after logout.

Please test at this site.
Set the default language to kr or sc or es .. (except en) therefore logout.
in my case, default language turned to en if logout.
If not logout, default language setting is keep to kr because cookie value is alive.



 Author| Post time: 2012-02-17 11:12
| Show all posts
ionobgy respondió a las 2012-2-17 12:09
I did try many modification of code.
using your debug code in source.
But the detect language is s ...

I have the same problem, where finding "EN" to replace by "ES"

 Russia

Post time: 2012-02-17 15:57
| Show all posts
We must first solve what the algorithm to use!!!
http://codersclub.org/discuzx/fo ... &page=2#pid3008

 Korea, Republic of

Post time: 2012-02-17 18:16
| Show all posts
Edited by ionobgy at 2012-2-17 20:37
vot replied at 2012-2-17 12:02
Let's discuss the default language algorithm!

1) What to do if NO default language is set?

My opinion:
No default language set or
Invalid default language set or
Browser prefered language is absent in language list
--->autodetect the user language or  if autodetect is not possible, setting to english is rational.

But I set default language to "kr" in  config_global.php.
and "kr" language is present in config file's list and in folder.
Also My browser prefered language is korean first, english second.

Nevertheless site always turn to english if I logout  at  latest revision.

I am a korean.
Therefore I use korean MAC OS or Window OS, korean version chrome or IE browser.
Also I think that my config_global.php is correct.

What is the problem?
In case of other language except english,
Is default language setting  not activated  in logout state?

Please view below video.
Screen capture of my other test site http://kaplog.org (latest version newly installed)
http://obgy.or.kr/thread-90-1-1.html
 Author| Post time: 2012-02-17 20:13
| Show all posts
I need to change the default language Spanish with urgency, always asks me to start the installation file "EN", and I have to change it "ES" to "EN"

 Russia

Post time: 2012-02-17 20:24
| Show all posts
What is the problem?

I think the problem is in incorrect algorithm...
 Author| Post time: 2012-02-17 20:26
| Show all posts
vot respondió a las 2012-2-17 21:24
I think the problem is in incorrect algorithm...

That's possible, but some métodod to solve this problem.? or no
my users are not  Multi lingues
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 17:22 GMT+3 , Processed in 0.092764 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