- Posts: 20
- Thank you received: 0
Language
-
arielb
Inactive member - Topic Author
- Member
Less
More
13 years 8 months ago - 13 years 8 months ago #6457
by arielb
Hi!
I'm working on a website with Fireworks, Joomla 1.5.22 and Joomfish. Link
I'd like to be able to change the language of the Slogan text.
I think it's not necessary to do it with Joomfish, I just need a language file associated with the template, and edit the template so that text changes with every language, but I don't know how to do it.
Could you help me with this? Thanks.
best wishes,
Ariel
I'm working on a website with Fireworks, Joomla 1.5.22 and Joomfish. Link
I'd like to be able to change the language of the Slogan text.
I think it's not necessary to do it with Joomfish, I just need a language file associated with the template, and edit the template so that text changes with every language, but I don't know how to do it.
Could you help me with this? Thanks.
best wishes,
Ariel
Last edit: 13 years 8 months ago by arielb.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 8 months ago - 13 years 8 months ago #6466
by ivan.milic
Replied by ivan.milic on topic Re: Language
Unfortunately that template does not have language files defined.
You can add them manually :
Add this to templateDetails.xml inside of "extension" element:
<languages folder="language">
<language tag="en-GB">en-GB/en-GB.tpl_hot_fireworks.ini</language>
</languages>
then add file named en-GB.tpl_hot_fireworks.ini in language\en-GB\ folder.
Label name for slogan text is : "Slogan text"
Also you can skip adding of this file and just use general: en-GB.ini
You can add them manually :
Add this to templateDetails.xml inside of "extension" element:
<languages folder="language">
<language tag="en-GB">en-GB/en-GB.tpl_hot_fireworks.ini</language>
</languages>
then add file named en-GB.tpl_hot_fireworks.ini in language\en-GB\ folder.
Label name for slogan text is : "Slogan text"
Also you can skip adding of this file and just use general: en-GB.ini
Last edit: 13 years 8 months ago by ivan.milic.
Please Log in to join the conversation.
-
arielb
Inactive member - Topic Author
- Member
Less
More
- Posts: 20
- Thank you received: 0
13 years 8 months ago #6477
by arielb
Replied by arielb on topic Re: Language
Hi!
When I add this file, what should I write in it? I just tryed writing in es-ES.ini something like
SLOGAN TEXT= Some text and it didn't change
When I add this file, what should I write in it? I just tryed writing in es-ES.ini something like
SLOGAN TEXT= Some text and it didn't change
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 8 months ago #6490
by ivan.milic
Replied by ivan.milic on topic Re: Language
Add xml definition for en-gb and also ini file in en-gb folder. Then just add es file and text in it.
Please Log in to join the conversation.
-
arielb
Inactive member - Topic Author
- Member
Less
More
- Posts: 20
- Thank you received: 0
13 years 8 months ago #6494
by arielb
Replied by arielb on topic Re: Language
Hi,
I added
to templateDetails.xml.
Then I created en-GB.tpl_hot_fireworks.ini, es-ES.tpl_hot_fireworks.ini and pt-BR.tpl_hot_fireworks.ini and placed them in to correct folder. Each file had the text
SLOGAN TEXT= Text in the appropiate language
And it still shows me the original slogan text, nothing has changed. Am I doing somtehing wrong?
Thanks
Ariel
I added
Code:
<languages folder="language">
<language tag="en-GB">en-GB/en-GB.tpl_hot_fireworks.ini</language>
<language tag="es-ES">es-ES/es-ES.tpl_hot_fireworks.ini</language>
<language tag="pt-BR">pt-BR/pt-BR.tpl_hot_fireworks.ini</language>
</languages>
to templateDetails.xml.
Then I created en-GB.tpl_hot_fireworks.ini, es-ES.tpl_hot_fireworks.ini and pt-BR.tpl_hot_fireworks.ini and placed them in to correct folder. Each file had the text
SLOGAN TEXT= Text in the appropiate language
And it still shows me the original slogan text, nothing has changed. Am I doing somtehing wrong?
Thanks
Ariel
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 8 months ago #6505
by ivan.milic
Replied by ivan.milic on topic Re: Language
Hi,
find this code in index.php of template:
<div id="tagline">
<?php echo $tagline; ?>
</div>
and relpace it with:
<div id="tagline">
<?php echo JText::sprintf($tagline); ?>
</div>
find this code in index.php of template:
<div id="tagline">
<?php echo $tagline; ?>
</div>
and relpace it with:
<div id="tagline">
<?php echo JText::sprintf($tagline); ?>
</div>
Please Log in to join the conversation.
Time to create page: 0.233 seconds