template language override not working

A place to discuss Joomla! translation matters.

Moderator: wendhausen

Locked
mehdir
I've been banned!
Posts: 5
Joined: Mon Jul 15, 2013 12:36 pm

template language override not working

Post by mehdir » Wed Jul 17, 2013 6:38 am

How do I need to specify a language override for my template in order for Joomla! to use it?

It's specific language tags for the COM_STORELOCATOR component.

<languages folder="language">
<language tag="en-GB">en-GB/en-GB.tpl_XXX.ini</language>
</languages>

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 28202
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: template language override not working

Post by imanickam » Wed Jul 17, 2013 6:55 am

Go to the Language Manager, click on the tab Override, choose the appropriate language/location combination, click on the icon titled New. In the resultant page you could define the language override string as you wish. The help text in the page is sufficient enough to guide you.
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
Former Joomla! Translations Coordination Team Lead
Eegan - Support the poor and underprivileged

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: template language override not working

Post by infograf768 » Wed Jul 17, 2013 7:01 am

Are you referring to this?
https://www.sysgenmedia.com/forum/7-ins ... -languages

If the Constant is added in code (example: COM_STORELOCATOR_MYSTRING) , then the strings have to be added in the specific component ini file for your language, not in the template.
If the constant exists already and you need to override its value, use the Language Manager=>Overrides.

If, as stated in the link above, you have a "normal" text entered in the db that needs to be translated depending on language used, then you would have to save it as a constant and modify the code to translate it when displayed with a JText::_($variable)
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

mehdir
I've been banned!
Posts: 5
Joined: Mon Jul 15, 2013 12:36 pm

Re: template language override not working

Post by mehdir » Sun Jul 28, 2013 8:17 am

thanks
infograf768
you solved my problem. thank you very very much

lisablaker82
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Dec 12, 2013 10:35 pm

Re: template language override not working

Post by lisablaker82 » Thu Dec 12, 2013 10:43 pm

Hi guys,

Thanks for helping mehdir. I've experienced somewhat the same issues but this post has helped me in a way.

Lisa


Locked

Return to “Translations”