-
AuthorPosts
-
lorian23 Friend
lorian23
- Join date:
- June 2011
- Posts:
- 14
- Downloads:
- 13
- Uploads:
- 3
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
August 22, 2011 at 12:29 pm #167681As i ask in the title: Where can i edit the text of JA Thumbnail? I want to translate the “1of 2” and the “previous” and “next” -texts in article view
cyprusmedya Friendcyprusmedya
- Join date:
- May 2011
- Posts:
- 79
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 4
- Thanked:
- 15 times in 14 posts
August 22, 2011 at 12:32 pm #407648these texts are on language files and all language files can be found in the language directory of your ftp. it should be something like public_html/language/en-GB
lorian23 Friendlorian23
- Join date:
- June 2011
- Posts:
- 14
- Downloads:
- 13
- Uploads:
- 3
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
August 22, 2011 at 1:24 pm #407660Im well aware of this, but i cant figure out exactly what file im supposed to edit
cyprusmedya Friendcyprusmedya
- Join date:
- May 2011
- Posts:
- 79
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 4
- Thanked:
- 15 times in 14 posts
August 22, 2011 at 5:15 pm #407691there should be a mod_jathumbnail.ini you should look for this.
Manos ModeratorManos
- Join date:
- February 2014
- Posts:
- 2806
- Downloads:
- 46
- Uploads:
- 56
- Thanks:
- 200
- Thanked:
- 633 times in 576 posts
August 22, 2011 at 8:26 pm #407720Hi,
In order to translate “of” you have to edit /plugins/content/plg_jathumbnail/tmpl/thumbnail.php around line 40
<li class="counter"><?php echo JText::sprintf('<span class="item">%d</span> of <span class="total">%d</span>',1,count($images))?></li>
to
<li class="counter"><?php echo JText::sprintf('<span class="item">%d</span> prefered string <span class="total">%d</span>',1,count($images))?></li>
Previews and next should be handled by joomla core language files.
I hope that helps you out!Regards
Manos
1 user says Thank You to Manos for this useful post
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
August 23, 2011 at 5:55 am #407816pascm’t way is correct. Another way is flexible. You replace this code from /plugins/content/plg_jathumbnail/tmpl/thumbnail.php
<li class="counter"><?php echo JText::sprintf('<span class="item">%d</span> of <span class="total">%d</span>',1,count($images))?></li>
with
<li class="counter"><?php echo JText::sprintf('<span class="item">%d</span> '.JText::_('of').' <span class="total">%d</span>',1,count($images))?></li>
You add this code into /language/your-language/your-language.ini (ex: /language/en-GB/en-GB.ini)
OF="your text"1 user says Thank You to khoand for this useful post
-
AuthorPosts
This topic contains 6 replies, has 4 voices, and was last updated by khoand 13 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum