diff --git a/ChangeLog b/ChangeLog index f585a8f1b..b59cd62fe 100755 --- a/ChangeLog +++ b/ChangeLog @@ -27,6 +27,9 @@ $Source$ - fixed bug #458557 (Navigation bar); - optimized a bit. * ldi_check.php3: removed some unnecessary "str_replace". + * lib.inc.php3, lines 848-865; db_stats.php3, line 114; tbl_dump, line 162; + lang/*: Merged patch #457984 (Localised dates in dump and db stats) + thanks to Michal Cihar . 2001-09-04 Loïc Chapeaux * lib.inc.php3: diff --git a/db_stats.php3 b/db_stats.php3 index 8d8a05041..0449af6ed 100644 --- a/db_stats.php3 +++ b/db_stats.php3 @@ -111,7 +111,7 @@ if ($server > 0) { - +

diff --git a/lang/brazilian_portuguese.inc.php3 b/lang/brazilian_portuguese.inc.php3 index aadc374e1..73a13dbf8 100644 --- a/lang/brazilian_portuguese.inc.php3 +++ b/lang/brazilian_portuguese.inc.php3 @@ -8,6 +8,12 @@ $number_thousands_separator = ','; $number_decimal_separator = '.'; $byteUnits = array('Bytes', 'KB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + $strAccessDenied = 'Acesso Negado'; $strAction = 'Ações'; diff --git a/lang/bulgarian-win1251.inc.php3 b/lang/bulgarian-win1251.inc.php3 index a87c04d72..fc1964cb5 100644 --- a/lang/bulgarian-win1251.inc.php3 +++ b/lang/bulgarian-win1251.inc.php3 @@ -8,6 +8,12 @@ $number_thousands_separator = ','; $number_decimal_separator = '.'; $byteUnits = array('Bytes', 'KB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + $strAccessDenied = 'Îòêàçàí äîñòúï'; $strAction = 'Äåéñòâèå'; diff --git a/lang/catala.inc.php3 b/lang/catala.inc.php3 index 61e6c2413..bbbe3157a 100644 --- a/lang/catala.inc.php3 +++ b/lang/catala.inc.php3 @@ -8,6 +8,12 @@ $number_thousands_separator = ','; $number_decimal_separator = '.'; $byteUnits = array('Bytes', 'KB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + $strAccessDenied = 'Access denegat'; $strAction = 'Acció'; diff --git a/lang/chinese_big5.inc.php3 b/lang/chinese_big5.inc.php3 index 6e6296ade..18063566d 100644 --- a/lang/chinese_big5.inc.php3 +++ b/lang/chinese_big5.inc.php3 @@ -9,6 +9,12 @@ $number_thousands_separator = ','; $number_decimal_separator = '.'; $byteUnits = array('Bytes', 'KB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + $strAccessDenied = '©Úµ´¦s¨ú'; $strAction = '°õ¦æ'; diff --git a/lang/chinese_gb.inc.php3 b/lang/chinese_gb.inc.php3 index 3529b03c8..f80e0f278 100644 --- a/lang/chinese_gb.inc.php3 +++ b/lang/chinese_gb.inc.php3 @@ -8,6 +8,12 @@ $number_thousands_separator = ','; $number_decimal_separator = '.'; $byteUnits = array('Bytes', 'KB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + $strAccessDenied = '·ÃÎʱ»¾Ü¾ø'; $strAction = 'Ö´ÐвÙ×÷'; diff --git a/lang/czech-iso.inc.php3 b/lang/czech-iso.inc.php3 index f7dd34d81..3e123c579 100644 --- a/lang/czech-iso.inc.php3 +++ b/lang/czech-iso.inc.php3 @@ -8,6 +8,12 @@ $number_thousands_separator = ' '; $number_decimal_separator = '.'; $byteUnits = array('Bajtù', 'KB', 'MB', 'GB'); +$day_of_week = array('Nedìle', 'Pondìlí', 'Úterý', 'Støeda', 'Ètvrtek', 'Pátek', 'Sobota'); +$month = array('ledna', 'února', 'bøezna', 'dubna', 'kvìtna', 'èervna', 'èervence', 'srpna', 'záøí', 'øíjna', 'listopadu', 'prosince'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%a %e. %b %Y, %H:%M'; + $strAccessDenied = 'Pøístup odepøen'; $strAction = 'Akce'; diff --git a/lang/czech-win1250.inc.php3 b/lang/czech-win1250.inc.php3 index cc12ed94e..bae656b40 100644 --- a/lang/czech-win1250.inc.php3 +++ b/lang/czech-win1250.inc.php3 @@ -8,6 +8,12 @@ $number_thousands_separator = ' '; $number_decimal_separator = '.'; $byteUnits = array('Bajtù', 'KB', 'MB', 'GB'); +$day_of_week = array('Nedìle', 'Pondìlí', 'Úterý', 'Støeda', 'Ètvrtek', 'Pátek', 'Sobota'); +$month = array('ledna', 'února', 'bøezna', 'dubna', 'kvìtna', 'èervna', 'èervence', 'srpna', 'záøí', 'øíjna', 'listopadu', 'prosince'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%a %e. %b %Y, %H:%M'; + $strAccessDenied = 'Pøístup odepøen'; $strAction = 'Akce'; diff --git a/lang/danish.inc.php3 b/lang/danish.inc.php3 index 6fedee6e7..9c44165e8 100644 --- a/lang/danish.inc.php3 +++ b/lang/danish.inc.php3 @@ -8,6 +8,12 @@ $number_thousands_separator = ','; $number_decimal_separator = '.'; $byteUnits = array('Bytes', 'KB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + $strAccessDenied = 'Adgang Nægtet'; $strAction = 'Handling'; diff --git a/lang/dutch.inc.php3 b/lang/dutch.inc.php3 index c6ba401c1..fa9ff9e44 100644 --- a/lang/dutch.inc.php3 +++ b/lang/dutch.inc.php3 @@ -8,6 +8,12 @@ $number_thousands_separator = ','; $number_decimal_separator = '.'; $byteUnits = array('Bytes', 'KB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + $strAccessDenied = 'Toegang geweigerd '; $strAction = 'Actie'; diff --git a/lang/english.inc.php3 b/lang/english.inc.php3 index b644b4c98..5c593955c 100644 --- a/lang/english.inc.php3 +++ b/lang/english.inc.php3 @@ -8,6 +8,12 @@ $number_thousands_separator = ','; $number_decimal_separator = '.'; $byteUnits = array('Bytes', 'KB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + $strAccessDenied = 'Access denied'; $strAction = 'Action'; diff --git a/lang/french.inc.php3 b/lang/french.inc.php3 index 7d99bfcf6..1b5387a69 100644 --- a/lang/french.inc.php3 +++ b/lang/french.inc.php3 @@ -8,6 +8,12 @@ $number_thousands_separator = ' '; $number_decimal_separator = ','; $byteUnits = array('Octets', 'Ko', 'Mo', 'Go'); +$day_of_week = array('Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'); +$month = array('Janvier', 'Fevrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'); +// Voir http://www.php.net/manual/en/function.strftime.php pour la variable +// ci-dessous +$datefmt = '%A %d %B %Y à %H:%M'; + $strAccessDenied = 'Accès refusé'; $strAction = 'Action'; diff --git a/lang/galician.inc.php3 b/lang/galician.inc.php3 index a6ecd14b4..c6eeba60f 100644 --- a/lang/galician.inc.php3 +++ b/lang/galician.inc.php3 @@ -8,6 +8,12 @@ $number_thousands_separator = '.'; $number_decimal_separator = ','; $byteUnits = array('Bytes', 'KB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + $strAccessDenied = 'Acceso Negado'; $strAction = 'Acción'; diff --git a/lang/german.inc.php3 b/lang/german.inc.php3 index d196024dd..d170cf810 100644 --- a/lang/german.inc.php3 +++ b/lang/german.inc.php3 @@ -8,6 +8,12 @@ $number_thousands_separator = '.'; $number_decimal_separator = ','; $byteUnits = array('Bytes', 'KB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + $strAccessDenied = 'Zugriff verweigert.'; $strAction = 'Aktion'; diff --git a/lang/italian.inc.php3 b/lang/italian.inc.php3 index b3c05bbee..0f9365cb0 100644 --- a/lang/italian.inc.php3 +++ b/lang/italian.inc.php3 @@ -9,6 +9,12 @@ $number_thousands_separator = '.'; $number_decimal_separator = ','; $byteUnits = array('Bytes', 'KB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + $strAccessDenied = 'Accesso negato'; $strAction = 'Azione'; diff --git a/lang/japanese.inc.php3 b/lang/japanese.inc.php3 index 90a2cdc1b..1d47ff275 100644 --- a/lang/japanese.inc.php3 +++ b/lang/japanese.inc.php3 @@ -8,6 +8,12 @@ $number_thousands_separator = ','; $number_decimal_separator = '.'; $byteUnits = array('Bytes', 'KB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + $strAccessDenied = '¥¢¥¯¥»¥¹¤ÏµñÈݤµ¤ì¤Þ¤·¤¿¡£'; $strAction = '¼Â¹Ô'; diff --git a/lang/korean.inc.php3 b/lang/korean.inc.php3 index 11e83caaa..c2c1e0d1e 100644 --- a/lang/korean.inc.php3 +++ b/lang/korean.inc.php3 @@ -8,6 +8,12 @@ $number_thousands_separator = ','; $number_decimal_separator = '.'; $byteUnits = array('Bytes', 'KB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + $strAccessDenied = 'Á¢±ÙÀÌ °ÅºÎµÇ¾ú½À´Ï´Ù.'; $strAction = '½ÇÇà'; diff --git a/lang/norwegian.inc.php3 b/lang/norwegian.inc.php3 index a84754457..76ccd6d68 100644 --- a/lang/norwegian.inc.php3 +++ b/lang/norwegian.inc.php3 @@ -8,6 +8,12 @@ $number_thousands_separator = ','; $number_decimal_separator = '.'; $byteUnits = array('Bytes', 'KB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + $strAccessDenied = 'Ingen tilgang'; $strAction = 'Handling'; diff --git a/lang/polish.inc.php3 b/lang/polish.inc.php3 index 17f8f4141..98a9b8758 100644 --- a/lang/polish.inc.php3 +++ b/lang/polish.inc.php3 @@ -8,6 +8,12 @@ $number_thousands_separator = '.'; $number_decimal_separator = ','; $byteUnits = array('bajtów', 'KB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + $strAccessDenied = 'Brak dostêpu'; $strAction = 'Dzia³anie'; diff --git a/lang/portuguese.inc.php3 b/lang/portuguese.inc.php3 index 57970ed20..ee449ff8d 100644 --- a/lang/portuguese.inc.php3 +++ b/lang/portuguese.inc.php3 @@ -8,6 +8,12 @@ $number_thousands_separator = ','; $number_decimal_separator = '.'; $byteUnits = array('Bytes', 'KB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + $strAccessDenied = 'Acesso Negado'; $strAction = 'Ações'; diff --git a/lang/romanian.inc.php3 b/lang/romanian.inc.php3 index f0ee2f2c4..d2738d37c 100644 --- a/lang/romanian.inc.php3 +++ b/lang/romanian.inc.php3 @@ -8,6 +8,13 @@ $number_thousands_separator = ','; $number_decimal_separator = '.'; $byteUnits = array('Bytes', 'KB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + + $strAccessDenied = 'Acces interzis'; $strAction = 'Actiune'; $strAddDeleteColumn = 'Adauga/Sterge coloane'; diff --git a/lang/russian-koi8.inc.php3 b/lang/russian-koi8.inc.php3 index 2c76a1e53..e570e8e3e 100644 --- a/lang/russian-koi8.inc.php3 +++ b/lang/russian-koi8.inc.php3 @@ -8,6 +8,12 @@ $number_thousands_separator = ','; $number_decimal_separator = '.'; $byteUnits = array('Bytes', 'KB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + $strAccessDenied = '÷ ÄÏÓÔÕÐÅ ÏÔËÁÚÁÎÏ'; $strAction = 'äÅÊÓÔ×ÉÅ'; diff --git a/lang/russian-win1251.inc.php3 b/lang/russian-win1251.inc.php3 index 7e12fb2ae..8b0fab5bb 100644 --- a/lang/russian-win1251.inc.php3 +++ b/lang/russian-win1251.inc.php3 @@ -8,6 +8,12 @@ $number_thousands_separator = ','; $number_decimal_separator = '.'; $byteUnits = array('Bytes', 'KB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + $strAccessDenied = ' äîñòóïå îòêàçàíî'; $strAction = 'Äåéñòâèå'; diff --git a/lang/slovak-iso.inc.php3 b/lang/slovak-iso.inc.php3 index 133a13713..325592af3 100644 --- a/lang/slovak-iso.inc.php3 +++ b/lang/slovak-iso.inc.php3 @@ -9,6 +9,12 @@ $number_thousands_separator = ' '; $number_decimal_separator = ','; $byteUnits = array('Bajtov', 'KB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + $strAccessDenied = 'Prístup zamietnutý'; $strAction = 'Akcia'; diff --git a/lang/spanish.inc.php3 b/lang/spanish.inc.php3 index b5c367840..6a6ae9922 100644 --- a/lang/spanish.inc.php3 +++ b/lang/spanish.inc.php3 @@ -8,6 +8,12 @@ $number_thousands_separator = ','; $number_decimal_separator = '.'; $byteUnits = array('Bytes', 'KB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + $strAccessDenied = 'Acceso denegado '; $strAction = 'Acción'; diff --git a/lang/swedish.inc.php3 b/lang/swedish.inc.php3 index 9323cecc2..2e3a978e0 100644 --- a/lang/swedish.inc.php3 +++ b/lang/swedish.inc.php3 @@ -8,6 +8,12 @@ $number_thousands_separator = ' '; $number_decimal_separator = ','; $byteUnits = array('bytes', 'kB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + $strAccessDenied = 'Åtkomst nekad'; $strAction = 'Handling'; diff --git a/lang/thai.inc.php3 b/lang/thai.inc.php3 index 1eab8f233..11c92fa12 100644 --- a/lang/thai.inc.php3 +++ b/lang/thai.inc.php3 @@ -8,6 +8,12 @@ $number_thousands_separator = ','; $number_decimal_separator = '.'; $byteUnits = array('Bytes', 'KB', 'MB', 'GB'); +$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); +$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); +// See http://www.php.net/manual/en/function.strftime.php to define the +// variable below +$datefmt = '%B %d, %Y at %I:%M %p'; + $strAccessDenied = 'äÁè͹حҵãËéãªé§Ò¹'; $strAction = '¡ÃзӡÒÃ'; diff --git a/lib.inc.php3 b/lib.inc.php3 index 15455d6c1..abeaeeabc 100755 --- a/lib.inc.php3 +++ b/lib.inc.php3 @@ -845,6 +845,26 @@ window.parent.frames['nav'].location.replace(''); } // end of the 'check_reserved_words' function + /** + * Writes localised date + * + * @param timestamp time + */ + function localised_date($timestamp = -1) + { + global $datefmt, $month, $day_of_week; + + if ($timestamp == -1) { + $timestamp = time(); + } + + $date = ereg_replace('%[aA]', $day_of_week[(int)strftime('%w',$timestamp)], $datefmt); + $date = ereg_replace('%[bB]', $month[(int)strftime('%m',$timestamp)], $date); + + return strftime($date, $timestamp); + } // end of the 'localised_date()' function + + /* ----- Functions used to display records returned by a sql query ----- */ diff --git a/tbl_dump.php3 b/tbl_dump.php3 index 1db91d0c4..317d56ca3 100755 --- a/tbl_dump.php3 +++ b/tbl_dump.php3 @@ -159,7 +159,7 @@ else { ? backquote($db) : '\'' . $db . '\''; $dump_buffer .= $crlf - . '# ' . $strGenTime . ': ' . date('F j, Y, g:i a') . $crlf + . '# ' . $strGenTime . ': ' . localised_date() . $crlf . '# ' . $strServerVersion . ': ' . substr(MYSQL_INT_VERSION, 0, 1) . '.' . substr(MYSQL_INT_VERSION, 1, 2) . '.' . substr(MYSQL_INT_VERSION, 3) . $crlf . '# ' . $strPHPVersion . ': ' . phpversion() . $crlf . '# ' . $strDatabase . ': ' . $formatted_db_name . $crlf;