From e656dcd46abfe069ea83271248dbd7aae36554ca Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 23 Feb 2008 13:40:45 +0100 Subject: use strftime() instead of date() FS#1335 :!: This patch replaces the use of the date() function with the strftime() function. The latter will respect a set locale and will use localized strings for things like month names. Because the format options for strftime differ from the ones used in date, DokuWiki will rest the value of $conf['dformat'] if it contains an old date format string (detected by missing % characters). Plugins or templates using the $conf['dformat'] need to be updated. darcs-hash:20080223124045-7ad00-6afb2b839afc58781463e25577e06adb675fff79.gz --- lib/plugins/config/lang/bg/lang.php | 2 +- lib/plugins/config/lang/ca/lang.php | 2 +- lib/plugins/config/lang/cs/lang.php | 2 +- lib/plugins/config/lang/da/lang.php | 2 +- lib/plugins/config/lang/de/lang.php | 2 +- lib/plugins/config/lang/el/lang.php | 2 +- lib/plugins/config/lang/en/lang.php | 2 +- lib/plugins/config/lang/eo/lang.php | 2 +- lib/plugins/config/lang/es/lang.php | 2 +- lib/plugins/config/lang/fi/lang.php | 2 +- lib/plugins/config/lang/fr/lang.php | 2 +- lib/plugins/config/lang/gl/lang.php | 2 +- lib/plugins/config/lang/he/lang.php | 2 +- lib/plugins/config/lang/hu/lang.php | 2 +- lib/plugins/config/lang/ja/lang.php | 2 +- lib/plugins/config/lang/ko/lang.php | 2 +- lib/plugins/config/lang/nl/lang.php | 2 +- lib/plugins/config/lang/pt-br/lang.php | 2 +- lib/plugins/config/lang/pt/lang.php | 2 +- lib/plugins/config/lang/ro/lang.php | 2 +- lib/plugins/config/lang/sv/lang.php | 2 +- lib/plugins/config/lang/uk/lang.php | 2 +- lib/plugins/config/lang/zh/lang.php | 2 +- 23 files changed, 23 insertions(+), 23 deletions(-) (limited to 'lib/plugins') diff --git a/lib/plugins/config/lang/bg/lang.php b/lib/plugins/config/lang/bg/lang.php index da5b83685..699a75613 100644 --- a/lib/plugins/config/lang/bg/lang.php +++ b/lib/plugins/config/lang/bg/lang.php @@ -48,7 +48,7 @@ $lang['youarehere'] = 'Йерархични следи'; $lang['typography'] = 'Поправяне на разместени букви'; $lang['htmlok'] = 'Позволяване на HTML'; $lang['phpok'] = 'Позволяване на PHP'; -$lang['dformat'] = 'Формат на датата (виж. date функцията на PHP)'; +$lang['dformat'] = 'Формат на датата (виж. strftime функцията на PHP)'; $lang['signature'] = 'Подпис'; $lang['toptoclevel'] = 'Главно ниво за съдържанието'; $lang['maxtoclevel'] = 'Максимално ниво на съдържанието'; diff --git a/lib/plugins/config/lang/ca/lang.php b/lib/plugins/config/lang/ca/lang.php index 186026fa6..8d8f09c6a 100644 --- a/lib/plugins/config/lang/ca/lang.php +++ b/lib/plugins/config/lang/ca/lang.php @@ -45,7 +45,7 @@ $lang['youarehere'] = 'Camí d\'engrunes jeràrquic'; $lang['typography'] = 'Substitucions tipogràfiques'; $lang['htmlok'] = 'Permet HTML incrustat'; $lang['phpok'] = 'Permet PHP incrustat'; -$lang['dformat'] = 'Format de data (vg. la funció PHP date)'; +$lang['dformat'] = 'Format de data (vg. la funció PHP strftime)'; $lang['signature'] = 'Signatura'; $lang['toptoclevel'] = 'Nivell superior per a la taula de continguts'; $lang['maxtoclevel'] = 'Nivell màxim per a la taula de continguts'; diff --git a/lib/plugins/config/lang/cs/lang.php b/lib/plugins/config/lang/cs/lang.php index 1b1175bae..1c08e50ee 100644 --- a/lib/plugins/config/lang/cs/lang.php +++ b/lib/plugins/config/lang/cs/lang.php @@ -50,7 +50,7 @@ $lang['youarehere'] = 'Hierarchická "drobečková" navigace'; $lang['typography'] = 'Provádět typografické nahrazování'; $lang['htmlok'] = 'Povolit vložené HTML'; $lang['phpok'] = 'Povolit vložené PHP'; -$lang['dformat'] = 'Formát data (viz PHP funkci date)'; +$lang['dformat'] = 'Formát data (viz PHP funkci strftime)'; $lang['signature'] = 'Podpis'; $lang['toptoclevel'] = 'Nejvyšší úroveň, kterou začít automaticky generovaný obsah'; $lang['maxtoclevel'] = 'Maximální počet úrovní v automaticky generovaném obsahu'; diff --git a/lib/plugins/config/lang/da/lang.php b/lib/plugins/config/lang/da/lang.php index 1580ccc74..9000d61ac 100644 --- a/lib/plugins/config/lang/da/lang.php +++ b/lib/plugins/config/lang/da/lang.php @@ -64,7 +64,7 @@ $lang['youarehere'] = 'Hierarkisk sti'; $lang['typography'] = 'Typografiske erstatninger'; $lang['htmlok'] = 'Tillad indlejret HTML'; $lang['phpok'] = 'Tillad indlejret PHP'; -$lang['dformat'] = 'Datoformat (se PHP\'s date funktion)'; +$lang['dformat'] = 'Datoformat (se PHP\'s strftime funktion)'; $lang['signature'] = 'Signatur'; $lang['toptoclevel'] = 'Højeste niveau for indholdsfortegnelse'; $lang['maxtoclevel'] = 'Maksimalt niveau for indholdsfortegnelse'; diff --git a/lib/plugins/config/lang/de/lang.php b/lib/plugins/config/lang/de/lang.php index 7cf190f10..5001f9eb6 100644 --- a/lib/plugins/config/lang/de/lang.php +++ b/lib/plugins/config/lang/de/lang.php @@ -48,7 +48,7 @@ $lang['youarehere'] = 'Hierarchische Pfadnavigation verwenden'; $lang['typography'] = 'Typographische Ersetzungen'; $lang['htmlok'] = 'HTML erlauben'; $lang['phpok'] = 'PHP erlauben'; -$lang['dformat'] = 'Datumsformat (Siehe PHP date Funktion)'; +$lang['dformat'] = 'Datumsformat (Siehe PHP strftime Funktion)'; $lang['signature'] = 'Signatur'; $lang['toptoclevel'] = 'Inhaltsverzeichnis bei dieser Überschriftsgröße beginnen'; $lang['maxtoclevel'] = 'Maximale Überschriftsgröße für Inhaltsverzeichnis'; diff --git a/lib/plugins/config/lang/el/lang.php b/lib/plugins/config/lang/el/lang.php index 957e53f57..751c85895 100644 --- a/lib/plugins/config/lang/el/lang.php +++ b/lib/plugins/config/lang/el/lang.php @@ -52,7 +52,7 @@ $lang['youarehere'] = 'Εμφάνιση ιεραρχικής προβ $lang['typography'] = 'Μετατροπή ειδικών χαρακτήρων στο τυπογραφικό ισοδύναμό τους'; $lang['htmlok'] = 'Να επιτρέπεται η ενσωμάτωση HTML'; $lang['phpok'] = 'Να επιτρέπεται η ενσωμάτωση PHP'; -$lang['dformat'] = 'Μορφή ημερομηνίας (βλέπε την date function της PHP)'; +$lang['dformat'] = 'Μορφή ημερομηνίας (βλέπε την strftime function της PHP)'; $lang['signature'] = 'Υπογραφή'; $lang['toptoclevel'] = 'Ανώτατο επίπεδο πίνακα περιεχομένων σελίδας'; $lang['maxtoclevel'] = 'Μέγιστο επίπεδο για πίνακα περιεχομένων σελίδας'; diff --git a/lib/plugins/config/lang/en/lang.php b/lib/plugins/config/lang/en/lang.php index d385086ca..79413841e 100644 --- a/lib/plugins/config/lang/en/lang.php +++ b/lib/plugins/config/lang/en/lang.php @@ -64,7 +64,7 @@ $lang['youarehere'] = 'Hierarchical breadcrumbs'; $lang['typography'] = 'Do typographical replacements'; $lang['htmlok'] = 'Allow embedded HTML'; $lang['phpok'] = 'Allow embedded PHP'; -$lang['dformat'] = 'Date format (see PHP\'s date function)'; +$lang['dformat'] = 'Date format (see PHP\'s strftime function)'; $lang['signature'] = 'Signature'; $lang['toptoclevel'] = 'Top level for table of contents'; $lang['maxtoclevel'] = 'Maximum level for table of contents'; diff --git a/lib/plugins/config/lang/eo/lang.php b/lib/plugins/config/lang/eo/lang.php index 8c2c23e70..4e50bd18b 100644 --- a/lib/plugins/config/lang/eo/lang.php +++ b/lib/plugins/config/lang/eo/lang.php @@ -47,7 +47,7 @@ $lang['youarehere'] = 'Hierarkiaj paneroj'; $lang['typography'] = 'Fari tipografiajn anstataŭigojn'; $lang['htmlok'] = 'Ebligi enmeton de HTML-aĵoj'; $lang['phpok'] = 'Ebligi enmeton de PHP-aĵoj'; -$lang['dformat'] = 'Formato de datoj (vidu la PHP-an funkcion date'; +$lang['dformat'] = 'Formato de datoj (vidu la PHP-an funkcion strftime'; $lang['signature'] = 'Subskribo'; $lang['toptoclevel'] = 'Supera nivelo por la enhavtabelo'; $lang['maxtoclevel'] = 'Maksimuma nivelo por la enhavtabelo'; diff --git a/lib/plugins/config/lang/es/lang.php b/lib/plugins/config/lang/es/lang.php index 6fc512ab2..244a6ebb2 100644 --- a/lib/plugins/config/lang/es/lang.php +++ b/lib/plugins/config/lang/es/lang.php @@ -47,7 +47,7 @@ $lang['youarehere'] = 'Traza jerárquica'; $lang['typography'] = 'Realizar reemplazos tipográficos'; $lang['htmlok'] = 'Permitir HTML embebido'; $lang['phpok'] = 'Permitir PHP embebido'; -$lang['dformat'] = 'Formato de fecha (ver la función de PHP date)'; +$lang['dformat'] = 'Formato de fecha (ver la función de PHP strftime)'; $lang['signature'] = 'Firma'; $lang['toptoclevel'] = 'Nivel superior para la tabla de contenidos'; $lang['maxtoclevel'] = 'Máximo nivel para la tabla de contenidos'; diff --git a/lib/plugins/config/lang/fi/lang.php b/lib/plugins/config/lang/fi/lang.php index 6115ef9ed..19cdd9f55 100644 --- a/lib/plugins/config/lang/fi/lang.php +++ b/lib/plugins/config/lang/fi/lang.php @@ -46,7 +46,7 @@ $lang['youarehere'] = 'Hierarkiset leivänmurut'; $lang['typography'] = 'Tee typograafiset korvaukset'; $lang['htmlok'] = 'Salli upotettu HTML'; $lang['phpok'] = 'Salli upotettu PHP'; -$lang['dformat'] = 'Päivämäärän muoto (katso PHPn date functiota)'; +$lang['dformat'] = 'Päivämäärän muoto (katso PHPn strftime functiota)'; $lang['signature'] = 'Allekirjoitus'; $lang['toptoclevel'] = 'Ylätason sisällysluettelo'; $lang['maxtoclevel'] = 'Sisällysluettelon suurin syvyys'; diff --git a/lib/plugins/config/lang/fr/lang.php b/lib/plugins/config/lang/fr/lang.php index 30f80fc9f..eecf1e6fd 100644 --- a/lib/plugins/config/lang/fr/lang.php +++ b/lib/plugins/config/lang/fr/lang.php @@ -49,7 +49,7 @@ $lang['youarehere'] = 'Traces hiérarchiques'; $lang['typography'] = 'Effectuer des améliorations typographiques'; $lang['htmlok'] = 'Permettre html dans les pages'; $lang['phpok'] = 'Permettre php dans les pages'; -$lang['dformat'] = 'Format de date (cf. fonction date de PHP)'; +$lang['dformat'] = 'Format de date (cf. fonction strftime de PHP)'; $lang['signature'] = 'Signature'; $lang['toptoclevel'] = 'Niveau supérieur pour figurer dans la table des matières'; $lang['maxtoclevel'] = 'Niveau maximum pour figurer dans la table des matières'; diff --git a/lib/plugins/config/lang/gl/lang.php b/lib/plugins/config/lang/gl/lang.php index e937df621..f48dd0c6a 100644 --- a/lib/plugins/config/lang/gl/lang.php +++ b/lib/plugins/config/lang/gl/lang.php @@ -46,7 +46,7 @@ $lang['youarehere'] = 'Niveis xerárquicos da estrutura de navegació $lang['typography'] = 'Facer substitucións tipográficas'; $lang['htmlok'] = 'Permitir a inserción de HTML'; $lang['phpok'] = 'Permitir a inserción de PHP'; -$lang['dformat'] = 'Formato de Data (bótalle un ollo á función date do PHP)'; +$lang['dformat'] = 'Formato de Data (bótalle un ollo á función strftime do PHP)'; $lang['signature'] = 'Sinatura'; $lang['toptoclevel'] = 'Nivel superior para a táboa de contidos'; $lang['maxtoclevel'] = 'Nivel máximo para a táboa de contidos'; diff --git a/lib/plugins/config/lang/he/lang.php b/lib/plugins/config/lang/he/lang.php index 6a5627e49..da550268d 100644 --- a/lib/plugins/config/lang/he/lang.php +++ b/lib/plugins/config/lang/he/lang.php @@ -65,7 +65,7 @@ $lang['youarehere'] = 'עקבות היררכיות להיסטוריה'; $lang['typography'] = 'שימוש בחלופות טיפוגרפיות'; $lang['htmlok'] = 'אישור שיבוץ HTML'; $lang['phpok'] = 'אישור שיבוץ PHP'; -$lang['dformat'] = 'תסדיר תאריך (נא לפנות לפונקציה date של PHP)'; +$lang['dformat'] = 'תסדיר תאריך (נא לפנות לפונקציה strftime של PHP)'; $lang['signature'] = 'חתימה'; $lang['toptoclevel'] = 'רמה עליונה בתוכן הענינים'; $lang['maxtoclevel'] = 'רמה מירבית בתוכן הענינים'; diff --git a/lib/plugins/config/lang/hu/lang.php b/lib/plugins/config/lang/hu/lang.php index e2e86b924..26e6e2205 100644 --- a/lib/plugins/config/lang/hu/lang.php +++ b/lib/plugins/config/lang/hu/lang.php @@ -47,7 +47,7 @@ $lang['youarehere'] = 'Hierarchikus nyomvonal'; $lang['typography'] = 'Legyen-e tipográfiai csere'; $lang['htmlok'] = 'Beágyazott HTML engedélyezése'; $lang['phpok'] = 'Beágyazott PHP engedélyezése'; -$lang['dformat'] = 'Dátum formázás (lásd a PHP date függvényt)'; +$lang['dformat'] = 'Dátum formázás (lásd a PHP strftime függvényt)'; $lang['signature'] = 'Aláírás'; $lang['toptoclevel'] = 'A tartalomjegyzék felső szintje'; $lang['maxtoclevel'] = 'A tartalomjegyzék mélysége'; diff --git a/lib/plugins/config/lang/ja/lang.php b/lib/plugins/config/lang/ja/lang.php index f6a5ef56f..385eeb28b 100644 --- a/lib/plugins/config/lang/ja/lang.php +++ b/lib/plugins/config/lang/ja/lang.php @@ -48,7 +48,7 @@ $lang['youarehere'] = '現在位置を表示'; $lang['typography'] = 'タイポグラフィー変換'; $lang['htmlok'] = 'HTML埋め込み'; $lang['phpok'] = 'PHP埋め込み'; -$lang['dformat'] = '日付フォーマット(PHPのdate関数を参照)'; +$lang['dformat'] = '日付フォーマット(PHPのstrftime関数を参照)'; $lang['signature'] = '署名'; $lang['toptoclevel'] = '目次 トップレベル見出し'; $lang['maxtoclevel'] = '目次 表示限度見出し'; diff --git a/lib/plugins/config/lang/ko/lang.php b/lib/plugins/config/lang/ko/lang.php index 761acdfea..c29bdd087 100644 --- a/lib/plugins/config/lang/ko/lang.php +++ b/lib/plugins/config/lang/ko/lang.php @@ -64,7 +64,7 @@ $lang['youarehere'] = '계층형 위치 추적'; $lang['typography'] = '기호 대체'; $lang['htmlok'] = 'HTML 내장 허용'; $lang['phpok'] = 'PHP 내장 허용'; -$lang['dformat'] = '날짜 포맷 (PHP date 기능) 참조'; +$lang['dformat'] = '날짜 포맷 (PHP strftime 기능) 참조'; $lang['signature'] = '서명'; $lang['toptoclevel'] = '목차 최상위 항목'; $lang['maxtoclevel'] = '목차 최대 단계'; diff --git a/lib/plugins/config/lang/nl/lang.php b/lib/plugins/config/lang/nl/lang.php index 70aadc64a..6a94056aa 100644 --- a/lib/plugins/config/lang/nl/lang.php +++ b/lib/plugins/config/lang/nl/lang.php @@ -47,7 +47,7 @@ $lang['youarehere'] = 'Hierarchische broodkruimels'; $lang['typography'] = 'Breng typografische wijzigingen aan'; $lang['htmlok'] = 'Embedded HTML toestaan'; $lang['phpok'] = 'Embedded PHP toestaan'; -$lang['dformat'] = 'Datum formaat (zie de PHP date functie)'; +$lang['dformat'] = 'Datum formaat (zie de PHP strftime functie)'; $lang['signature'] = 'Ondertekening'; $lang['toptoclevel'] = 'Bovenste niveau voor inhoudsopgave'; $lang['maxtoclevel'] = 'Laagste niveau voor inhoudsopgave'; diff --git a/lib/plugins/config/lang/pt-br/lang.php b/lib/plugins/config/lang/pt-br/lang.php index 3f35d4769..4d93001f0 100644 --- a/lib/plugins/config/lang/pt-br/lang.php +++ b/lib/plugins/config/lang/pt-br/lang.php @@ -45,7 +45,7 @@ $lang['youarehere'] = 'Trilha hierárquica'; $lang['typography'] = 'Efetuar modificações tipográficas'; $lang['htmlok'] = 'Permitir incorporação de HTML'; $lang['phpok'] = 'Permitir incorporação de PHP'; -$lang['dformat'] = 'Formato da data (veja a função date do PHP)'; +$lang['dformat'] = 'Formato da data (veja a função strftime do PHP)'; $lang['signature'] = 'Assinatura'; $lang['toptoclevel'] = 'Nível mais alto para a tabela de conteúdos'; $lang['maxtoclevel'] = 'Nível máximo para a tabela de conteúdos'; diff --git a/lib/plugins/config/lang/pt/lang.php b/lib/plugins/config/lang/pt/lang.php index 8a9e8b698..d5ecce006 100644 --- a/lib/plugins/config/lang/pt/lang.php +++ b/lib/plugins/config/lang/pt/lang.php @@ -41,7 +41,7 @@ $lang['youarehere'] = 'Breadcrumbs hierárquicas'; $lang['typography'] = 'Executar substituições tipográficas'; $lang['htmlok'] = 'Permitir embeber HTML'; $lang['phpok'] = 'Permitir embeber PHP'; -$lang['dformat'] = 'Formato de Data (ver função PHP\'s date)'; +$lang['dformat'] = 'Formato de Data (ver função PHP\'s strftime)'; $lang['signature'] = 'Assinatura'; $lang['toptoclevel'] = 'Nível de topo para a tabela de conteúdo'; $lang['maxtoclevel'] = 'Máximo nível para a tabela de conteúdo'; diff --git a/lib/plugins/config/lang/ro/lang.php b/lib/plugins/config/lang/ro/lang.php index 9bbef0c86..9bb613bf6 100644 --- a/lib/plugins/config/lang/ro/lang.php +++ b/lib/plugins/config/lang/ro/lang.php @@ -44,7 +44,7 @@ $lang['youarehere'] = 'Structura ierarhică a "urmelor" lăsate'; $lang['typography'] = 'Fă înlocuiri topografice'; $lang['htmlok'] = 'Permite intercalare cod HTML'; $lang['phpok'] = 'Permite intercalare cod PHP'; -$lang['dformat'] = 'Format dată (vezi funcţia PHP date)'; +$lang['dformat'] = 'Format dată (vezi funcţia PHP strftime)'; $lang['signature'] = 'Semnătura'; $lang['toptoclevel'] = 'Primul nivel pentru cuprins'; $lang['maxtoclevel'] = 'Nivelul maxim pentru cuprins'; diff --git a/lib/plugins/config/lang/sv/lang.php b/lib/plugins/config/lang/sv/lang.php index 4ee012f2f..44ea4c857 100644 --- a/lib/plugins/config/lang/sv/lang.php +++ b/lib/plugins/config/lang/sv/lang.php @@ -48,7 +48,7 @@ $lang['youarehere'] = 'Hierarkiska spår'; $lang['typography'] = 'Aktivera typografiska ersättningar'; $lang['htmlok'] = 'Tillåt inbäddad HTML'; $lang['phpok'] = 'Tillåt inbäddad PHP'; -$lang['dformat'] = 'Datumformat (se PHP:s date-funktion)'; +$lang['dformat'] = 'Datumformat (se PHP:s strftime-funktion)'; $lang['signature'] = 'Signatur'; $lang['toptoclevel'] = 'Toppnivå för innehållsförteckning'; $lang['maxtoclevel'] = 'Maximal nivå för innehållsförteckning'; diff --git a/lib/plugins/config/lang/uk/lang.php b/lib/plugins/config/lang/uk/lang.php index de122915f..cf751213b 100644 --- a/lib/plugins/config/lang/uk/lang.php +++ b/lib/plugins/config/lang/uk/lang.php @@ -65,7 +65,7 @@ $lang['youarehere'] = 'Показувати "Ви тут"'; $lang['typography'] = 'Заміняти типографськи символи'; $lang['htmlok'] = 'Дозволити HTML'; $lang['phpok'] = 'Дозволити PHP'; -$lang['dformat'] = 'Формат дати (дивіться функцію date PHP)'; +$lang['dformat'] = 'Формат дати (дивіться функцію strftime PHP)'; $lang['signature'] = 'Підпис'; $lang['toptoclevel'] = 'Мінімальний рівень для змісту'; $lang['maxtoclevel'] = 'Максимальний рівень для змісту'; diff --git a/lib/plugins/config/lang/zh/lang.php b/lib/plugins/config/lang/zh/lang.php index accd85d47..e7f83151f 100644 --- a/lib/plugins/config/lang/zh/lang.php +++ b/lib/plugins/config/lang/zh/lang.php @@ -64,7 +64,7 @@ $lang['youarehere'] = '显示“您在这里”'; $lang['typography'] = '进行字符替换'; $lang['htmlok'] = '允许嵌入式 HTML'; $lang['phpok'] = '允许嵌入式 PHP'; -$lang['dformat'] = '日期格式(参见 PHP 的 date 功能)'; +$lang['dformat'] = '日期格式(参见 PHP 的 strftime 功能)'; $lang['signature'] = '签名样式'; $lang['toptoclevel'] = '目录的最顶层'; $lang['maxtoclevel'] = '目录的最多层次'; -- cgit v1.2.3