Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: [Solved] No Translation for Placeholders
Pages: [1]   Go Down
  Print  
Author Topic: [Solved] No Translation for Placeholders  (Read 1554 times)
0 Members and 1 Guest are viewing this topic.
wabugi
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« on: September 28, 2010, 20:34:30 »

Hello everybody!

I'm using JComments 2.2.0.0 together with Joomla 1.5.20.

I integrated JComments into one of my own components. Everything works fine exept the translation of the placeholders.

Here is an example. When viewing my component including JComments, most text of JComments looks like this: VOTE_GOOD, VOTE_POOR, ADD_COMMENT.

I just don't know why I get the placeholders displayed. I've got another component (JaggyBlog) using JComments. For JaggyBlog this problem doesn't exist.

If no solution can be found, I will just replace all placeholders with normal text. I will only use english for the website anyway.

Any idea?
« Last Edit: September 29, 2010, 02:14:38 by smart » Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: September 28, 2010, 23:48:06 »

You could fix this easily by adding code:

Code: (php)
$language = & JFactory::getLanguage();
$language->load('com_jcomments', JPATH_SITE);

before calling JComments::showComments function.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
wabugi
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« Reply #2 on: September 29, 2010, 02:03:02 »

It works perfectly! Thank you  Smiley
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: [Solved] No Translation for Placeholders
 
Jump to: