<Solved>login.php cannot switch the language

Get help with installation and running official modules for phpwcms here. Please do not post bug reports or feature requests here.
sunny123
Posts: 52
Joined: Wed 26. Sep 2007, 02:11

<Solved>login.php cannot switch the language

Post by sunny123 »

I hope the page "login.php" can switch the language, how to change the code?
Thank you!
Last edited by sunny123 on Thu 11. Oct 2007, 03:05, edited 2 times in total.
sunny123
Posts: 52
Joined: Wed 26. Sep 2007, 02:11

Post by sunny123 »

Pappnase,post here nobody answer me!
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post by StudioZ »

[Note: This is false, Oliver]

Hi Sunny123,
Not fully implemented yet. :roll:
You will have to make a duplicate of this file:
template/inc_cntpart/felogin/fe_login.tmpl
and edit it for your needs.

After this, just select it from inside your login Content Part

Cheers,

Yves
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
sunny123
Posts: 52
Joined: Wed 26. Sep 2007, 02:11

Post by sunny123 »

StudioZ wrote:Hi Sunny123,
Not fully implemented yet. :roll:
You will have to make a duplicate of this file:
template/inc_cntpart/felogin/fe_login.tmpl
and edit it for your needs.

After this, just select it from inside your login Content Part

Cheers,

Yves
Sorry! :( You don't understand my meaning, I want to change backend language, how to switch the language at "login.php" of backend? I want user can see their language at login page of backend!
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post by StudioZ »

sunny123 wrote: Sorry! :( You don't understand my meaning, I want to change backend language, how to switch the language at "login.php" of backend? I want user can see their language at login page of backend!
Oh!
01. Login as the User (ex.: Admin01) you want to change the language for and...
02. Go to Menu: Profile and make your selection in the language sub menu.

From now on, Admin01, will see the backend in the language you selected for him.

You should be OK now. :roll: :wink:

Yves
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
sunny123
Posts: 52
Joined: Wed 26. Sep 2007, 02:11

Post by sunny123 »

StudioZ wrote:
sunny123 wrote: Sorry! :( You don't understand my meaning, I want to change backend language, how to switch the language at "login.php" of backend? I want user can see their language at login page of backend!
Oh!
01. Login as the User (ex.: Admin01) you want to change the language for and...
02. Go to Menu: Profile and make your selection in the language sub menu.

From now on, Admin01, will see the backend in the language you selected for him.

You should be OK now. :roll: :wink:

Yves
Can you see my pic above?
I know you meaning, but I want user to choose their languages at login page of backend, they can see their language at login page at first, how to change the code of "login.php"?
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post by StudioZ »

I understand now :wink:
Check the content of your folder:
include/inc_lang/backend/

You should see in there, all the different backend language packages:

ar
bg
ca
cz
da
de
en
es
et
fi

...
etc.

would the "bg" be the good one for you ?
If you can't access it through the menu at login.php then...
I would assume it is not in your distro.
You would then have to take it from fresh distro.

Or... is it possible it is not even translated for you yet?
You need which language? Is it Chinese (BG) ?

Hope you get it sorted out :roll: :wink:

Yves
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Have you added your language entry into this file?
"include/inc_lang/code.lang.inc.php"

Code: Select all

$BL['EN'] = 'English';
$BL['AR'] = 'عربي';
$BL['BG'] = 'Български';
$BL['CA'] = 'Catal&agrave;';
$BL['CZ'] = 'Česky';
$BL['DA'] = 'Dansk';
$BL['DE'] = 'Deutsch';
$BL['ET'] = 'Eesti';
$BL['ES'] = 'Espa&ntilde;ol';
$BL['FR'] = 'Français';
$BL['GR'] = 'Ελληνικά';
$BL['IT'] = 'Italiano';
$BL['LT'] = 'Lietuviu';
$BL['HU'] = 'Magyar';
$BL['NL'] = 'Nederlands';
$BL['NO'] = 'Norsk';
$BL['PL'] = 'Polski';
$BL['PT'] = 'Portugu&ecirc;s';
$BL['RO'] = 'Rom&acirc;nă';
$BL['FI'] = 'Suomi';
$BL['SE'] = 'Svenska';
$BL['RU'] = 'Русском';
$BL['SK'] = 'Slovenčina';
$BL['SL'] = 'Sloven&scaron;čina';
$BL['TR'] = 'T&uuml;rk&ccedil;e';
$BL['VN'] = 'Tiếng Việt';
sunny123
Posts: 52
Joined: Wed 26. Sep 2007, 02:11

Post by sunny123 »

StudioZ wrote:I understand now :wink:
Check the content of your folder:
include/inc_lang/backend/

You should see in there, all the different backend language packages:

ar
bg
ca
cz
da
de
en
es
et
fi

...
etc.

would the "bg" be the good one for you ?
If you can't access it through the menu at login.php then...
I would assume it is not in your distro.
You would then have to take it from fresh distro.

Or... is it possible it is not even translated for you yet?
You need which language? Is it Chinese (BG) ?

Hope you get it sorted out :roll: :wink:

Yves
sorry, you still don't understand me.
I hope this login.php page not for me, I hope it for every one!
As so ar,ca,cz,da,de,en... every language, they can see their language!
I may achieve?
sunny123
Posts: 52
Joined: Wed 26. Sep 2007, 02:11

Post by sunny123 »

[quote="DeXXus"]Have you added your language entry into this file?
"include/inc_lang/code.lang.inc.php"

Code: Select all

$BL['EN'] = 'English';
$BL['AR'] = 'عربي';
$BL['BG'] = 'БългарÑ
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post by StudioZ »

DeXXus wrote:Have you added your language entry into this file?
"include/inc_lang/code.lang.inc.php"
...
Ah Ah !!!!
I think DeXXus' genious has THE solution to your problem :D
N'est-ce pas? :wink:

Cheers,

Yves
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
sunny123
Posts: 52
Joined: Wed 26. Sep 2007, 02:11

Post by sunny123 »

StudioZ wrote:
DeXXus wrote:Have you added your language entry into this file?
"include/inc_lang/code.lang.inc.php"
...
Ah Ah !!!!
I think DeXXus' genious has THE solution to your problem :D
N'est-ce pas? :wink:

Cheers,

Yves
NO NO!
You all don't understand me!
Please watch my picture above carefully!
Now I choose English, but it still Chinese,I want the page to turn into English login page. How to do?
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

This may be a dumb question. Is your browser encoding set properly to English?
sunny123
Posts: 52
Joined: Wed 26. Sep 2007, 02:11

Post by sunny123 »

DeXXus wrote:This may be a dumb question. Is your browser encoding set properly to English?
My IE browser? How to set encoding properly to English?
sunny123
Posts: 52
Joined: Wed 26. Sep 2007, 02:11

Post by sunny123 »

DeXXus wrote:This may be a dumb question. Is your browser encoding set properly to English?
Can you help me to change the login.php to set properly langage from people choose, and from browser enconding too?
Post Reply