- Posts: 21
- Thank you received: 0
Translating the Intro Text
-
Kuniyo
Inactive member - Topic Author
- Member
Less
More
12 years 7 months ago #18143
by Kuniyo
Translating the Intro Text was created 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.
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.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 7 months ago #18159
by ivan.milic
Replied by ivan.milic on topic Re: Translating the Intro Text
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"
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
Less
More
- Posts: 21
- Thank you received: 0
12 years 7 months ago #18201
by Kuniyo
Replied by Kuniyo on topic Re: Translating the Intro Text
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
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.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 7 months ago #18207
by ivan.milic
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.
Replied by ivan.milic on topic Re: Translating the Intro Text
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