11
ghia
Re: xlanguage in xoops 2.4
  • 2009/11/6 14:28

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


The notice should stay for users with previous versions.
An additional note should say, that it is not needed for XOOPS versions from 2.4.0 and higher.

Quote:
Upgraded to preload version and hack for php5.2 but still doesn't work.
Try by replacing all $langs by $GLOBALS['langs'] in both files.
I think the unset for it can be put in comments:
//        unset($langs);


The admin interface can give weights to the languages.
To view them weighted, you need to change in /class/language.php:
$sql 'SELECT * FROM '.$this->db->prefix($prefix);
to
$sql 'SELECT * FROM '.$this->db->prefix($prefix).' ORDER BY weight';


Further suggestion.
Because the language switching links can be someting as server/isomefile.php?someoption=somevalue&lang=nl some systems (at eg Google) may get confused and accidentily (also erronnous) take this as the html lang entity ⟨, which make an ugly character (⟨) in your URL, which make them to arrive on another pages than intented.
To avoid this alter the definition for the query field to:
if(!defined('XLANGUAGE_LANG_TAG')) define('XLANGUAGE_LANG_TAG'"xlang");






12
ghostrunner
Re: xlanguage in xoops 2.4

Hello
This is a very nice module
I just have a problem.

After i have installed xlanguage the browser (IE & FF) doesn't recognize the charencoding correctly. I choose UTF-8 but browser says its ISO-8859-1.

Anyone knows whats wrong ??

13
chefry
Re: xlanguage in xoops 2.4
  • 2010/2/28 20:11

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


So where do you install all of this?

In it's own subdir under modules?
Name?

Etc???

The directions are pretty vague

14
wishcraft
Re: xlanguage in xoops 2.4

You can get xLanguage for XOOPS 2.4.4 with the preloader for it to run, you still need to modify the language path, but no more editing common.php..

http://cid-6580d2a11c091017.skydrive.live.com/browse.aspx/XOOPS%20Modules/X-Language

15
vadimv82
Re: xlanguage in xoops 2.4
  • 2010/6/5 9:25

  • vadimv82

  • Just popping in

  • Posts: 16

  • Since: 2008/9/9 9


I also have Xoops 2.4.4 and PHP 5.2.11.

Somewhy i can't see the block. If i go to admin and modify the block, and check the template, when i preview the template it is blank.
Eventhough i have 2 languages installed.

1) I just installed Xlanguages 3.11 as module
2) Made update for module in admin
3) added one base and one extended language in module
4) Made block to be visible

Did i forget anything to do? Or conf anything?

16
ghia
Re: xlanguage in xoops 2.4
  • 2010/6/5 9:52

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Quote:
3) added one base and one extended language in module
Normally you should declare all your languages as base languages.

17
vadimv82
Re: xlanguage in xoops 2.4
  • 2010/6/5 10:50

  • vadimv82

  • Just popping in

  • Posts: 16

  • Since: 2008/9/9 9


Thnx Ghia, that was the problem. I only had english language in
XOOPS/language/english. Therefore i couldn't add new base language in module.

18
vadimv82
Re: xlanguage in xoops 2.4
  • 2010/6/5 11:32

  • vadimv82

  • Just popping in

  • Posts: 16

  • Since: 2008/9/9 9


Very interesting.
Now language block is appeared. But language switching is not working. Interesting is that [lang_code] tags seems to be working, but only if i change default language in Admin console.
Doesn't work if i switch languages in language selection block.

Any ideas?

19
vadimv82
Re: xlanguage in xoops 2.4
  • 2010/6/8 8:02

  • vadimv82

  • Just popping in

  • Posts: 16

  • Since: 2008/9/9 9


I have just made fresh install of Xampp 1.7.3.
With PHP: 5.3.1

Fresh install of Xoops 2.4.4. And installed xlanguage.

1) I just installed Xlanguages 3.11 as module
2) Made update for module in admin
3) added 2 base languages
4) Made block to be visible

And language switching is not working!!!


Got this error message:
Undefined variable: xoopsConfig in file /modules/xlanguage/api.php line 62

Fixed by adding global $xoopsConfig; to api.php

Works now.

20
titanus
Re: xlanguage in xoops 2.4
  • 2010/7/14 23:37

  • titanus

  • Just popping in

  • Posts: 6

  • Since: 2005/6/16


Quote:
2) Made update for module in admin

can you explain me what exactly have you done?
I have a fresh xoops 2.4.5 and xlanguage 3.11 and it doesn't works.
It shows the angle brackets of the languages i don't have prefixed.
Ex: [it]ciao[/it][engood bye[/en] i see ciao[en]good bye[/en]

Can you help me?

Login

Who's Online

168 user(s) are online (106 user(s) are browsing Support Forums)


Members: 0


Guests: 168


more...

Donat-O-Meter

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

Latest GitHub Commits