Translating the Intro Text

  • Kuniyo
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 7 months ago #18143 by Kuniyo
Hi Milos,

Would you please advise how to translate this intro text for the Hot scroller module.

I have looked at the language files but cannot find any reference to the introtext. I am not sure how, or where to change the code.

Do I have to first change the code in the mod_hot_scroller.xml, mod_hot_scroller.php with a file key, then place this key in my en_GB.mod_hot_scroller.ini file? If so, your help with showing the exact code changes needed would be much appreciated.

I am using the Hot Destinations template with Falang running joomla 2.5 to translate the site www.raftingniseko.com into Japanese from English.

Thanks,
Kuniyo.

Please Log in to join the conversation.

More
12 years 7 months ago #18159 by ivan.milic
open modules\mod_hot_scroller\tmpl\mod_hot_scroller.php

replace this line:

$introText = $params->get('introText','News Highlights');

with:

$introText = JText::sprintf('INTRO_LABEL');

then in language ini files use this form:

INTRO_LABEL="your translation"

Please Log in to join the conversation.

  • Kuniyo
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 7 months ago #18201 by Kuniyo
Thanks Milos,

I did what you recommended.

Although, when I select the Japanese language on the site www.raftingniseko.com the Hot Scroller text label, adjusted to show "Last Minute Offers" in the en-GB language file, shows up as unreadable characters.

I also added the ja-JP.mod_hot_scroller.ini filename call in the install.xml in the ja-JP folder language file, but this also didn't fix things.

Again, your help would be appreciated.

Kuniyo

Please Log in to join the conversation.

More
12 years 7 months ago #18207 by ivan.milic

I also added the ja-JP.mod_hot_scroller.ini filename call in the install.xml in the ja-JP folder language file, but this also didn't fix things.


It should be templateDetail.xml not install.xml located in template folder.

But I think you have some encoding problem based on what you saw (unreadable chacarters), unfortenaly I don't have any experience with Japanese language, try to consult some domestic forum about joomla.

Please Log in to join the conversation.

Time to create page: 0.164 seconds
Powered by Kunena Forum