1
oilkp
xlanguage suddenly not working in xoops 2.5
  • 2011/1/14 15:03

  • oilkp

  • Just popping in

  • Posts: 23

  • Since: 2010/6/30


xlanguage suddenly not working in my site..


my environment_________________
xLanguage 3.02
XOOPS 2.5.0
PHP Version
5.3.4
mySQL Version
5.0.91-community

all the language tags [] are displayed in my site

as example
[en]name[en] [my]nama[/my]

instead of nama

as far as i know there is no file to be modified to make xlanguage works in xoops 2.5

in old xoops and xlanguage version we need to put some line in include/common.php

i tried to paste this code in include/common.php somewhere in line 200
include_once XOOPS_ROOT_PATH'/modules/xlanguage/api.php';
if ( !
@include_once 
XOOPS_ROOT_PATH "/language/" $xoopsConfig['language'] . "/global.php" ) {
   include_once 
XOOPS_ROOT_PATH "/language/english/global.php";
 }



and the code works..site display the text but the default language is english instead of malay
(my default language setup in pref is malay)

i tried to changed this line

include_once XOOPS_ROOT_PATH "/language/english/global.php";


to

include_once XOOPS_ROOT_PATH "/language/" $xoopsConfig['language'] . "/global.php";


but the default of my language is still english

i have cleared all cache and i still have the same problem

2
jagibu
Re: xlanguage suddenly not working in xoops 2.5
  • 2011/1/14 22:15

  • jagibu

  • Just popping in

  • Posts: 68

  • Since: 2005/6/17


Have You eregi errors in function xlanguage_lang_detect? Use preg_match in PHP 5.3 ;
You can look on code in my patched xlanguage version
Tested on localhost with PHP 5.3.4

3
ghia
Re: xlanguage suddenly not working in xoops 2.5
  • 2011/1/16 7:13

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Please save it to the normal zip format, which is more accessable to most users.

4
oilkp
Re: xlanguage suddenly not working in xoops 2.5
  • 2011/1/17 23:49

  • oilkp

  • Just popping in

  • Posts: 23

  • Since: 2010/6/30


Thank you Jagibu, i replace my xlanguage module with your version and now the site multilanguage feature back working as i expected

what i don't understand why my old version of xlanguage with xoops 2.5 suddenly not working, i've been using it for few months before without problem

5
ghia
Re: xlanguage suddenly not working in xoops 2.5
  • 2011/1/18 9:48

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Probably your hoster upgraded PHP or something.

6
jcweb
Re: xlanguage suddenly not working in xoops 2.5
  • 2011/1/25 17:20

  • jcweb

  • Quite a regular

  • Posts: 253

  • Since: 2005/4/25


Hi all
Only a comment from my side. @jagibu your version works well, thank you! In the first moment i thought there is a error, in the blocks (ex. latest news) he shows me the lang code in brackets at the title, but i must expand the numbers of the title length, it works fine now!

Thanks again.
Andy

7
oilkp
Re: xlanguage suddenly not working in xoops 2.5
  • 2011/1/25 22:16

  • oilkp

  • Just popping in

  • Posts: 23

  • Since: 2010/6/30



8
chaoos
Re: xlanguage suddenly not working in xoops 2.5
  • 2011/2/10 12:11

  • chaoos

  • Just popping in

  • Posts: 77

  • Since: 2005/3/9 1


jagibu: your patched vesion working, thanks

9
serial-weber
Re: xlanguage suddenly not working in xoops 2.5

Hi,

I downloaded this version of Xlanguage to resolve my problem, texts are displayed correctly after setting mainfile.php charset to utf8 and language/french/global.php.

But I received this 149 same errors in debug mode
"Avertissement(s): htmlspecialchars() [function.htmlspecialchars]: charset `UTF8' not supported, assuming iso-8859-1 dans le fichier /class/module.textsanitizer.php - ligne 479"

How to solve this?

Thanks

Login

Username:
Password:

Lost Password? Register now!

Who's Online

66 user(s) are online (39 user(s) are browsing Support Forums)


Members: 0


Guests: 66


more...

Donat-O-Meter

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

Latest GitHub Commits