Joomla! Discussion Forums



It is currently Fri Nov 27, 2009 8:05 pm (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.



Post new topic Reply to topic  [ 10 posts ] 
Author Message
Posted: Wed Oct 17, 2007 10:16 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11699
Location: **Translation Matters**
Just add in each override

JPlugin::loadLanguage( 'tpl_nameoftemplate' );

Then add the strings in the en-GB.tpl_nameoftemplate.ini file frontend file.

Enjoy !

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
Posted: Sat Oct 20, 2007 6:03 pm 
User avatar
Joomla! Champion
Joomla! Champion
Offline

Joined: Fri Aug 12, 2005 12:47 am
Posts: 6431
Good find JM, a quick note though, the JPlugin::loadLanguage is not intended to be used in template override scope. I can not guarantee that this method will keep functioning in future versions.

_________________
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5

http://www.nooku.org - multi-lingual content manager and rapid extension development framework for Joomla 1.5
http://www.joomlatools.eu - training, consulting and extension development


Top
   
 
Posted: Sun Oct 21, 2007 4:22 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11699
Location: **Translation Matters**
I guess you guys will devise a better way to get the overrides to accept language strings in future versions (although keeping this works OK).
In the meanwhile, this will help all template designers and does not cost one line of code.  ;)

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
Posted: Tue Jun 24, 2008 3:24 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Jun 24, 2008 8:04 am
Posts: 5
Hello,

I'm sory but i don't understand where the en-GB.tpl_nameoftemplate.ini file has to be saved. Can you be more specific ?

Thanks


Top
  E-mail  
 
Posted: Tue Jun 24, 2008 3:41 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11699
Location: **Translation Matters**
fleuveblanc wrote:
Hello,

I'm sory but i don't understand where the en-GB.tpl_nameoftemplate.ini file has to be saved. Can you be more specific ?

Thanks

Some templates do not have that file, others do (milkyway).
If it does not exist, create it in languages/en-GB/
The file can also be loaded in a template package with the following tags in the xml
Code:
<languages>
      <language tag="en-GB">en-GB.name_of_template.ini</language>
</languages>

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
Posted: Sat Jul 19, 2008 6:49 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Jan 25, 2008 8:12 am
Posts: 98
Location: Kuwait
thanks for the TIP
but I couldn't understand the thread if you got any full reference for overrides and the benefits of it
Please advice

thanks again

_________________
Mestslm Rady Be Tab3ek, 3sfor Fe El-7elm Masaknk :: Me7tar 3la Shat Shafayfk, Dh 3tor El Koon Men Ward
Rosheha Nasyeny Meen ANA!
My Hosting Company : http://www.sz4h.com


Top
  E-mail  
 
Posted: Sun Jul 20, 2008 7:05 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11699
Location: **Translation Matters**
This is used when you have occurences of JText in the index.php of your template and the template is distributed over the Net to people not using the same language as yours.

Example for Milkyway:
Code:
<p id="power_by">
<?php echo JText::_('Powered by') ?> <a href="http://www.joomla.org">Joomla!</a>.
<?php echo JText::_('Valid') ?> <a href="http://validator.w3.org/check/referer">XHTML</a> <?php echo JText::_('and') ?> <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
</p>

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
Posted: Mon Jun 01, 2009 1:30 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Apr 14, 2009 8:16 am
Posts: 28
Location: Makassar, Indonesia
I'm newbie here, so I've got to subscribe this...
Thanks... :laugh: :laugh:


Top
  E-mail  
 
Posted: Sat Oct 31, 2009 12:07 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sun Mar 18, 2007 12:50 pm
Posts: 324
Location: Netherlands
Thanks!

_________________
Cheers, M.
-------------------
theplayerspool.com
trainingtrips.eu


Top
  E-mail  
 
Posted: Mon Nov 23, 2009 11:37 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Nov 22, 2009 12:13 pm
Posts: 10
thanks..

_________________
www.kompozisyonornekleri.com
www.ucretsiztarot.com


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group