test
Viewing 15 posts - 46 through 60 (of 61 total)
  • Author
    Posts
  • pitmedical1 Friend
    #344774

    <em>@JA Developer 163809 wrote:</em><blockquote>Hi guys

    The below is a way to translate current date to your language use multi languages. the mean is that if you switch to other language, current date will change to that language.

    1. Open templatesja_teline_iiilayoutsblocksheader.php file, find following code section:

    [PHP]<p class=”ja-day”>
    <?php
    echo “<span class=”day”>”.date (‘l’).”</span>”;
    echo “<span class=”date”>, “.date (‘M’).” “.date (‘d’).date (‘S’).”</span>”;
    ?>
    </p>[/PHP]

    and change to:

    [PHP]<p class=”ja-day”>
    <?php
    echo “<span class=”day”>”.JText::_(date (‘l’)).”</span>”;
    echo “<span class=”date”>, “. JText::_(date (‘M’)) .” “.JText::_(date (‘d’)).JText::_(date (‘S’)).”</span>”;
    ?>
    </p>[/PHP]

    2. Open languages/your language / your_language.ini file (ex: languageen-GBen-GB.ini) to define some text
    For an example: you see Saturday, Feb 06th on the frontpage

    You have to translate all days (Saturday) and all short months (ex: Feb) to your language with the structure:

    The structure:
    UPPERCASE WORD = your language

    Example:

    SATURDAY = saturday
    FEB = feb

    Note: you should search this text in the file to make sure that this text is not exist yet.

    With this code, if you switch to other language, the date will change to your language.

    Hope it helps</blockquote>

    Thanks for solution.
    How do i remove the “th” from date.

    For example Monday 26th april

    I use GMT (Amsterdam) Dutch language

    kuzey Friend
    #345061

    <em>@pitmedical1 180040 wrote:</em><blockquote>Thanks for solution.
    How do i remove the “th” from date.

    For example Monday 26th april

    I use GMT (Amsterdam) Dutch language</blockquote>

    Same problem here.
    How can i remove the “th” ?
    And where can i edit words “last update”
    And the time shows there is wrong.
    How can i fix these.
    Hope someone helps here.

    kuzey Friend
    #345062

    I found where the “last update” is . But when i translate it turkish characters wont show up.
    What should i do.

    Saguaros Moderator
    #345631

    Dear kuzey!

    In this case, you submit a ticket and give me the full account information, we ‘ll check and resolve this issue
    thanks

    pitmedical1 Friend
    #345635

    <em>@tienhc 181095 wrote:</em><blockquote>Dear kuzey!

    In this case, you submit a ticket and give me the full account information, we ‘ll check and resolve this issue
    thanks</blockquote>

    Thanks for reply,

    The site not live. We are still busy with this template en our new site.

    dinomoss Friend
    #347996

    This is realy helfull. Thanks

    gianfranco Friend
    #357946

    Hi Zipper, thanks you, your post help me so much!

    Thanks
    Gianfranco

    nidcker Friend
    #360816

    Hi,

    Where can I change the last update settings? In my website says Last update 08:10:05 PM GMT, and that’s 4 hours before I made the last update…

    The global time is ok ‘cos the modification time on the articles is ok.

    Thanks!

    brovazzz Friend
    #369567

    Hi guys,

    This is my first post, so you can congrat me ))

    Ok, now about my problem :-[ well, I need to translate my whole website in russian, what will be your tips guys? I tried to change days and months but all I could see on the page was squares instead of letters. Will be waiting for reply:confused:

    thangnn1510 Friend
    #369974

    Dear brovazzz!

    You should use joomfish to translate your site in Russian. This is a good solution in this case. 😎

    kofi Friend
    #377931

    <em>@micrantha 154943 wrote:</em><blockquote>OK, I can be more informative now, after friendly tip of Gray:

    In my case I replaced original code line

    return gmdate("h:i:s A", $sec+$tz).' GMT';

    with

    setlocale(LC_ALL, 'nl_NL'); //set the output in NL-language
    return strftime( "%a %e %b %H:%M %Z" , $sec+$tz).' ';

    Output: donderdag 26 nov 16:02 CET

    This code also gives day and month of last site-update [/quote]

    After pasting the above mentioned code into common.php, the whole layout was messed up in IE8.
    (Module boxes on the left and right were displayed at the botton).

    The original code taken, and then:


    //$date =& JFactory::getDate(strtotime($data->created));
    //$user =& JFactory::getUser();
    //$tz = $user->getParam('timezone');
    //$sec =$date->toUNIX(); //set the date time to second
    //return gmdate("h:i:s A", $sec+$tz).' GMT';

    return date('d.m.Y H:i', strtotime($data->created));

    Output: 21.02.2011 09:04

    euroadvltd Friend
    #455764

    Hi,
    how can I change display format to the date and time?
    For example
    date: “Monday, 6 June 2012”
    and time: “15:23:00” (24h format)

    Saguaros Moderator
    #456028

    Hi euroadvltd,

    Which version of Joomla are you using? Where you want to have this datetime format?

    euroadvltd Friend
    #456161

    Hi
    my Joomla is 2.5.x. I have use it on top (headlines): last update position “15:23:00” (24h format) and day position “Monday, 6 June 2012”.

    Saguaros Moderator
    #456188

    Hi euroadvltd,

    You should open up this file: templatesja_teline_iiiblocksheader.php

    and replace:
    [PHP]echo “<span class=”date”>, “.JHTML::_(‘date’, ‘now’, ‘M ‘).” “.JHTML::_(‘date’, ‘now’, ‘d’).JHTML::_(‘date’, ‘now’, ‘S’).”</span>”;[/PHP]
    With this:
    [PHP]echo “<span class=”date”>, “.JHTML::_(‘date’, ‘now’, ‘j’).” “.JHTML::_(‘date’, ‘now’, ‘F ‘).” “.JHTML::_(‘date’, ‘now’, ‘Y’).”</span>”;[/PHP]

Viewing 15 posts - 46 through 60 (of 61 total)

This topic contains 61 replies, has 30 voices, and was last updated by  euroadvltd 12 years, 6 months ago.

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