• [MOD] Language select 4 0 5 1
Currently:  

Author Topic: [MOD] Language select  (Read 250570 times)

0 Members and 1 Guest are viewing this topic.

Offline wallpapers

  • Full Member
  • ***
  • Posts: 107
    • View Profile
    • Tuned-Cars.Net
Re: [MOD] Language select
« Reply #105 on: March 24, 2006, 06:57:08 PM »
I have a question.

If a member choose a language that not complete is (there were missing some rules in the lang file)
what do a member or visitor see then, a "blank place" or the "default language" (in my case dutch)
I hope you will understand my english  :lol:

thanks



Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Language select
« Reply #106 on: March 24, 2006, 11:57:40 PM »
the default language
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 wallpapers

  • Full Member
  • ***
  • Posts: 107
    • View Profile
    • Tuned-Cars.Net
Re: [MOD] Language select
« Reply #107 on: March 25, 2006, 12:11:46 PM »
thanks V@no.
I install the mod soon.



Offline wallpapers

  • Full Member
  • ***
  • Posts: 107
    • View Profile
    • Tuned-Cars.Net
Re: [MOD] Language select
« Reply #108 on: March 26, 2006, 06:25:37 PM »
I have the mod installed on a 1.7.2 version and it works perfect :D
thanks V@no :lol:



Offline idijotaz

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • CLON Entertainment
Re: [MOD] Language select
« Reply #109 on: May 22, 2006, 07:55:37 PM »
ik i installed it, but is it possible to make categories names in two languages?  (in english: cats, in lithuanian: kates)...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Language select
« Reply #110 on: May 23, 2006, 03:02:04 AM »
there is another mod for that "multi-language for any text"
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 ivan

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.279
    • View Profile
    • Bilder Gallery
[MOD] Language select >> Update 02.11.2006
« Reply #111 on: July 20, 2006, 08:38:55 PM »
englisch:
hello, i use this mod (version A with dropdown menü).

UPDATE / FIX global.php 1.7.1 - 1.7.4
http://www.4homepages.de/forum/index.php?topic=4743.msg31555#msg31555


FIND
Code: [Select]
if (isset($HTTP_GET_VARS['l']) || isset($HTTP_POST_VARS['l'])) {
  $requested_l = (isset($HTTP_GET_VARS['l'])) ? trim($HTTP_GET_VARS['l']) : trim($HTTP_POST_VARS['l']);
  if ($requested_l != $config['language_dir'] && file_exists(ROOT_PATH.'lang/'.$requested_l.'/main.php')) {
    $l = $requested_l;
    $config['language_dir'] = $l;
  }
}


REPLACE WITH

Code: [Select]
if (isset($HTTP_GET_VARS['l']) || isset($HTTP_POST_VARS['l'])) {
  $requested_l = (isset($HTTP_GET_VARS['l'])) ? trim($HTTP_GET_VARS['l']) : trim($HTTP_POST_VARS['l']);
  if (file_exists(ROOT_PATH.'lang/'.$requested_l.'/main.php')) {
    $l = $requested_l;
    $config['language_dir'] = $l;
    setcookie('4images_lang', $l, (time()+ 60 * 60 * 24 * 365), "/", "", 0);
  }
}
else
{
  if (isset($HTTP_COOKIE_VARS['4images_lang']) && file_exists(ROOT_PATH.'lang/'.$HTTP_COOKIE_VARS['4images_lang'].'/main.php'))
  {
    $l = $config['language_dir'] = $HTTP_COOKIE_VARS['4images_lang'];
  }
}


GREETS IVAN

« Last Edit: November 02, 2006, 12:46:12 PM by ivan »
greetings / grüsse
ivan

Facebook Fan Page | Follow Twitter

Blog: Reisen Blog
Bilder Gallery: Bilder Gallery

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Language select
« Reply #112 on: July 21, 2006, 03:27:24 AM »
Replace
Code: [Select]
  if ($requested_l != $config['language_dir'] && file_exists(ROOT_PATH.'lang/'.$requested_l.'/main.php')) {
With:
Code: [Select]
  if (file_exists(ROOT_PATH.'lang/'.$requested_l.'/main.php')) {
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 son_gokou

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [MOD] Language select
« Reply #113 on: September 26, 2006, 03:47:21 PM »
Allright, I Have the language select on my 4images page. But the categories are still in "default language". How can I change that just for language 2?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Language select
« Reply #114 on: September 27, 2006, 03:30:44 AM »
[MOD] Multi-language for any text
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 tansamalaja

  • Full Member
  • ***
  • Posts: 185
    • View Profile
Re: [MOD] Language select
« Reply #115 on: November 02, 2006, 11:21:38 AM »
/index.php&l=deutsch
File Not Found!

Error 404

Sometimes this error appears if I click on "Home" from different categories or detail-sites.

Offline tansamalaja

  • Full Member
  • ***
  • Posts: 185
    • View Profile
Re: [MOD] Language select
« Reply #116 on: November 05, 2006, 04:23:25 PM »
How can I fix that a "?" instead of the "&" appears? Possibly is that the solution...

Offline ivan

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.279
    • View Profile
    • Bilder Gallery
Re: [MOD] Language select
« Reply #117 on: November 05, 2006, 06:01:07 PM »
hello tansamalaja
this mod works with all versions 1.7.1 - 1.7.4
you change the code step by step

greets ivan
greetings / grüsse
ivan

Facebook Fan Page | Follow Twitter

Blog: Reisen Blog
Bilder Gallery: Bilder Gallery

Offline tansamalaja

  • Full Member
  • ***
  • Posts: 185
    • View Profile
Re: [MOD] Language select
« Reply #118 on: November 05, 2006, 06:38:16 PM »
We changed the server an since then we got this problem, it's not reproducible, that's the problem - sometimes the error 404 appears, sometimes not. And we got a hint, that the "&" could be the problem

Offline fgabriel

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: [MOD] Language select
« Reply #119 on: November 15, 2006, 08:54:14 PM »
i put {lang_select} on home.html works fine, select english and works
BUT :?
when  i go to another page like search last images the language backs to the inital that is portuguese

note: im not log in, the page is for guests only

anyone????
regards
« Last Edit: November 23, 2006, 02:44:15 PM by fgabriel »