1
mrphilong
xlanguage in xoops 2.4
  • 2009/11/4 22:59

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


include_once XOOPS_ROOT_PATH.'/modules/xlanguage/api.php';
    
into XOOPS/include/common.php 
    RIGHT BEFORE 
        
// #################### Include site-wide lang file ##################
        
if ( file_exists(XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/global.php") ) {
            include_once 
XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/global.php";
        } else {
            include_once 
XOOPS_ROOT_PATH."/language/english/global.php";
        }


XOOPS/include/common.php is not the same as previous version of Xoops, does anyone know where about to insert XOOPS_ROOT_PATH.'/modules/xlanguage/api.php'; in XOOPS/include/common.php ?

2
Burning
Re: xlanguage in xoops 2.4
  • 2009/11/4 23:09

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

You should try after line 149 and this code
xoops_loadLanguage('pagetype');

3
Mamba
Re: xlanguage in xoops 2.4
  • 2009/11/4 23:55

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


No need to do anything anymore.

Just download the updated version, install it, and you're done.

Thanks to Preloads and to Trabis, with this new version of xLanguage, starting with XOOPS 2.4, there is no need to hack anything anymore.

4
Burning
Re: xlanguage in xoops 2.4
  • 2009/11/5 0:10

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


Excellent news

Thanks !

5
ghia
Re: xlanguage in xoops 2.4
  • 2009/11/5 0:46

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Shouldn't the version number not be incremented to 3.02?

It seems these proposals were not incorporated. Don't know if they are for real.


6
mrphilong
Re: xlanguage in xoops 2.4
  • 2009/11/5 1:15

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


Upgraded to preload version and hack for php5.2 but still doesn't work.

7
Mamba
Re: xlanguage in xoops 2.4
  • 2009/11/5 6:26

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
Shouldn't the version number not be incremented to 3.02?

Done

Quote:
It seems these proposals were not incorporated. Don't know if they are for real.

Trabis did only a change to make it work with preloads, but nothing else. It would be nice if somebody could update the module with these hacks, and whatever else is needed...

8
Mamba
Re: xlanguage in xoops 2.4
  • 2009/11/5 6:28

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
Upgraded to preload version and hack for php5.2 but still doesn't work.

Did you update the module in Admin?
What kind of errors are you getting now?

9
ghia
Re: xlanguage in xoops 2.4
  • 2009/11/5 7:57

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Check also by switching the language in the XOOPS general preferences, if the site works OK in both languages.

10
poehoes
Re: xlanguage in xoops 2.4
  • 2009/11/6 13:09

  • poehoes

  • Friend of XOOPS

  • Posts: 29

  • Since: 2003/3/27


Great! Now i can upgrade without extra steps


In the Trunk there still exists a readme.txt that gives the old instructions (hackin into common.php). Maybe that should be deleted too?

Login

Who's Online

327 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 327


more...

Donat-O-Meter

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

Latest GitHub Commits