Keyword

[SOLVED]Trying translate "About Author" and "Response Found"

  • Kasper
  • Kasper's Avatar Topic Author
  • Offline
  • New Member
More
9 years 5 months ago - 9 years 5 months ago #142954 by Kasper
Hi,
I'm using joomla 3.4 and K2 v2.6.9 with dutch languages.
Everything works fine but i cannot find 2 words to change in Dutch.

I open and check every file in the languages map files dutch and english, front and backend. That was a long work, hihihi
Also i try the constant and value for override backend of the website, but also there i cannot find the 2 words.

I use firebug and then i see
<h3 class="k2IModuleTitle">About Author</h3>
and
<h3 class="k2IModuleTitle"><span>1</span>Response Found</h3>

I also think the constant of "about Author" is K2_ABOUT_AUTHOR when i look on google, but it didn't help me further. Also the search on this community give me no answer.

So that's why i think i have to look in the K2 files. Where i can find in the files to change it?
Last edit: 9 years 5 months ago by Kasper. Reason: solved

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 5 months ago #142980 by Krikor Boghossian
Replied by Krikor Boghossian on topic Trying translate "About Author" and "Response Found"
Open the module's file and double check if the language strings are hardcoded.

Normally the comment strings should be: K2_COMMENT, K2_COMMENTS and K2_BE_THE_FIRST_TO_COMMENT.

Also the About Author seems to be a custom language string in your template. You need to locate that string and manually translate it.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Kasper
  • Kasper's Avatar Topic Author
  • Offline
  • New Member
More
9 years 5 months ago #142984 by Kasper
Hi Krikor,

Thanx for your response.

I found the "About Author" with your information. It was in /templates/template_name/html/com_k2/templates/default/item.php file

And the Response Found, i had to change the code in the same file as About Author :
<h3 class="k2IModuleTitle">
	  	<span><?php echo $this->item->numOfComments; ?></span> <?php echo ($this->item->numOfComments>1) ? JText::_('Responses Found') : JText::_('Response Found'); ?>
	  </h3>

The problems are fixed, thanx for your help!!

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 5 months ago #143001 by Krikor Boghossian
Replied by Krikor Boghossian on topic Trying translate "About Author" and "Response Found"
You 're welcome Kasper :)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum