summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlisps <stummp@loewen.de>2013-11-22 13:45:20 +0100
committerlisps <stummp@loewen.de>2013-11-22 13:45:20 +0100
commit4c3263af6652b0a479e2c742914eb67a7929b9b9 (patch)
tree3dc672f5717aaa4d169a963ffc1c04a9538a47d8
parent4eb5e17453694b80e84a83a6960d02ac63cfa320 (diff)
downloadrpg-4c3263af6652b0a479e2c742914eb67a7929b9b9.tar.gz
rpg-4c3263af6652b0a479e2c742914eb67a7929b9b9.tar.bz2
localize msg
-rw-r--r--doku.php3
-rw-r--r--inc/lang/en/lang.php1
2 files changed, 3 insertions, 1 deletions
diff --git a/doku.php b/doku.php
index e90f8bea2..be6ab81f8 100644
--- a/doku.php
+++ b/doku.php
@@ -54,7 +54,8 @@ if($DATE_AT) {
if($rev_t === '') {
$REV = '';
} else if ($rev_t === false) {
- msg('Seite gab es zu diesem Zeitpunkt noch nicht');
+ $rev_n = $pagelog->getRelativeRevision($DATE_AT,+1);
+ msg(sprintf($lang['page_nonexist_rev'], $DATE_AT,$rev_n));
$REV = $DATE_AT;
} else {
$REV = $rev_t;
diff --git a/inc/lang/en/lang.php b/inc/lang/en/lang.php
index 73b9981d2..ad887f4c4 100644
--- a/inc/lang/en/lang.php
+++ b/inc/lang/en/lang.php
@@ -365,4 +365,5 @@ $lang['currentns'] = 'Current namespace';
$lang['searchresult'] = 'Search Result';
$lang['plainhtml'] = 'Plain HTML';
$lang['wikimarkup'] = 'Wiki Markup';
+$lang['page_nonexist_rev'] = "Page has not existed with revision %d, try %d";
//Setup VIM: ex: et ts=2 :