Forums / Addon Language Packs / Default language selection problem

Default language selection problem

Locked

Started by jrdmclaren on 3 Jul 2006, 8:39 PM · Views: 3,649

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
3 Jul 2006, 8:39 PM
#1
jrdmclaren avatar

jrdmclaren

New Zenner

Join Date:
Jul 2004
Posts:
4
Plugin Contributions:
0

Default language selection problem

Hello ..everybody..

I have "zen" v.1.2.1 and my own partialy translated Slovak language pack..

..in "ADMIN" language selection I have set Slovak Languge as DEFAULT language..
.. if I use IE to browse my pages, all is OK, I have Slovak Language as default on "first page"..
..and if I use "other" browser, Mozilla Firefox, then "first page" is in English languge..

..OpSys does not mather..and browser language too..

..Have anybody idea, how can I solve this problem ..??

..THX..

..
[SysInfos]
MDK2006
Apache2.0
php 5.0.4
MySQL
openSSL 0.9.7

4 Jul 2006, 4:24 AM
#2
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Default language selection problem

Don't know what is your problem and can't help without seen it.

will the topic below helps?

Better Multi Languages Support And Detection

And the best is upgrade to current verion of v1.3.x. And no problem for the above topic and with many more functions.

.

A New Starter again

4 Jul 2006, 11:19 AM
#3
jrdmclaren avatar

jrdmclaren

New Zenner

Join Date:
Jul 2004
Posts:
4
Plugin Contributions:
0

Re: Default language selection problem

..Ok ..
just look at http://www.daewooparts.sk/

..now I have a tested on Win browsers ..IE, Opera, Mozilla..
..IE and Opera - has slovak language..
Mozilla_EN - English
Mozilla_SK - English in "frst time load"
..but if I switch to slovak in browser window..then Slovak language is in all times, runs,..etc...
( in dont know how....)

and in "UNIX" browsers, Mozilla, Opera, Konqueror,
..all bowsers wihtout Mozilla have Slovak language as default on first page..
..in UNIX system Mozilla's language does not effect... still have English..

4 Jul 2006, 12:21 PM
#4
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Default language selection problem

From your two languages pages

  1. English
    http://www.daewooparts.sk/index.php?main_page=index&language=en
  2. Slovak
    http://www.daewooparts.sk/index.php?main_page=index&language=sk

Both show in my Firefox with the Character Encoding of Central European (ISO-8859-2)
And both show in my IE6 with the Encoding of Central European (ISO)

It seems that you have use the same locale code for your two languages.

Please check in your files of the default English Language Pack.
admin/includes/languages/english.php
includes/languages/english.php

Unless you have intended to set to ISO-8859-2, in the default install of english the follow lines should be:
setlocale(LC_TIME, 'en_US.ISO_8859-1');

And in your Slovak Language Pack,
admin/includes/languages/slovak.php
includes/languages/slovak.php

you should check, find and set the correct locale code for your language.
Or may be you should ask your web hosting for the correct code for your locale as they know better for their server setting and languages support.

.

A New Starter again

4 Jul 2006, 4:25 PM
#5
jrdmclaren avatar

jrdmclaren

New Zenner

Join Date:
Jul 2004
Posts:
4
Plugin Contributions:
0

Re: Default language selection problem

..the default codepage for slovak language is ISO-8859-2
..it's all OK..
...and set_locale in slovak.php is right...

but..
if you enter URL to the browser's address window.. .."and pres ENTER"..

..witch language you seen first ..??

..(default codepage for APACHE is ISO-8859-2 too)..

4 Jul 2006, 4:32 PM
#6
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Default language selection problem

No change and always Central European (ISO-8859-2) for the encoding and in English.

A New Starter again

4 Jul 2006, 5:02 PM
#7
jrdmclaren avatar

jrdmclaren

New Zenner

Join Date:
Jul 2004
Posts:
4
Plugin Contributions:
0

Re: Default language selection problem

...Ok ..I can have ISO-8859-2 ..
..
but I can have Slovak languge " as default"
.. and I can see it on frsrt load.. ..first page..
...AND THEN users may can switch to other language..

..i don't know, why some browsers has Slovak as first,
..and some browsers has English as first ..

..AND THERE IS MY PROBLEM..