makecashnow.biz

Welcome, Guest. Please login or register.
Did you miss your activation email?
Pages: [1]
Print
Author Topic: [RESOLVED] How to  (Read 1700 times)
Newbie
*
Posts: 6


View Profile Email
« on: June 30, 2007, 02:05:15 AM »
How to change the date format in JA-TELINE

I mean in french for example
thanks in advance
Logged
Newbie
*
Posts: 3


View Profile Email
« Reply #1 on: June 30, 2007, 06:11:50 AM »
can you attach the index.php ?

thanks.
Logged
Newbie
*
Posts: 6


View Profile Email
« Reply #2 on: June 30, 2007, 10:20:11 AM »
Hi thanks for reply

here is the the original code  in the index.php
i think it is for the date


              echo "".date ('l')."";
        echo "
".date ('M')." ".date ('d').date ('S')."
";
      ?>

but what is the format to french date
Logged
Newbie
*
Posts: 2


View Profile Email
« Reply #3 on: August 05, 2007, 01:40:58 AM »
So, i need change to:


echo "".strftime ('l')."";
echo "
".strftime ('M')." ".strftime ('d').strftime ('S')."
";
?>

Huh??

cuz that doesn't work for me, help please

QUOTE (HEROES @ Jul 6 2007, 02:45 PM) <{POST_SNAPBACK}>
Quote
It is not interested with the language options. It is related with the php codes. Ã�n ja telline's index.php  php date() code is used nd it refers the general English date format. For local date use strftime() instead of php date() code

thats all [/b]
Logged
Jr. Member
**
Posts: 97


View Profile WWW Email
« Reply #4 on: August 05, 2007, 04:48:46 AM »
You don't need to edit the html.

You just select the correct option on Contry Local in the Global Configuration window.
Logged
Newbie
*
Posts: 2


View Profile Email
« Reply #5 on: August 05, 2007, 10:29:35 AM »
i have, spanish, es_ES, and the teline date still in english

QUOTE (pimp007 @ Aug 5 2007, 10:48 AM) <{POST_SNAPBACK}>
Quote
You don't need to edit the html.

You just select the correct option on Contry Local in the Global Configuration window.[/b]
Logged
Jr. Member
**
Posts: 97


View Profile WWW Email
« Reply #6 on: August 06, 2007, 04:59:34 AM »
Do you have access to the server?

Do this:
#1: Open "/usr/share/i18n/SUPPORTED" in a text-editor.
#2: Locate the preferable country local
#3: Add the country locals into "/var/lib/locales/supported.d/local"
#4: And add it to the setting in Joomla!. (es_ES.ISO-8859-1 or es_ES.UTF-8.)

This is how it can look. Remember to add the ISO-8859-1 or UTF-8.
no_NO.UTF-8 UTF-8
no_NO ISO-8859-1
nn_NO.UTF-8 UTF-8
nn_NO ISO-8859-1
nb_NO.UTF-8 UTF-8
nb_NO ISO-8859-1
Logged
Newbie
*
Posts: 1


View Profile Email
« Reply #7 on: November 24, 2008, 05:16:15 PM »
To change the language in Ja-Teline date you need to change the next code in the index.php file:

Original code:

CODE

                      echo "".date ('l')."";
            echo "
".date ('M')." ".date ('d').date ('S')."
";
          ?>
               


New code:

CODE

                setlocale(LC_TIME, "es_ES");
        echo "".strftime ('%A')."";
       echo "
".strftime ('%d.').strftime ('%b')." ".strftime ('%Y').strftime (' ')."
";
      ?>


In this case the new language is spanish, you can change it to other languages you just have to modify "es_ES" for the desired one.
Logged
Newbie
*
Posts: 4


View Profile Email
« Reply #8 on: February 09, 2009, 03:50:53 AM »
    setlocale(LC_TIME, "da_DK.utf8");
    echo "".strftime ('%A')."";
    echo "
".strftime ('%d.'). strftime ('%b')." ".strftime ('%Y').strftime (' ')."
";
    ?>


Try this one. Just change for your language.
Logged
Pages: [1]
Print
 
Jump to: