wallpapers
Full Member
 
Offline
Posts: 107
Thank You
-Given: 2
-Receive: 0
|
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  thanks
|
|
|
|
|
|
Logged
|
|
|
|
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
   
Offline
Posts: 17849
Thank You
-Given: 47
-Receive: 498
mmm PHP...
|
the default language
|
|
|
|
|
|
Logged
|
|
|
|
wallpapers
Full Member
 
Offline
Posts: 107
Thank You
-Given: 2
-Receive: 0
|
thanks V@no. I install the mod soon.
|
|
|
|
|
|
Logged
|
|
|
|
wallpapers
Full Member
 
Offline
Posts: 107
Thank You
-Given: 2
-Receive: 0
|
I have the mod installed on a 1.7.2 version and it works perfect  thanks V@no 
|
|
|
|
|
|
Logged
|
|
|
|
idijotaz
Jr. Member

Offline
Posts: 79
Thank You
-Given: 0
-Receive: 0
|
ik i installed it, but is it possible to make categories names in two languages? (in english: cats, in lithuanian: kates)...
|
|
|
|
|
|
Logged
|
|
|
|
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
   
Offline
Posts: 17849
Thank You
-Given: 47
-Receive: 498
mmm PHP...
|
there is another mod for that "multi-language for any text"
|
|
|
|
|
|
Logged
|
|
|
|
ivan
4images Moderator
4images Guru
   
Offline
Posts: 2279
Thank You
-Given: 4
-Receive: 24
|
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#msg31555FIND1 2 3 4 5 6 7
| 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 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| 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 »
|
Logged
|
|
|
|
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
   
Offline
Posts: 17849
Thank You
-Given: 47
-Receive: 498
mmm PHP...
|
Replace 1
| if ($requested_l != $config['language_dir'] && file_exists(ROOT_PATH.'lang/'.$requested_l.'/main.php')) {
|
With: 1
| if (file_exists(ROOT_PATH.'lang/'.$requested_l.'/main.php')) {
|
|
|
|
|
|
|
Logged
|
|
|
|
son_gokou
Full Member
 
Offline
Posts: 185
Thank You
-Given: 2
-Receive: 1
|
 |
« 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?
|
|
|
|
|
|
Logged
|
|
|
|
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
   
Offline
Posts: 17849
Thank You
-Given: 47
-Receive: 498
mmm PHP...
|
 |
« Reply #114 on: September 27, 2006, 03:30:44 AM » |
|
[MOD] Multi-language for any text
|
|
|
|
|
|
Logged
|
|
|
|
tansamalaja
Full Member
 
Offline
Posts: 185
Thank You
-Given: 0
-Receive: 1
|
/index.php&l=deutsch File Not Found!
Error 404
Sometimes this error appears if I click on "Home" from different categories or detail-sites.
|
|
|
|
|
|
Logged
|
|
|
|
tansamalaja
Full Member
 
Offline
Posts: 185
Thank You
-Given: 0
-Receive: 1
|
How can I fix that a "?" instead of the "&" appears? Possibly is that the solution...
|
|
|
|
|
|
Logged
|
|
|
|
ivan
4images Moderator
4images Guru
   
Offline
Posts: 2279
Thank You
-Given: 4
-Receive: 24
|
hello tansamalaja this mod works with all versions 1.7.1 - 1.7.4 you change the code step by step
greets ivan
|
|
|
|
|
|
Logged
|
|
|
|
tansamalaja
Full Member
 
Offline
Posts: 185
Thank You
-Given: 0
-Receive: 1
|
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
|
|
|
|
|
|
Logged
|
|
|
|
fgabriel
Newbie
Offline
Posts: 30
Thank You
-Given: 0
-Receive: 0
|
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 »
|
Logged
|
|
|
|
|