4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2014, 02:35:08 AM

Login with username, password and session length
Search:     Advanced search
Check the new Tutorial subforum with helpfull guides and tutorials for modifications and tweaks.
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Mods & Plugins (Releases & Support) (Moderators: mawenzi, Rembrandt)
| | |-+  [MOD] Language select
0 Members and 3 Guests are viewing this topic. « previous next »
Pages: «« « 1 ... 4 5 6 7 [8] 9 10 11 12 ... 16 » »» Print
Current Topic Rating: *****
Author Topic: [MOD] Language select  (Read 179571 times)
wallpapers
Full Member
***
Offline Offline

Posts: 107

Thank You
-Given: 2
-Receive: 0


View Profile WWW
« 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  Laughing

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 Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 556

mmm PHP...


View Profile WWW
« Reply #106 on: March 24, 2006, 11:57:40 PM »

the default language
Logged

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)
wallpapers
Full Member
***
Offline Offline

Posts: 107

Thank You
-Given: 2
-Receive: 0


View Profile WWW
« Reply #107 on: March 25, 2006, 12:11:46 PM »

thanks V@no.
I install the mod soon.
Logged



wallpapers
Full Member
***
Offline Offline

Posts: 107

Thank You
-Given: 2
-Receive: 0


View Profile WWW
« 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 Very Happy
thanks V@no Laughing
Logged



idijotaz
Jr. Member
**
Offline Offline

Posts: 79

Thank You
-Given: 0
-Receive: 0


View Profile WWW
« 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)...
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 Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 556

mmm PHP...


View Profile WWW
« Reply #110 on: May 23, 2006, 03:02:04 AM »

there is another mod for that "multi-language for any text"
Logged

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)
ivan
4images Moderator
4images Guru
*****
Offline Offline

Posts: 2279

Thank You
-Given: 4
-Receive: 30


View Profile WWW
« 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
1
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

greetings / grüsse
ivan

Facebook Fan Page | Follow Twitter

Blog: Reisen Blog
Bilder Gallery: Bilder Gallery
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 556

mmm PHP...


View Profile WWW
« Reply #112 on: July 21, 2006, 03:27:24 AM »

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

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)
son_gokou
Full Member
***
Offline Offline

Posts: 193

Thank You
-Given: 2
-Receive: 1


View Profile
« 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 Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 556

mmm PHP...


View Profile WWW
« Reply #114 on: September 27, 2006, 03:30:44 AM »

[MOD] Multi-language for any text
Logged

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)
tansamalaja
Full Member
***
Offline Offline

Posts: 185

Thank You
-Given: 0
-Receive: 1


View Profile
« 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.
Logged
tansamalaja
Full Member
***
Offline Offline

Posts: 185

Thank You
-Given: 0
-Receive: 1


View Profile
« 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...
Logged
ivan
4images Moderator
4images Guru
*****
Offline Offline

Posts: 2279

Thank You
-Given: 4
-Receive: 30


View Profile WWW
« 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
Logged

greetings / grüsse
ivan

Facebook Fan Page | Follow Twitter

Blog: Reisen Blog
Bilder Gallery: Bilder Gallery
tansamalaja
Full Member
***
Offline Offline

Posts: 185

Thank You
-Given: 0
-Receive: 1


View Profile
« 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
Logged
fgabriel
Newbie
*
Offline Offline

Posts: 30

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #119 on: November 15, 2006, 08:54:14 PM »

i put {lang_select} on home.html works fine, select english and works
BUT Confused
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
Pages: «« « 1 ... 4 5 6 7 [8] 9 10 11 12 ... 16 » »» Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.119 seconds with 20 queries.