Chad, all:
I've successfully hacked the blocks titles using Chad's idea # 2. This is what I did, in case somebody points it as a mistake:
I opened the file
header.php and in the final part, after line 170, there's a
switch statement with five cases.
For every case, I included a line to instantiate the sanitizer, like this:
Quote:
$myts =& MyTextSanitizer::getInstance();
Then, for every instance of the string:
Quote:
'title' => $block_arr[$i]->getVar('title')
I wrapped around the call to the sanitizer, to make the variable pass through the decoder, so I changed the string to this:
Quote:
'title' => $myts->makeTboxData4Show($block_arr[$i]->getVar('title'))
Please take a look at this and tell me if it works for you.
In my case, I had to repeat the wrapping for the
incblocks module, because in the inside of the box, the titles of the individual blocks weren't making the translation, but all I had to do was change a bit the file
triblocks.php. Lines 59-61 used to read:
Quote:
$block['contenu'][]=$bcontent;
$block['titre'][]=$block_arr[$i]->getVar('title');
and I changed them to read:
Quote:
$myts =& MyTextSanitizer::getInstance();
$block['contenu'][]=$bcontent;
$block['titre'][]=$myts->makeTboxData4Show($block_arr[$i]->getVar('title'));
So far, this works fine. Please let me know if you can also change this successfully.
PS: As for the menu items, I understand that by using a custom block, as Chad suggests, I'd lose the functionality of having the submenus displayed for those modules that have suboptions, right?