292404
I have just hacked the tinyevent module v1.01 to be fully multilangual.
First there's a simple hack to the te_nextevents.php file located in /modules/tinyevent/blocks/
Just before the while-loop starts in line 43, I have added the following:
Quote:
$myts =& MyTextSanitizer::getInstance();
Then I replaced the following line:
Quote:
$events['event'] = $te_event['event'];
With this line:
Quote:
$events['event'] = $myts->makeTboxData4Show($te_event['event']);
Second there's also a small change to the display.inc.php file located in /modules/tinyevent/include/
I started by adding the following line as line 2, just after the php statement.
Quote:
include_once XOOPS_ROOT_PATH."/class/module.textsanitizer.php");
Then I replaced the two instanses of the following:
Quote:
printf(_TE_COMESFROM,$xoopsConfig['sitename']);
With this:
Quote:
$myts =& MyTextSanitizer::getInstance();
printf(_TE_COMESFROM,$myts->makeTboxData4Show($xoopsConfig['sitename']));
This seems to work for me.
I've noticed one tiny flaw, which I can't realy figure out.
If I have an event written in Japanese, then sometimes when I click on the 'printer frindly' icon, the encoding changes to 'Western European' instead of the 'Japanese (EUC)' I was just using on the previous page. If you have any idear why, please let me know!
I hope I remembered to mention all of the changes I made to the files to make it work.
--
Daigoro