Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • nihues Friend
    #152986

    I just notice that the PREV and NEXT buttons of K2 item page aren’t “JText”, so it not change with the translation .ini file.

    Here is the solution:

    Go to templates/ja_pyro/html/com_k2/item.php around line 482 change the PREV and NEXT to your language.

    [PHP]<?php if(isset($this->item->previousLink)): ?>
    <a class=”itemPrevious” href=”<?php echo $this->item->previousLink; ?>” title=”<?php echo $this->item->previousTitle; ?>” >
    « Prev
    </a>
    <?php endif; ?>

    <?php if(isset($this->item->nextLink)): ?>
    <a class=”itemNext” href=”<?php echo $this->item->nextLink; ?>” title=”<?php echo $this->item->nextTitle; ?>” >
    Next »
    </a>
    <?php endif; ?>
    [/PHP]

    Or, use the original K2 sentence, instead of the NEXT or PREVIOUS, it uses the next or previous articles titles, remove the original sentence and use this:

    [PHP]<?php if(isset($this->item->previousLink)): ?>
    <a class=”itemPrevious” href=”<?php echo $this->item->previousLink; ?>”>
    « <?php echo $this->item->previousTitle; ?>
    </a>
    <?php endif; ?>

    <?php if(isset($this->item->nextLink)): ?>
    <a class=”itemNext” href=”<?php echo $this->item->nextLink; ?>”>
    <?php echo $this->item->nextTitle; ?> »
    </a>
    <?php endif; ?>[/PHP]

    Small thing, but annoying if it’s on another language. Maybe should be corrected for next release? insert as JText at least!

    Saguaros Moderator
    #351600

    Thanks for reporting i’ll inform this issue for our developers fixing for last version 🙂

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

This topic contains 2 replies, has 2 voices, and was last updated by  Saguaros 14 years, 3 months ago.

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