Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • alioztr Friend
    #159446

    How to translate language prev – next button in JA News Featured module.

    Thanks

    jeffrey77 Friend
    #374222

    you 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 directory

    this is how joomla handle all com/mod/plg/tml translation

    actu9 Friend
    #375384

    Hi 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 ?
    Cheers

    actu9 Friend
    #375386

    Oops, 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 Moderator
    #375812

    You translate the readmore text by adding the following translatation text into this file: en-GB.mod_janewspro.ini

    READ MORE…=Readmore
    OF=Of

    If 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

    actu9 Friend
    #375925

    Thanks 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 Moderator
    #375968

    You 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

    actu9 Friend
    #376430

    Thanks tienhc, you’re the man !!

    dieudonne Friend
    #387335

    The 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-FR

    And 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 Moderator
    #387466

    as 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 Friend
    #387513

    All 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.


    1. 2011-04-21-16h56_40
    Saguaros Moderator
    #387942

    You add the following code into the template.css file


    .ja-zinfp-links-actions a span {
    display: block;
    height: 12px;
    width: 5px;
    text-indent: 9999px;
    }

    then check this,

    dieudonne Friend
    #425796

    Hello,

    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


    1. 2011-11-18-14h49_57
    dieudonne Friend
    #426897

    Ok, 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 :


    norito Friend
    #427998

    Thanks. It solved Read More issue.

Viewing 15 posts - 1 through 15 (of 15 total)

This topic contains 15 replies, has 6 voices, and was last updated by  norito 12 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum