1
korbeeck
Install XOOPS Multilanguage
  • 2004/4/27 22:42

  • korbeeck

  • Just popping in

  • Posts: 9

  • Since: 2003/11/13


Hello,
 I have a problem with installing the XOOPS Multilanguage hack by marcan.
 I followed the instructions given in ReadMe.txt and edited the file module.textsanitizer.php as follows:

Quote:
// MT hack added by hsalazar //
// multi-lingual hack by chad
global $xoopsConfig;

// if english show english else show nothing
$patterns[] = "/\[en](.*)\[\/en\]/sU";
if ($xoopsConfig['language'] == "english") {
$replacements[] = '\\1';
} else {
$replacements[] = "";
}

// if dutch show dutch else show nothing
$patterns[] = "/\[nl](.*)\[\/nl\]/sU";
if ($xoopsConfig['language'] == "nederlands") {
$replacements[] = '\\1';
} else {
$replacements[] = "";
}

// if french show french else show nothing
$patterns[] = "/\[fr](.*)\[\/fr\]/sU";
if ($xoopsConfig['language'] == "french") {
$replacements[] = '\\1';
} else {
$replacements[] = "";
}

// if italian show italian else show nothing
$patterns[] = "/\[it](.*)\[\/it\]/sU";
if ($xoopsConfig['language'] == "italian") {
$replacements[] = '\\1';
} else {
$replacements[] = "";
}

// end multi-lingual hack
// MT hack added by hsalazar //

 So, as you can see, I would like to use the languages English, French, Dutch and Italian.
 You could find the result athttp://outdoors.jongerenprojecten.nl/ (default in English). Nevertheless I encounter one big problem. When a user clicks one of the apropriate flags of the different countries, one does not see the website in the chosen language.
 Could anyone help me solving this problem?
Thanks in advance,
yours sincerely,

Joris,
webmaster Jongerenprojecten.nl

2
Lance_
Re: Install XOOPS Multilanguage
  • 2004/4/27 23:26

  • Lance_

  • Home away from home

  • Posts: 983

  • Since: 2004/1/12


http://outdoors.jongerenprojecten.nl/modules/news/index.php?&sel_lang=french&sel_lang=italian&sel_lang=nederlands&sel_lang=french&sel_lang=french

Your url ends up having all the languages selected. Must be something wrong in your IF query.

On my site, when I click on a language I only see one language in the url.

3
korbeeck
Re: Install XOOPS Multilanguage
  • 2004/4/28 8:11

  • korbeeck

  • Just popping in

  • Posts: 9

  • Since: 2003/11/13


Hello Lance,
 Thanks for your fast reply!
 I visited your website The Lion's Den and when I click first on the language French and then on English again, I get also an URL with two languages selected:

Quote:
http://thelionsden-arena.com/index.php?&sel_lang=french&sel_lang=english

 But it works on your site! I don't know what's the problem on my multilingual website.

 I discoverd also the following, sometimes I will get the following URL on your website:

Quote:
http://thelionsden-arena.com/index.php?&sel_lang=french&PHPSESSID=f80c4c696c8da074117b759a079a4380

 Maybe this has something to do with my problem?
Bye bye,
Joris

4
korbeeck
Re: Install XOOPS Multilanguage
  • 2004/5/28 13:13

  • korbeeck

  • Just popping in

  • Posts: 9

  • Since: 2003/11/13


Hello,
 Any other advices, I’m stuck!
Thanks in advance,
greetings,

Joris,
webmaster Outdoors, as a tool for Personal Development website (http://outdoors.jongerenprojecten.nl/)

5
limecity
Re: Install XOOPS Multilanguage
  • 2004/5/28 15:32

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


I just installed the multilanguage not long ago..
after discovering my simplest error..

how many language are you running actually?
i suggest you do 1 by 1

6
marcan
Re: Install XOOPS Multilanguage
  • 2004/5/28 15:45

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


@limecity :
Quote:
I just installed the multilanguage not long ago..
after discovering my simplest error..

how many language are you running actually?
i suggest you do 1 by 1

What do you mean exactly ?

@joris :
I went to your site to see what was going on. First question just to be sure : do you have all the required language packs installed on your site, eg english, french, italians and nederlands ?

7
korbeeck
Re: Install XOOPS Multilanguage
  • 2004/5/28 16:11

  • korbeeck

  • Just popping in

  • Posts: 9

  • Since: 2003/11/13


Marcan,
 Thanks for your interest!
 Yeh, I checked that. I’ve installed those language packs and I can find them in the directory store.
Joris

8
marcan
Re: Install XOOPS Multilanguage
  • 2004/5/28 19:29

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


What exactly do you mean by this :
Quote:
I can find them in the directory store.


What do you have in the folder XOOPS_ROOT/languages/ ?

Also, please send me this file : XOOPS_ROOT/class/module.textsanitizer.php
at this adress marcan@notrevie.ca

Cheers !

9
korbeeck
Re: Install XOOPS Multilanguage
  • 2004/5/28 20:39

  • korbeeck

  • Just popping in

  • Posts: 9

  • Since: 2003/11/13


Hello Marcan,

 The contents of the folder language is:

 1. english;
 2. french;
 3. italian;
 4. nederlands;
 5. index.html.

 Hereby I will send you the file module.textsanitizer.php.

Thanks in advance,
bye bye,

Joris,
webmaster Outdoors, as a tool for Personal Development (http://outdoors.jongerenprojecten.nl/)

Login

Who's Online

78 user(s) are online (47 user(s) are browsing Support Forums)


Members: 0


Guests: 78


more...

Donat-O-Meter

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

Latest GitHub Commits