Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • brandpropaganda Friend
    #187881

    Hi, I translated all the texts anyway READ MORE from ALL ITEMS items in the page not change

    Ninja Lead Moderator
    #494571

    You can change it here

    Open language/en-GB/en-GB.com_k2.ini file


    K2_READ_MORE="Read more..."

    Open language/en-GB/en-GB.tpl_ja_zite.ini file

    K2_READ_MORE="Read more"

    Remember to clear cache before after changing the above files.

    palos Friend
    #497881

    That is nice but how should we handle a site with more languages?
    The author, date, etc at the blog is also seems to be hardcoded why?
    Please show me the way!:((

    palos Friend
    #497883

    Post by “xy” On “local date format”
    “Post by” and “On” remains english…:((

    Ninja Lead Moderator
    #497911

    <blockquote>how should we handle a site with more languages?</blockquote>

    With each language folder you should have language file for this template: /languages/Your_Language/Your_Language.tpl_ja_zite.ini

    For example with English, you will have file: language/en-GB/en-GB.tpl_ja_zite.ini

    <blockquote>”Post by” and “On” remains english</blockquote>

    You can change here:

    JACOM_CONTENT_CATEGORY="In %s"
    JACOM_CONTENT_WRITTEN_BY="Post by %s"
    JACOM_CONTENT_PUBLISHED_DATE_ON="On %s"
    K2_WRITTEN_BY="Post by"
    K2_PUBLISHED_DATE_ON="On"
    K2_CATEGORY="In"
    K2_DATE_FORMAT_LC1="%A, %d %B %Y %H:%M"

    palos Friend
    #497925

    Thank you, Ninja Lead!
    Last night I also found it out and created a My_Language.tpl_ja_zite.ini. Mostly it solved the problems but not with K2 COMMENTS where still remains “Post by” and “On” in English.

    Otherwise we do not use the leading zeros in dating like 04 July nor capitalizing the name of the month.
    So I changed %d to %e and %B to %h …or even %b but nothing changes.
    Please share your know-how with me 😉
    (I still do not see any reason for hardcoding such things)

    Ninja Lead Moderator
    #498028

    You are right with “Post by” and “On“, I see some hardcode about JText in K2 component customized on JA Zite template

    + Path file

    <blockquote>templates/ja_zite/html/com_k2/ja_zite_blog/category_item.php
    templates/ja_zite/html/com_k2/ja_zite/category_item.php
    templates/ja_zite/html/com_k2/ja_zite-static/category_item.php</blockquote>

    + and JText translate

    <strong><?php echo JText::_('Post by'); ?></strong>
    <strong><?php echo JText::_('In'); ?></strong>
    <strong><?php echo JText::_('On'); ?></strong>

    + You can re-define it again

    About date format you can find code appear it in 3 file php code above

    <blockquote><?php echo JHTML::_(‘date’, $this->item->created , JText::_(‘DATE_FORMAT_LC3’)); ?></blockquote>

    and it was defined on this path: language/en-GB/en-GB.ini


    DATE_FORMAT_LC="l, d F Y"
    DATE_FORMAT_LC1="l, d F Y"
    DATE_FORMAT_LC2="l, d F Y H:i"
    DATE_FORMAT_LC3="d F Y"
    DATE_FORMAT_LC4="Y-m-d"
    DATE_FORMAT_JS1="y-m-d"

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

This topic contains 7 replies, has 3 voices, and was last updated by  Ninja Lead 11 years, 4 months ago.

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