1
Ghoose
Language Changer
  • 2005/3/1 15:56

  • Ghoose

  • Just popping in

  • Posts: 8

  • Since: 2004/10/18


hey i will here if there are a Language Changer so people there visit my site can change Language...
are there a module to that ? or block ?

2
Gambero[removed]
Re: Language Changer

Search for Multilanguages hack.

3
Ghoose
Re: Language Changer
  • 2005/3/1 16:18

  • Ghoose

  • Just popping in

  • Posts: 8

  • Since: 2004/10/18


yeah okey but i meen a block or something like that where the visitors can change language..

like here
http://www.appservnetwork.com/
in the left site.

4
DonXoop
Re: Language Changer

The ML hack works but an admin must understand that this is a heavy duty hack and must be done carefully.

I think it is time to offer other language solutions for balance and for admins that might not need the full featured ML hack. With multilanguages you have to pay more attention to things like caching.

There is a very old language switching module floating around. It leverages the core language switching abilities and a good alternative if translating content isn't the most required feature. Switching just the core and a module's language is often very helpful. You can do tricks with the $xoops_langcode variable for specific content translation.

If there is interest I can bundle my tweak of the very simple lang switcher. I use it on my site and has been stable.

5
Ghoose
Re: Language Changer
  • 2005/3/1 16:24

  • Ghoose

  • Just popping in

  • Posts: 8

  • Since: 2004/10/18


Quote:

DonXoop wrote:
The ML hack works but an admin must understand that this is a heavy duty hack and must be done carefully.

I think it is time to offer other language solutions for balance and for admins that might not need the full featured ML hack. With multilanguages you have to pay more attention to things like caching.

There is a very old language switching module floating around. It leverages the core language switching abilities and a good alternative if translating content isn't the most required feature. Switching just the core and a module's language is often very helpful. You can do tricks with the $xoops_langcode variable for specific content translation.

If there is interest I can bundle my tweak of the very simple lang switcher. I use it on my site and has been stable.


Yeah i'm interest can you send it to me or give me a link ?

6
DonXoop
Re: Language Changer

I updated the readme file to show where the one line hack you have to do.

Download: Language module

Briefly:
Quote:

ABOUT THE INSTALL:
Copy the "Language" folder inside the zip file to your XOOPS modules directory.
Now edit XOOPS/include/common.php.

RIGHT AFTER:
// ################# Load Config Settings ##############
$config_handler =& xoops_gethandler('config');
$xoopsConfig =& $config_handler->getConfigsByCat(XOOPS_CONF);

you must add the following lines:

// ############ Include function for language selection ##############
include(XOOPS_ROOT_PATH."/modules/language/common/functions.php");

Now make the "Select your language" block visible by all the users, and your site is now multi-language enabled.

7
Dave_L
Re: Language Changer
  • 2005/3/1 18:52

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Is xoops_language.tar.gz a valid .tar.gz? I'm having trouble extracting its contents.

8
DonXoop
Re: Language Changer

It should be, I uploaded the link again to be sure. Anyone else that downloaded having trouble?

9
Dave_L
Re: Language Changer
  • 2005/3/2 5:32

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I get this when I try to extract:

Quote:
tar: Read 9443 bytes from /tmp/xoops_language.tar.gz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Error exit delayed from previous errors

10
siweb
Re: Language Changer
  • 2005/3/2 7:37

  • siweb

  • Not too shy to talk

  • Posts: 150

  • Since: 2004/5/2 1



Login

Who's Online

290 user(s) are online (228 user(s) are browsing Support Forums)


Members: 0


Guests: 290


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