-
AuthorPosts
-
alioztr Friend
alioztr
- Join date:
- September 2008
- Posts:
- 197
- Downloads:
- 0
- Uploads:
- 21
- Thanks:
- 44
- Thanked:
- 3 times in 1 posts
January 28, 2011 at 10:38 am #159446How to translate language prev – next button in JA News Featured module.
Thanks
jeffrey77 Friendjeffrey77
- Join date:
- January 2011
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 2
- Thanked:
- 5 times in 1 posts
January 28, 2011 at 11:30 am #374222you need to
1)download from /public_html/language/en-GB/en-GB.mod_janews_fp.ini
2)Translate whatever item
3)and upload to /public_html/language/YOUR LANGUAGE directorythis is how joomla handle all com/mod/plg/tml translation
1 user says Thank You to jeffrey77 for this useful post
February 7, 2011 at 12:20 pm #375384Hi Jeffrey,
Thanks for the tip, but there is no such a file as en-GB.mod_janews_fp.ini.
I created a file with this name for the translation of NEXT and PREV but it doesn’t work.
Any brilliant idea ?
CheersFebruary 7, 2011 at 12:37 pm #375386Oops, just found it ! It is in the en-GB.mod_janewspro.ini file that changes have to be done:D
But I still have a problem with translating “Read more” and “OF” (word between the number of the page and the toal number of page”.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 9, 2011 at 8:37 am #375812You translate the readmore text by adding the following translatation text into this file: en-GB.mod_janewspro.ini
READ MORE…=Readmore
OF=OfIf the texts are not changed , please open the file: modulesmod_janews_fptmpldefaultblog.php and find codes:
[PHP]
<a href=”<?php echo $news->link?>” class=”readon” title=”<?php echo JText::_(‘READ MORE…’);?>”><span><?php echo JText::_(‘READ MORE…’);?></span></a>
[/PHP]
[PHP]
<?php echo JText::_(‘of’)?>
[/PHP]You will replace those texts by yours
February 9, 2011 at 10:39 pm #375925Thanks tienhc ! It works perfectly.
The strange thing is that the translation of PREV and NEXT is now gone… How comes:confused: I’m very confused.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 10, 2011 at 7:04 am #375968You try following solution at Post #2. Or you try to open the file: modulesmod_janews_fptmpldefaultblog.php
[PHP] <span><?php echo JText::_(‘Next’)?></span> [/PHP]
[PHP]<span><?php echo JText::_(‘Prev’)?></span>[/PHP]
You can translate that text for these code
February 12, 2011 at 10:06 pm #376430Thanks tienhc, you’re the man !!
dieudonne Frienddieudonne
- Join date:
- January 2011
- Posts:
- 947
- Downloads:
- 61
- Uploads:
- 266
- Thanks:
- 452
- Thanked:
- 107 times in 3 posts
April 20, 2011 at 7:44 pm #387335The name of the file is :
en-GB.mod_janews_featured.ini in /language/en-GB (not in the module)or rename the files and put it the right folder.
Example for french : en-GB.mod_janews_featured.ini > fr-FR.mod_janews_featured.ini in /language/fr-FRAnd for the path for php files is to modulesmod_janews_featuredtmpldefaultblog.php
If you want to remove the ‘of’ :
before : [PHP]<?php echo JText::_(‘of’)?>[/PHP]
after : [PHP]<?php echo JText::_(‘/’)?>[/PHP][PHP][/PHP]And for the 2 arrows, I want to remove the text (PREV and NEXT) but keep the 2 arrows
With this code, it does not work .. any idea ?
[PHP]<span><?php echo JText::_(”)?></span>[/PHP]Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
April 21, 2011 at 9:17 am #387466as default, the module is enabled cache function, so you try to disable the cache option, and clear t3, joomla cache, then let me check
dieudonne Frienddieudonne
- Join date:
- January 2011
- Posts:
- 947
- Downloads:
- 61
- Uploads:
- 266
- Thanks:
- 452
- Thanked:
- 107 times in 3 posts
April 21, 2011 at 2:57 pm #387513All the cache is disabled, and I cleared the t3 cache too.
I think there is a problem because the ‘ ‘ is empty.
[PHP]<span><?php echo JText::_(”)?></span>[/PHP]
So the arrows disappear.See my screenshot : only one ‘ ‘ is empty, and one arrow is missing.
[PHP]<?php if($bigitems>1 && count($rows)>1){?>
<div class=”ja-zinfp-links-actions”>
<span class=”box-counter”><span class=”counter”>1</span> <?php echo JText::_(‘/’)?> <?php echo $bigitems?></span>
<a href=”javascript:void(0)” class=”ja-zinfp-links-actions-next next”>
<span><?php echo JText::_(”)?></span>
</a>
<a href=”javascript:void(0)” class=”ja-zinfp-links-actions-prev prev”>
<span><?php echo JText::_(‘précédent’)?></span>
</a>
<span class=”next”><img src=”modules/mod_janews_fp/tmpl/default/loading.gif” alt=”Loading”/></span>
</div>
<?php }?>[/PHP]A idea ?
Thanks in advance.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
dieudonne Frienddieudonne
- Join date:
- January 2011
- Posts:
- 947
- Downloads:
- 61
- Uploads:
- 266
- Thanks:
- 452
- Thanked:
- 107 times in 3 posts
November 21, 2011 at 7:50 pm #425796Hello,
I’m sorry to reopen this old ticket, but we made a update of mod ja news pro, and the translation of the “read more” button is not working.
We made this like we made before.1) copy the file en-GB.mod_janews_featured.ini to /language/fr-FR/ and renamed it to fr-FR.mod_janews_featured.ini
2) we changed the line in this file (fr-FR.mod_janews_featured.ini) : READ_MORE=”Lire la suite…” and replaced it in the folder “fr-FR”
Cache is off and empty but nothing changes.
Before, this method worked very well.What can we do to fix this ?
Thank in advance
dieudonne Frienddieudonne
- Join date:
- January 2011
- Posts:
- 947
- Downloads:
- 61
- Uploads:
- 266
- Thanks:
- 452
- Thanked:
- 107 times in 3 posts
November 28, 2011 at 10:09 am #426897Ok, I post here the solution provided by Phill Luckhurst.
Big thank to him for the solution.<blockquote>It seems there are some typo’s in a number of files. I have created a couple of archives which have the edited files in them
The first is tmpl.zip which you should unzip and replace the tmpl directory and contents (/modules/mod_ja_news_featured/tmpl) with the one I provide
You can download that from this link – http://www.windsurf.me.uk/Stuff/tmpl.zip
The second file is mod_janews_featured.zip. Unzip that and replace the folder templates/ja_teline_iv/html/mod_janews_featured with the one I provide here
http://www.windsurf.me.uk/Stuff/mod_janews_featured.zip
Hope that helps and I will ask the devs to re-package for the next releases.</blockquote>
You’ll find this files .zip here :
December 5, 2011 at 10:24 am #427998Thanks. It solved Read More issue.
AuthorPostsViewing 15 posts - 1 through 15 (of 15 total)This topic contains 15 replies, has 6 voices, and was last updated by norito 12 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum