Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • mkutny Friend
    #168827

    I’ve got a Joomla 1.5 site with Ja Portfolio template installed and Russian language in frontend.

    I have a K2 section in my site with Ja Portfolio blog layout. K2 “category item layout” is configured to have template set to ja_portfolio_blog.

    It is properly rendered from layout perspective but Month name is not properly localized.

    You may check it by this link: http://vdvkiev.com.ua/%D0%BD%D0%BE%D0%B2%D0%BE%D1%81%D1%82%D0%B8/%D0%BD%D0%BE%D0%B2%D0%BE%D1%81%D1%82%D0%B8

    Could it be fixed through language definition files?

    — Max

    jooservices Friend
    #414284

    Hi
    For clearly, are you meaning


    22
    А� 2011

    And “А�” is incorrected ?
    Thank you
    Viet Vu

    mkutny Friend
    #414290

    Yeah, exactly.

    “А�” is incorrect.

    It should be “Сен” just if you’re curious 🙂

    — Max

    jooservices Friend
    #414291

    Hi
    Добрый вечер,
    Please give me your FTP access via PM than i can help you
    Thank you,
    Viet Vu

    mkutny Friend
    #414321

    Hi!

    И вам добрый вечер.

    I’ve sent ftp credentials over PM.

    Hope this will help.

    Thanks!

    jooservices Friend
    #414346

    Hi
    I ‘ve fixed this. It look like our bugs.
    But about text. I don’t know is it Августа or Сен ?
    Because i don’t touch into translate file just fix template code.
    Please let’s me know
    Thank you
    Viet Vu

    mkutny Friend
    #414410

    Hi.

    Thanks a lot – it’s fixed now. The month name is ok.

    Two issues i’d like to clarify:
    1. The month name should be truncated to three letters, e.g. “Авг” instead of “Августа”. Otherwise longer names will overlap with title.
    2. Where did you fix it? Just curious.

    — Max

    mkutny Friend
    #414411

    Hi,

    I also noticed it’s not fixed in item view yet.

    — Max

    jooservices Friend
    #414528

    <em>@mkutny 269827 wrote:</em><blockquote>Hi,

    I also noticed it’s not fixed in item view yet.

    — Max</blockquote>

    Hi,
    Yes because follow your provided link i just fixed for Category page. And this’s my fix
    /templates/ja_portfolio/html/com_k2/templates/ja_portfolio_blog/category_item.php


    <div class="blog-post-date clearfix">
    <?php
    $stringDate = JHTML::_('date', $this->item->created , JText::_('DATE_FORMAT_LC3'));
    $arrdate = explode(" ", $stringDate);
    ?>
    <span class="date"><?php echo $arrdate[0]; ?></span>
    <div class="month-year">
    <span class="month"><?php echo $arrdate[1]; ?></span>
    <span class="year"><?php echo $arrdate[2]; ?></span>
    </div>
    </div>

    As you can see this one use DATE_FORMAT_LC3


    DATE_FORMAT_LC=%d.%m.%Y
    DATE_FORMAT_LC1=%d.%m.%Y
    DATE_FORMAT_LC2=%d.%m.%Y %H:%M
    DATE_FORMAT_LC3=%d %B %Y
    DATE_FORMAT_LC4=%d.%m.%y
    DATE_FORMAT_JS1=y-m-d
    %Y-%M-%D=%Y-%m-%d
    %A, %B %E=%A, %B %e
    # Months

    You can try to change it into another format as you wish. ( http://linux.about.com/od/commands/l/blcmdl1_date.htm )
    For item page i’ve just fixed please try to clear cache and check it from your side.
    Thank you
    Viet Vu

    jooservices Friend
    #415578

    Hi
    have you solved your issue ? 🙂
    Thank you
    Viet Vu

    mkutny Friend
    #415610

    Thanks for asking.

    For full month name (e.g. “%d %B %Y” it works perfect.

    Although when I change format to “%d %b %Y” to get abbreviated month name it somehow impacts display of the year. So instead of “23 Сен 2011” i get “23 Сен fsdfd”.

    Take a look: http://vdvkiev.com.ua/%D0%BD%D0%BE%D0%B2%D0%BE%D1%81%D1%82%D0%B8/%D0%BD%D0%BE%D0%B2%D0%BE%D1%81%D1%82%D0%B8

    How could it be?

    — Max

    jooservices Friend
    #415615

    Hi,
    It’s strange . Allow me re-access your FTP for checking ?
    ( please re PM me because after have done i have deleted it )
    Thank you
    Viet Vu

    mkutny Friend
    #415637

    Hi Viet Vu,

    done.

    — Max

    mkutny Friend
    #417327

    Dear Viet Vu,

    it’s now fixed. Could you explain me how did you do it?

    — Max

    jooservices Friend
    #417377

    Hi
    It ‘s just a bug in code by use array 3 elements, infact 4 elements 🙂
    Thank you
    Viet Vu

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

This topic contains 23 replies, has 2 voices, and was last updated by  jooservices 13 years, 1 month ago.

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