Author Topic: [REQ]Link to ACP always in default language  (Read 4521 times)

0 Members and 1 Guest are viewing this topic.

Offline bibabobu

  • Sr. Member
  • ****
  • Posts: 311
  • Technische und künstlerische Gravuren
    • View Profile
    • Technische und künstlerische Gravuren für die gesamte Metall-, Kunststoff- und Papierindustrie
[REQ]Link to ACP always in default language
« on: May 02, 2006, 11:50:01 PM »
If i am logged in as admin on my site and i enter my ACP i would like to enter always in my default language also if i stay on my site in a different lang.

(Reason:
Because if i stay on my site in a different language and i enter my ACP the ACP language is the same like in the front end but a lot of tags are missing.
Because (unfortunately but not necessary) I have not all MODs (for the ACP configuration) in all languages. So i always have to go back changing the lang and enter in my default lang again.)


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [REQ]Link to ACP always in default language
« Reply #1 on: May 03, 2006, 12:31:53 AM »
mmmm....what if you use admin.php from your default language and copy it ot all other language folders? will it help?

Or in global.php find:
Code: [Select]
include(ROOT_PATH.'lang/'.$config['language_dir'].'/main.php');

Insert above:
Code: [Select]
if (defined('IN_CP')) {$l = null; $config['language_dir'] = $config['language_dir_default'];}
« Last Edit: May 04, 2006, 12:34:24 AM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline bibabobu

  • Sr. Member
  • ****
  • Posts: 311
  • Technische und künstlerische Gravuren
    • View Profile
    • Technische und künstlerische Gravuren für die gesamte Metall-, Kunststoff- und Papierindustrie
Re: [REQ]Link to ACP always in default language
« Reply #2 on: May 03, 2006, 10:28:16 PM »
The changes in global.php give me this error.

Quote
Parse error: syntax error, unexpected '}' in /is/htdocs/wp1015398_0TDZ7CIHLH/www/galerie/global.php on line 260

Offline bibabobu

  • Sr. Member
  • ****
  • Posts: 311
  • Technische und künstlerische Gravuren
    • View Profile
    • Technische und künstlerische Gravuren für die gesamte Metall-, Kunststoff- und Papierindustrie
Re: [REQ]Link to ACP always in default language
« Reply #3 on: May 03, 2006, 10:41:56 PM »
Sorry.

Now i have tested your first tipp...and you are right  :)

I have copied the admin.php in every language folder of the lang directory.

Until now it seems to be working great.

Thank you very much one more time for this small but useful tipp.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [REQ]Link to ACP always in default language
« Reply #4 on: May 04, 2006, 12:34:56 AM »
I guess PHP is very sensetive to ; at the end of the line...try now.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)