From f22635779b10fe3735a11bc1af5c88653e580534 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Wed, 7 Oct 2009 15:36:14 +0200 Subject: New dformat() function for fuzzy date support Ignore-this: 7193cd788fee2c05a9068bf6edd5dc17 It is now possible to use the %f placeholder in $conf['dformat'] to add a fuzzy age string. Template developers and plugin authors should replace their strftime + $conf['dformat'] calls with calls to the new dformat() function. Example: %Y/%m/%d %H:%M (%f) produces dates like this: 2009/09/16 10:36 (3 weeks ago) darcs-hash:20091007133614-6e07b-677108d1b43928ef8fd886813e43514507b5e073.gz --- inc/lang/de/lang.php | 7 +++++++ inc/lang/en/lang.php | 12 ++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) (limited to 'inc/lang') diff --git a/inc/lang/de/lang.php b/inc/lang/de/lang.php index 530b0bc24..1ab03e4c1 100644 --- a/inc/lang/de/lang.php +++ b/inc/lang/de/lang.php @@ -247,3 +247,10 @@ $lang['mu_filetypes'] = 'Erlaubte Dateitypen'; $lang['mu_info'] = 'Dateien hochgeladen!'; $lang['mu_lasterr'] = 'Letzter Fehler:'; $lang['recent_global'] = 'Im Moment sehen Sie die Änderungen im Namensraum %s. Sie können auch die Änderungen im gesamten Wiki sehen.'; + +$lang['years'] = 'vor %d Jahren'; +$lang['months'] = 'vor %d Monaten'; +$lang['weeks'] = 'vor %d Wochen'; +$lang['days'] = 'vor %d Tagen'; +$lang['hours'] = 'vor %d Stunden'; +$lang['seconds'] = 'vor %d Sekunden'; diff --git a/inc/lang/en/lang.php b/inc/lang/en/lang.php index fbde8cab0..dfe45bf83 100644 --- a/inc/lang/en/lang.php +++ b/inc/lang/en/lang.php @@ -269,11 +269,11 @@ $lang['mu_lasterr'] = 'Last error:'; $lang['recent_global'] = 'You\'re currently watching the changes inside the %s namespace. You can also view the recent changes of the whole wiki.'; -$lang['years'] = '%d years'; -$lang['months'] = '%d months'; -$lang['weeks'] = '%d weeks'; -$lang['days'] = '%d days'; -$lang['hours'] = '%d hours'; -$lang['seconds'] = '%d seconds'; +$lang['years'] = '%d years ago'; +$lang['months'] = '%d months ago'; +$lang['weeks'] = '%d weeks ago'; +$lang['days'] = '%d days ago'; +$lang['hours'] = '%d hours ago'; +$lang['seconds'] = '%d seconds ago'; //Setup VIM: ex: et ts=2 enc=utf-8 : -- cgit v1.2.3