[SOLVED] Need to add .JText:: in a php sting, not sure how?

General questions regarding the use of languages in Joomla! 1.5.

Moderator: General Support Moderators

Post Reply
User avatar
Chacapamac
Joomla! Guru
Joomla! Guru
Posts: 827
Joined: Wed Feb 20, 2008 6:50 am
Location: Canada, Montreal
Contact:

[SOLVED] Need to add .JText:: in a php sting, not sure how?

Post by Chacapamac » Sat Jul 28, 2012 12:23 am

The string is:

Code: Select all

<?php if($this->settings['readmore'] === '1'):?>
<p class="xs_readmore"><a href="<?php echo $this->content[$index]->link?>">Readmore..</a></p>
<?php endif;?>
Ihave to add the JText for Readmore..

Not sure , I try without success.... :-[
Last edited by Chacapamac on Sat Jul 28, 2012 3:31 pm, edited 1 time in total.
Can God help us?
Marketing, SEO, Web development - Powered by Joomla!
http://www.grafcomm.ca/

User avatar
alikon
Joomla! Champion
Joomla! Champion
Posts: 5941
Joined: Fri Aug 19, 2005 10:46 am
Location: Roma
Contact:

Re: Need to add .JText:: in a php sting, not sure how?

Post by alikon » Sat Jul 28, 2012 4:40 am

should be JTEXT::_('READMORE')
so like this

Code: Select all

<p class="xs_readmore"><a href="<?php echo $this->content[$index]->link?>"><?php echo JTEXT::_('READMORE');?></a></p>
Nicola Galgano
i know that i don't know
www.alikonweb.it

User avatar
Chacapamac
Joomla! Guru
Joomla! Guru
Posts: 827
Joined: Wed Feb 20, 2008 6:50 am
Location: Canada, Montreal
Contact:

Re: Need to add .JText:: in a php sting, not sure how?

Post by Chacapamac » Sat Jul 28, 2012 3:31 pm

I really need to learn more PHP

A thousand time thank you !
Can God help us?
Marketing, SEO, Web development - Powered by Joomla!
http://www.grafcomm.ca/

BurakB
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Mon Apr 05, 2010 5:02 pm

Re: [SOLVED] Need to add .JText:: in a php sting, not sure how?

Post by BurakB » Sat Apr 29, 2017 10:58 pm

I need to do exactly the same thing for Read More. Can you please advise which file I'll be adding the code below that has the jstring?


Post Reply

Return to “Language - Joomla! 1.5”