Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • loci Friend
    #171809

    hello

    anybody knows how can change the text “read more” in k2 button?or translate it?

    please help me

    thanks a lot

    jooservices Friend
    #429886

    Hi
    In K2, they are using translate-able string:

    <?php echo JText::_('Read more...'); ?>
    You can simply translate it in language file of K2 Component.

    en-GB.com_k2.ini

    loci Friend
    #429974

    in k2 where?which file?

    i have find en-GB.com_k2.ini in languages and change the query about readmore:

    K2_READ=”Leggi tutto”
    K2_READ_MORE=”Leggi tutto”
    K2_READ_MORE_LINK=”Leggi tutto”

    and i have changed but without any change in the site.

    do u have any idea about it?

    thanks a lot
    bye

    jooservices Friend
    #429976

    Uhm … i see your trouble.
    Please update me your FTP than i can quick fix it.

    Thank you

    jooservices Friend
    #430138

    Hi
    There you are:
    In template overrides

    <?php if ($this->item->params->get('catItemReadMore')): ?>
    <!-- Item "read more..." link -->
    <div class="catItemReadMore">
    <a class="k2ReadMore" href="<?php echo $this->item->link; ?>">
    <span><?php echo JText::_('Read more'); ?></span>
    </a>
    </div>
    <?php endif; ?>

    This’s bug because changed “read more” translate string.
    I have fix by update


    <?php if ($this->item->params->get('catItemReadMore')): ?>
    <!-- Item "read more..." link -->
    <div class="catItemReadMore">
    <a class="k2ReadMore" href="<?php echo $this->item->link; ?>">
    <span><?php echo JText::_('K2_READ_MORE'); ?></span>
    </a>
    </div>
    <?php endif; ?>

    And from now this translate will be follow your
    en-GB.com_k2.ini ( or another language )

    K2_READ_MORE="Leggi tutto"

    Please check it.

    Thank you

    tronsdal Friend
    #447999

    Hi

    In exactly what file in the template are you changing this translate string?

    Regards

    Jo

    tronsdal Friend
    #452814

    The above sollution did not work for me (I have J2.5). I therefore contacted support, and they were kind enough to fix it for me.
    According to Joomlart support, they did the following:

    Open all files in “/templates/ja_tiris/html/com_content/” folder, find this “JACOM_CONTENT_READ_MORE_TITLE” and change it to “COM_CONTENT_READ_MORE_TITLE”.

    Worked like a charm. Great support 🙂

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

This topic contains 7 replies, has 3 voices, and was last updated by  tronsdal 12 years ago.

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