Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • micheltorres Friend
    #165592

    Hello!

    Please take a look in images below.

    I want to translate month value.

    Thank you


    1. problem-month1
    2. problem-month2
    khoand Friend
    #398193

    Hi,
    You replace this code from templatesja_eventshtmlcom_contentfeatureddefault_item.php

    $createMonth = date('M', strtotime( $this->item->created));
    with

    $createMonth = JHTML::date(strtotime( $this->item->created), 'M');
    You edit codes from languageen-GBen-GB.ini

    JANUARY_SHORT="Jan"
    JANUARY="January"
    FEBRUARY_SHORT="Feb"
    FEBRUARY="February"
    MARCH_SHORT="Mar"
    MARCH="March"
    APRIL_SHORT="Apr"
    APRIL="April"
    MAY_SHORT="May"
    MAY="May"
    JUNE_SHORT="Jun"
    JUNE="June"
    JULY_SHORT="Jul"
    JULY="July"
    AUGUST_SHORT="Aug"
    AUGUST="August"
    SEPTEMBER_SHORT="Sep"
    SEPTEMBER="September"
    OCTOBER_SHORT="Oct"
    OCTOBER="October"
    NOVEMBER_SHORT="Nov"
    NOVEMBER="November"
    DECEMBER_SHORT="Dec"
    DECEMBER="December"

    micheltorres Friend
    #398234

    Hello khoand,

    Thanks for your reply. 🙂
    Unfortunately did not work.
    When I made the change in code in templatesja_eventshtmlcom_contentfrontpagedefault_item.php, my site has to return the M value for all months.

    Any other ideas?

    Thank you

    khoand Friend
    #398266

    You replace this code from templatesja_eventshtmlcom_contentfrontpagedefault_item.php in the line #120,

    $createMonth = date('M', strtotime( $this->article->created));

    with

    $createMonth = JHTML::_('date', $this->item->created, JText::_('%b'));

    You edit codes from languageen-GBen-GB.ini

    JANUARY_SHORT=Jan
    JANUARY=January
    FEBRUARY_SHORT=Feb
    FEBRUARY=February
    MARCH_SHORT=Mar
    MARCH=March
    APRIL_SHORT=Apr
    APRIL=April
    MAY_SHORT=May
    MAY=May
    JUNE_SHORT=JUN
    JUNE=June
    JULY_SHORT=Jul
    JULY=July
    AUGUST_SHORT=Aug
    AUGUST=August
    SEPTEMBER_SHORT=Sep
    SEPTEMBER=September
    OCTOBER_SHORT=Oct
    OCTOBER=October
    NOVEMBER_SHORT=Nov
    NOVEMBER=November
    DECEMBER_SHORT=Dec
    DECEMBER=December

    micheltorres Friend
    #398306

    Hello khoand!!! 😀

    Now, it worked perfectly!!!
    Thank you very much!

    All the best for you.

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

This topic contains 5 replies, has 2 voices, and was last updated by  micheltorres 13 years, 5 months ago.

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