1
truszek
Is this possible?
  • 2004/4/27 12:34

  • truszek

  • Just popping in

  • Posts: 15

  • Since: 2002/8/19


Hi
Is this possible, to got diffrent languages in administration menu and on main site? Something like this:
- administration menu in english
- www site in espaniol

Thanks for the answers !

2
Mithrandir
Re: Is this possible?

I believe you would accomplish that by changing lines 34-36 in include/cp_header.php

original code:
if ( file_exists"../language/" $xoopsConfig['language'] . "/admin.php" ) ) {
    include 
"../language/" $xoopsConfig['language'] . "/admin.php";
}

new code:
if ( file_exists"../language/english/admin.php" ) ) {
    include 
"../language/english/admin.php";
}

3
phppp
Re: Is this possible?
  • 2004/4/27 13:08

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


or, delete admin.php files under language folders other than english of each module

4
Mithrandir
Re: Is this possible?

I don't think that will work, phppp - I don't see any code in cp_header() which will revert to English if no language file is found.

5
phppp
Re: Is this possible?
  • 2004/4/27 13:21

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


oops, you are right

there is a bug I forget to report, actually in cp_heard.php not in cp_header()

ROOT/include/cp_header.php, last lines


// include the default language file for the admin interface
if ( file_exists( "../language/" . $xoopsConfig['language'] . "/admin.php" ) ) {
include "../language/" . $xoopsConfig['language'] . "/admin.php";
}elseif ( file_exists( "../language/english/admin.php" ) ) {
include "../language/english/admin.php";
}


furthermore, not all module developers use the cp_header.php

EDIT: similar as yours, if <=> elseif

6
truszek
Re: Is this possible?
  • 2004/4/27 13:35

  • truszek

  • Just popping in

  • Posts: 15

  • Since: 2002/8/19


Thanks!

Regards

Login

Who's Online

159 user(s) are online (117 user(s) are browsing Support Forums)


Members: 0


Guests: 159


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits