I'm trying to use MTN in a multilanguage site and I'm not able to get [i18n] block title translated.
I modified block.tpl.php in my theme using

<?php print t($block->subject) ?>

and usual block menu titles get translated using the translate interface sysyem but no luck with [i18n] blocks.

Is there a way to get there?

Thanks in advance

Comments

plach’s picture

This is really weird, however you could try using the block translation feature of i18n strings (select "block" as locale group in the translate interface), which should provide a translated $block->subject without the need of using t().

andromeda’s picture

This is really weird

I perfectly agree, but what's next ?
BTW, I removed it and "normal" menu blocks get their titles translated but [i18n]menues don't.

I'm trying to get multilanguage an existing website whose default language is Italian :-) and I need an English translation (perhaps others in the future). Italian as default language was set up long ago but after some content was inserted. Due to the way strings translation works, I'm manually editing my menues so that I can find them in the translate interface.

Well, if I limit the search to "block" it finds nothing, elsewere it finds the string twice:
the first is in the menu text group and it let me translate into English, but even after a cache clear, [i18n]menu don't get their block titles translated;
the second string is found in built-in interface textgroup and... it let me translate into Italian... 8-o)

It's turning into a nigthmare...

plach’s picture

Did you try?

$conf["i18nstrings_translate_langcode_it"] = TRUE;

Try also to refresh strings.

andromeda’s picture

But as far as I knew

$conf["i18nstrings_translate_langcode_it"] = TRUE;

wasn't for translating from another language into default language (though != English) ?

I need to translate from default language (Italian) into English.

After a refresh strings I've had to re-edit my menues to be able to find titles' strings to translate. Like before, normal block menu get their titles traslated and [18n] don't.

Thanks for your help.

plach’s picture

Sorry, I misunderstood you :)

Are you able to reproduce this situation with a fresh D6 install?

andromeda’s picture

I will do as time permits in the next few days because it's worth investigating.

For the site I'm working on, if "normal" blocks work, I'll use them, select no language conditions in the multilanguage system and modify a bit my views in the hope to escape from the nightmare ;-) .

BTW I have some links not pointing to nodes and it seems I can't use MTN for such menues if I want them translated.

plach’s picture

Status: Active » Fixed

Reopen as needed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.