Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv20432
Modified Files:
comment.php index.php serendipity_lang_de.inc.php
serendipity_lang_en.inc.php
Log Message:
XHTML (lowercase attributes)
More language replacements.
Indenting/spacing.
Index: comment.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/comment.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- comment.php 8 Jul 2003 13:51:19 -0000 1.15
+++ comment.php 8 Jul 2003 14:40:00 -0000 1.16
@@ -108,14 +108,14 @@
'<a href="' . $_SERVER['PHP_SELF'] . '?serendipity[entry_id]=' . $serendipity['POST']['entry_id'] . '">',
'</a>',
- '<a href="#" onClick="self.close()">',
+ '<a href="#" onclick="self.close()">',
'</a>'
);
} else {
printf(
EMPTY_COMMENT,
- '<a href="#" onClick="history.go(-1)">',
+ '<a href="#" onclick="history.go(-1)">',
'</a>'
);
}
Index: index.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/index.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- index.php 8 Jul 2003 09:13:27 -0000 1.19
+++ index.php 8 Jul 2003 14:40:00 -0000 1.20
@@ -11,7 +11,7 @@
header('Content-Type: text/html; charset=ISO-8859-1');
$range = $matches[1];
$_GET['serendipity']['action'] = 'read';
- $_GET['serendipity']['range'] = $range;
+ $_GET['serendipity']['range'] = $range;
if (strlen($range) == 6) {
@@ -20,7 +20,7 @@
$date = date('d/m/Y', strtotime($range));
}
- $serendipity['blogSubTitle'] = "Entries for $date";
+ $serendipity['blogSubTitle'] = sprintf(ENTRIES_FOR, $date);
ob_start();
include_once('serendipity_genpage.inc.php');
$data = ob_get_contents();
@@ -37,8 +37,8 @@
header('Content-Type: text/html; charset=ISO-8859-1');
$range = $matches[1];
$_GET['serendipity']['action'] = 'read';
- $_GET['serendipity']['range'] = $range;
- $_GET['serendipity']['short'] = true;
+ $_GET['serendipity']['range'] = $range;
+ $_GET['serendipity']['short'] = true;
if (strlen($range) == 6) {
$date = date('m/Y', mktime(0,0,0, substr($range, 4, 6), 2, substr($range, 0, 4)));
@@ -46,7 +46,7 @@
$date = date('d/m/Y', strtotime($range));
}
- $serendipity['blogSubTitle'] = "Topics for $date";
+ $serendipity['blogSubTitle'] = sprintf(ENTRIES_FOR, $date);
ob_start();
include_once('serendipity_genpage.inc.php');
$data = ob_get_contents();
@@ -67,7 +67,7 @@
$track_referer = false;
$_GET['serendipity']['action'] = 'read';
- $_GET['serendipity']['id'] = $id;
+ $_GET['serendipity']['id'] = $id;
$title = serendipity_db_query("SELECT title FROM {$serendipity['dbPrefix']}entries " .
'WHERE id=' . serendipity_db_escape_string($id), true);
@@ -144,9 +144,7 @@
include_once("serendipity_genpage.inc.php");
}
} else {
-?>
-The document, <?php echo $uri; ?> was not found.
-<?php
+ printf(DOCUMENT_NOT_FOUND, $uri);
}
if ($track_referer) {
Index: serendipity_lang_de.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_lang_de.inc.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- serendipity_lang_de.inc.php 8 Jul 2003 13:51:19 -0000 1.14
+++ serendipity_lang_de.inc.php 8 Jul 2003 14:40:00 -0000 1.15
@@ -170,6 +170,9 @@
define('DIRECT_LINK', 'Direkter Link zu diesem Eintrag');
define('COMMENT_ADDED', 'Dein Kommentar wurde hinzugefügt. Klick %shier um zu den Kommentaren zurückzukehren%s und %shier um das Fenster zu schließen%s.');
define('EMPTY_COMMENT', 'Dein Kommentar enthielt nichts, bitte %sgeh zurück%s und versuch\'s nochmal');
+define('ENTRIES_FOR', 'Einträge am %s');
+define('TOPICS_FOR', 'Themen am %s');
+define('DOCUMENT_NOT_FOUND', 'Das Dokument %s wurde nicht gefunden.');
define('serendipity_LANG_LOADED', true);
/* vim: set sts=4 ts=4 expandtab : */
Index: serendipity_lang_en.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_lang_en.inc.php,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- serendipity_lang_en.inc.php 8 Jul 2003 13:51:19 -0000 1.18
+++ serendipity_lang_en.inc.php 8 Jul 2003 14:40:00 -0000 1.19
@@ -170,6 +170,9 @@
define('DIRECT_LINK', 'Direct link to this entry');
define('COMMENT_ADDED', 'Your comment was successfully added. Click %shere to return%s to the comments, and %shere to close%s this window.');
define('EMPTY_COMMENT', 'Your comment did not contain anything, please %sgo back%s and try again');
+define('ENTRIES_FOR', 'Entries for %s');
+define('TOPICS_FOR', 'Topics for %s');
+define('DOCUMENT_NOT_FOUND', 'The document %s was not found.');
define('serendipity_LANG_LOADED', true);
/* vim: set sts=4 ts=4 expandtab : */
|