-
AuthorPosts
-
October 19, 2011 at 9:30 am #169820
Hi,
I want to change the words : NEXT, PREV, READ MORE.. in the JA News Featured Module from english to arabic.
and change the word ‘OF’ in the same module.I’ve changed it in the languagear-AA file, NEXT & PREV has been changed, but the ‘READ MORE.. ‘ didn’t..?!
I’ve cleaned the cache in Joomla, and cleared browser cache, but didn’t changed.!
and didn’t know how to change the word ‘OF’.On the JA News Pro Module, I want to change the word: ‘More:’ ..
The words that need translation appear in the read squares in the attached image.
How to do that?
Regards
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
October 19, 2011 at 9:42 am #420170Hi,
Do you use Joomla 1.5 or 1.7?October 19, 2011 at 9:51 am #420174Hi,
Sorry, I forgot to tell you that i use Joomla! 1.7.1Regards
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
October 19, 2011 at 9:59 am #420175Hi,
You can take a look in the En language file (en-GB) if your arabic language did not have the code to translate to can add it from en-GB to your language
For example :
READ_MORE=”Read more…”
If you can find this string in arabic language pack you can add it into and translate the string after “=”
Regards
Viet Vu.October 19, 2011 at 10:18 am #420181Hello,
I’ve searched for there words,
I changed Next, PREV,
But can’t change ‘Read More.. ‘, ‘Of’, ‘All’, ‘More:’They aren’t available in the ar-AA language file
Where can i find there texts?
Regards
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
October 19, 2011 at 10:32 am #420183<em>@khaiug 276960 wrote:</em><blockquote>Hello,
I’ve searched for there words,
I changed Next, PREV,
But can’t change ‘Read More.. ‘, ‘Of’, ‘All’, ‘More:’They aren’t available in the ar-AA language file
Where can i find there texts?
Regards</blockquote>
You change this code from templatesja_teline_ivhtmlmod_janews_featureddefaultblog.php in the line #66
<span><?php echo JText::_('READ MORE...');?></span>
You add this code into languageen-GBen-GB.mod_janews_featured.ini
OF="of"
You add this code into languageen-GBen-GB.mod_janewspro.ini
ALL="All"
You change this code from languageen-GBen-GB.mod_janewspro.ini
MORE="More:"
October 19, 2011 at 11:46 am #420192Grate, nice
Thank youCan’t I add the ‘Read More.. ‘ in this code from templatesja_teline_ivhtmlmod_janews_featuredd efaultblog.php in the line #66 to language file ?? I don’t want to change the php code.. is that possible?
Other question please,
for the word ‘Of’ :
if it was english, it was like ( 1 of 4 ),
Now, when i changed it to arabic, it appeared like ( 14 of ),
so, i should modify the php code.. which file?Regards
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
October 19, 2011 at 4:47 pm #420246<em>@khaiug 276973 wrote:</em><blockquote>
if it was english, it was like ( 1 of 4 ),
Now, when i changed it to arabic, it appeared like ( 14 of ),
so, i should modify the php code.. which file?Regards</blockquote>
You replace this code from templatesja_teline_ivhtmlmod_janews_featureddefaultblog.php in the line #76
<span class="box-counter"><span class="counter">1</span> <?php echo JText::_('of')?> <?php echo $bigitems?></span>
with
<span class="box-counter"><span class="counter">1</span> <?php echo $bigitems?><?php echo JText::_('of')?> </span>
October 19, 2011 at 6:43 pm #420282Nice, Thanks a lot khond, that worked perfect
But, for the JA News Featured Module, how can i translate the “Read more… ” through the language file? NOT through editing the php code?
Regards
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
October 20, 2011 at 2:25 am #420339Hi
It should be code like this
<?php if ($showhlreadmore) {?>
<p class="readmore">
<a href="<?php echo $news->link?>" class="readon" title="<?php echo JText::_('READ MORE...');?>"><span><?php echo JText::_('READ MORE...');?></span></a>
</p>So you can use READ MORE in your language file.
Thank you
Viet VuOctober 20, 2011 at 6:09 am #420377Hi jooservices,
If you mean the code from templatesja_teline_ivhtmlmod_janews_featureddefaultblog.php in the line #66..
It’s the same.
where to change?What is the previous code (which file and line), and what is the replacement?
Regards
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
October 20, 2011 at 6:30 am #420385Hi,
you can change into the language file
site/language/en-GB/en-GB.mod_janews_featured.ini ( this is the en version if you use on another language you can go to site/language/xx-XX/xx-XX.mod_janews_featured.ini)
xx-XX is the your language name.
You can search for
[PHP]READ MORE…[/PHP]
If in your language file did not have this string you can add it into
READ MORE…= ‘ the translate string you want’.Regards
Viet Vu.October 20, 2011 at 6:39 am #420388Hi,
there is ( READ_MORE… = “Read more” ) entry in the En language file,
I’ve copied the language file to the other language folder, renamed it to the other language,
and translated the entry ( READ_MORE… = “xxxxxxxx” )
I’ve done this before writing this thread, but it didn’t work ..! ( I’ve cleaned the cache )I’ve done the same with ( NEXT and PREV ), it worked very well
So.. ?
Regards
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
October 20, 2011 at 7:07 am #420398Hi
May i’ve your FTP access for checking ?
Thank you
Viet VuOctober 20, 2011 at 10:09 am #420423<em>@jooservices 277216 wrote:</em><blockquote>Hi
May i’ve your FTP access for checking ?
Thank you
Viet Vu</blockquote>
I’ve sent you PM.I think it seems that the php code doesn’t support language parameter to (Read More … ) with Ja News Featured ..
Regards
AuthorPostsThis topic contains 21 replies, has 4 voices, and was last updated by komar89 13 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum