Posted by: hsalazarOn 2003/11/13 19:23:298793 readsAre you tired of trying to apply yourself the not-always-truly-clear hacks to offer your users a site in several languages? Suffer no more! Mesa de pruebas proudly gives you ... > drum roll < ... Xoops Multilanguage! Included in this distribution are, in a separate directory, the files for spanish language. Use your own files and create easily a truly international site. Please make sure you read the README.TXT file included in the distribution. Zip version [1,471 kb]Rar version [1,361 kb] Enjoy!
The comments are owned by the author. We aren't responsible for their content.
Re: Xoops Multilanguage -- Try it now!
I think this package doesn't include all hacks. Because block titles and main menu items are not changing when you change language.
Re: Xoops Multilanguage -- Try it now!
Maybe you should "refresh" your cache files?
Re: Xoops Multilanguage -- Try it now!
Thanks Horacio, great work for the XOOPS community
Aloha
Re: Xoops Multilanguage -- Try it now!
Quote:
Maybe you should "refresh" your cache files?
How can I refresh cache files?
Re: Xoops Multilanguage -- Try it now!
clear cached files by updating the general preferences in "system admin" => "preferences".
Herko
Re: Xoops Multilanguage -- Try it now!
is this official? included in 2.1?
Re: Xoops Multilanguage -- Try it now!
Quote:
clear cached files by updating the general preferences in "system admin" => "preferences".
It didn't work.
I want to list what I did: 1. I extract all of files comes from package 2. I upload 2nd language files into proper locations 3. I changed modinfo.php files of modules like:
define("_MI_SYSTEM_BNAME6","Main Menu"); to define("_MI_SYSTEM_BNAME6","bla bla bla");
4. I changed module.textsanitizer.php file 5. Install xoops 6. Install language module 7. Make language block visible 8. try to change language
Result: It converts most of things, but block titles, main menu items that belongs to module names are not converted (they remains like in English)
Re: Xoops Multilanguage -- Try it now!
Quote:
Result: It converts most of things, but block titles, main menu items that belongs to module names are not converted (they remains like in English)
Main menu items are ok, but block titles are still not converted.
Re: Xoops Multilanguage -- Try it now!
it works fine... You should tranlate the title of blocks with somethink like this : [fr]Menu Utilisateur[/fr][en]Main Menu[/en] and this method works everywhere.. (it use the sanitiser class)
Re: Xoops Multilanguage -- Try it now!
GREAT work!!!
I only have one problem - when performing a search, the titles of main categories (modules) don't get processed properly. Look at the following example:
Search Results Keyword(s): test
[de]Deutsch_Name[/de][en]English_Name[/en] No Match Found for your Query
The results and everything else, however, gets processed correctly.
Any quick-fixes?
Re: Xoops Multilanguage -- Try it now!
johny:
Try this. I haven't implemented or tested it, so it's just a fair guess at what should be done. Open the file search.php and examine the case "results" (about lines 105-168).
I don't have at the moment, here, the code for xoops_ml, so check if the file already has an instantiation of the sanitizer, something like:
$myts =& MyTextSanitizer::getInstance();
If it's not there, you need to add it after the line that reads:
Thanks for pointing out this. I'll incorporate it into the package as soon as possible.
Cheers
Re: Xoops Multilanguage -- Try it now!
Wau!
Thanks for replying so soon. I've done what you said, mainly just replayed line 136 and now it works...
Thank you very much for your help.
I've also noticed some other instance of almost the same problem but I'm not that comfortable with hardcoding so I don't know what to change there: userinfo.php
If a user posted comments or articles, the category gets displayed, and that category (module) - Links, Forum, or Articles, for example, also gets displayed
I hope you'll be able to help me out with this one as well. I also hope that I help in some way, even though if it seems that I'm just bugging you
Re: Xoops Multilanguage -- Try it now!
Fantastic, I can't believe how easy it is to set up.
Thank you.
Re: Xoops Multilanguage -- Try it now!
Excellent work
Re: Xoops Multilanguage -- Try it now!
johny:
I'm aware of the comment problem. In fact, the readme.txt file says so. I did some attempts to correct this, but with no success. If anyone in the XOOPS community can find it, we'll be more than happy.
Cheers
Re: Xoops Multilanguage -- Try it now!
A comment on search.php:
All instances of ".$module->getVar('name')." should be changed into ".$myts->makeTboxData4Show($module->getVar('name')).", not just the one in line 136.
There are 5 instances of the kind in the search.php file.
Both solutions work for me, but make sure you make a back-up before making any changes...
Re: Xoops Multilanguage -- Try it now!
If I understand, not tested yet, this is for a brand new XOOPS installation... But how to add this feature, this module into an existing site ? Thx
Re: Xoops Multilanguage -- Try it now!
For an existing site, you have to install the module language, change the textsanitiser file as is described in the readme.txt. Then find all the files that contain the text hsalasar, these are the files you need to transfer to your site, because they contain the multilingo hacks. If you have any other hacks implemented on your site, then you will have to implement them on the new files too of course. Afterwards there are some module and block names you'll have to change.
BEFORE you begin, make a backup please of your site.
Success
Aloha
Re: Xoops Multilanguage -- Try it now!
Quote:
or an existing site, you have to install the module language
where is this module language?
Re: Xoops Multilanguage -- Try it now!
When you unzip XOOPS multilanguage, you will find it (the module) in the directory modules/language Just upload/install like any other module and you will have a 'language' block that you can put on your site. (can see it on my site http://www.rainbowshaman.com)
Aloha
Re: Xoops Multilanguage -- Try it now!
Correction : "hsalazar" to find... not "hsalasar".
Re: Xoops Multilanguage -- Try it now!
REAL SOON NOW:
For all those webmasters that want to give the multilingual version of XOOPS a shot --without having to start from scratch, in a couple of days I'll post a contribution by chado: a package that'll transform a monolingual site into a multilingual one.
Of course you need to be aware your content will still be in the original language. No way to avoid that... LOL.
So please bear with me a little more and I'll post this patch for all to have and enjoy.
Cheers.
PS: I think this is very good news. It's my way of celebrating my 500th post here!
Re: Xoops Multilanguage -- Try it now!
Cheers Horacio thnx for your work and good luck on your way to the 1000 post Cervesa grande por favor
Re: Xoops Multilanguage -- Try it now!
Hi - Happy New Year I was wondering if you have posted the above ML package yet as I am having trouble finding it and so looking forward to getting a german/english site up and running
Thanks mate Regards Tony Ayling Brisbane Australia
Re: Xoops Multilanguage -- Try it now!
Did you try clicking on zip version? This opens the download dialogue screen Succes
Re: Xoops Multilanguage -- Try it now!
Thank you for that really great module and the idea.
For many reasons XOOPS should be able to manage languages, not only one. This is internet and it is international. Languages are part of it.
Hope you continue your work and it willbecome a fixed part of the following XOOPS versions.
Mucho gracias y mucho suerte por el futuro!
Matangi
Re: Xoops Multilanguage -- Try it now!
This has to be by far the best option around to make XOOPS even better. Thank you for a job well done !!!!
Does anyone know if this will make it into the next release of XOOPS ??
Is there anyone I can bug with thousands of messages to make it happen ?
Re: Xoops Multilanguage -- Try it now!
Hi highlander !
Just in case you did not know, the latest version of XOOPS Multilanguages can be found on The SmartFactory.
Quote:
Does anyone know if this will make it into the next release of XOOPS ??
XOOPS Multilanguage will not be integrated in the XOOPS core as it is only a hack and not a real Multilanguage feature. A futur release of XOOPS will most certainly have a real Multilanguage implementation that will be by far better than this hack.