diff options
author | Andreas Gohr <gohr@cosmocode.de> | 2009-10-07 15:36:14 +0200 |
---|---|---|
committer | Andreas Gohr <gohr@cosmocode.de> | 2009-10-07 15:36:14 +0200 |
commit | f22635779b10fe3735a11bc1af5c88653e580534 (patch) | |
tree | 03322ac39a0a7a644340b45417125ea4c8275b51 /inc/lang | |
parent | c57e365ef97272cc08601374e4de2f5bcd614335 (diff) | |
download | rpg-f22635779b10fe3735a11bc1af5c88653e580534.tar.gz rpg-f22635779b10fe3735a11bc1af5c88653e580534.tar.bz2 |
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
Diffstat (limited to 'inc/lang')
-rw-r--r-- | inc/lang/de/lang.php | 7 | ||||
-rw-r--r-- | inc/lang/en/lang.php | 12 |
2 files changed, 13 insertions, 6 deletions
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 <b>%s</b>. Sie können auch <a href="%s">die Änderungen im gesamten Wiki sehen</a>.'; + +$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 <b>%s</b> namespace. You can also <a href="%s">view the recent changes of the whole wiki</a>.'; -$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 : |