3
There have been several questions recently about using the language hack by Adi Chiributa in XOOPS 2.x. It was originally hacked for XOOPS 1, but I tweaked it just a bit and have been able to get it to work in my test environment using the two languages that I will be targeting (Japanese and English). It seems to work just fine. (I am not a programmer though so I may be missing something) Just remember, as the author says, this is only for the interface and not content. You can get the hack
here from ModsCentral.
In the author's readme he gives instructions on how to install the hack. Basically everything works except for the hack to the XOOPS/include/common.php. Instead of including the hack at the place where he said, include it just BEFORE the “include site-wide lang file” section:
// ############ Include function for language selection ##############
include(XOOPS_ROOT_PATH."/modules/language/common/functions.php");
// #################### Include site-wide lang file ##################
The SPACE character that is part of the default setup shows up strange in the block if you are using the flags, so you will have to change that by selecting edit on the admin blocks page.
If you are going to be using a multi-byte language (like Japanese), you may need to change the character encoding for English or other single-byte languages so that people coming with English browsers will be able to see the content that is in Japanese. If you need to change the character encoding for any of your languages, that setting can be found toward the bottom of the global.php file for each language. It took me a lot of hunting to find that.
I hope this works for you.