|
From: Jan N. <ja...@gn...> - 2000-10-20 07:57:01
|
On Friday, 20 October 2000, Arno Hollosi writes:
> I have finally rolled in Jan's patch.
> Some slight modifications were needed.
Okay, thanks. I've synced/merged and made a new patch with the
remaining translations (and internationalisations) that I did.
Greetings,
Jan.
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/lib/diff.php ./lib/diff.php
--- ../phpwiki/lib/diff.php Thu Oct 19 23:36:50 2000
+++ ./lib/diff.php Fri Oct 20 09:06:30 2000
@@ -1,4 +1,4 @@
-<!-- $Id: diff.php,v 1.2 2000/10/19 21:36:50 ahollosi Exp $ -->
+<!-- $Id: diff.php,v 1.9 2000/08/15 02:59:20 wainstead Exp $ -->
<?php
// diff.php
//
@@ -672,7 +672,7 @@
$x += -$edit;
}
if ($x != $xlim)
- die("WikiDiff::apply: line count mismatch: $x != $xlim");
+ die (sprintf (gettext ("WikiDiff::apply: line count mismatch: %s != %s"), $x, $xlim));
return $output;
}
@@ -732,7 +732,7 @@
{
$test = $this->apply($from_lines);
if (serialize($test) != serialize($to_lines))
- die("WikiDiff::_check: failed");
+ die (gettext ("WikiDiff::_check: failed"));
reset($this->edits);
$prev = current($this->edits);
@@ -742,11 +742,12 @@
{
$type = is_array($edit) ? 'a' : ($edit > 0 ? 'c' : 'd');
if ( $prevtype == $type )
- die("WikiDiff::_check: edit sequence is non-optimal");
+ die (gettext ("WikiDiff::_check: edit sequence is non-optimal"));
$prevtype = $type;
}
$lcs = $this->lcs();
- echo "<strong>WikiDiff Okay: LCS = $lcs</strong>\n";
+ printf ("<strong>" . gettext ("WikiDiff Okay: LCS = %s") . "</strong>", $lcs);
+ print ("\n");
}
}
@@ -984,28 +985,50 @@
// $dba = OpenDataBase($ArchivePageStore);
$archive= RetrievePage($dbi, $pagename, $ArchivePageStore);
- $html = '<table><tr><td align="right">Current page:</td>';
- if (is_array($wiki))
- $html .= "<td>version $wiki[version],</td><td>last modified on "
- . date($datetimeformat, $wiki['lastmodified'])
- . "</td><td>by $wiki[author]</td>";
- else
- $html .= "<td colspan=3><em>None</em></td>";
- $html .= '</tr><tr><td align="right">Archived page:</td>';
- if (is_array($archive))
- $html .= "<td>version $archive[version],</td><td>last modified on "
- . date($datetimeformat, $archive['lastmodified'])
- . "</td><td>by $archive[author]</td>";
- else
- $html .= "<td colspan=3><em>None</em></td>";
+ $html = '<table><tr><td align="right">';
+ $html .= gettext ("Current page:");
+ $html .= '</td>';
+ if (is_array($wiki)) {
+ $html .= "<td>";
+ $html .= sprintf (gettext ("version %s"), $wiki[version]);
+ $html .= "</td><td>";
+ $html .= sprintf (gettext ("last modified on %s"),
+ date($datetimeformat, $wiki['lastmodified']));
+ $html .= "</td><td>";
+ $html .= sprintf (gettext ("by %s"), $wiki[author]);
+ $html .= "</td>";
+ } else {
+ $html .= "<td colspan=3><em>";
+ $html .= gettext ("None");
+ $html .= "</em></td>";
+ }
+ $html .= "</tr>\n";
+ $html .= '<tr><td align="right">';
+ $html .= gettext ("Archived page:");
+ $html .= '</td>';
+ if (is_array($archive)) {
+ $html .= "<td>";
+ $html .= sprintf (gettext ("version %s"), $archive[version]);
+ $html .= "</td><td>";
+ $html .= sprintf (gettext ("last modified on %s"),
+ date($datetimeformat, $archive['lastmodified']));
+ $html .= "</td><td>";
+ $html .= sprintf (gettext ("by %"), $archive[author]);
+ $html .= "</td>";
+ } else {
+ $html .= "<td colspan=3><em>";
+ $html .= gettext ("None");
+ $html .= "</em></td>";
+ }
$html .= "</tr></table><p>\n";
-
if (is_array($wiki) && is_array($archive))
{
$diff = new WikiDiff($archive['content'], $wiki['content']);
- if ($diff->isEmpty())
- $html .= '<hr>[Versions are identical]';
+ if ($diff->isEmpty()) {
+ $html .= '<hr>';
+ $html .= gettext ("[Versions are identical]");
+ }
else
{
//$fmt = new WikiDiffFormatter;
@@ -1014,7 +1037,7 @@
}
}
- GeneratePage('MESSAGE', $html, sprintf(gettext("Diff of %s."),
- htmlspecialchars($pagename)), 0);
+ GeneratePage('MESSAGE', $html, sprintf (gettext ("Diff of %s."),
+ htmlspecialchars($pagename)), 0);
}
?>
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/lib/display.php ./lib/display.php
--- ../phpwiki/lib/display.php Thu Oct 19 23:36:50 2000
+++ ./lib/display.php Fri Oct 20 09:39:55 2000
@@ -1,4 +1,4 @@
-<!-- $Id: display.php,v 1.3 2000/10/19 21:36:50 ahollosi Exp $ -->
+<!-- $Id: display.php,v 1.8 2000/08/29 02:37:42 aredridel Exp $ -->
<?php
/*
display.php: render a page. This has all the display
@@ -11,7 +11,7 @@
if ($argv[0]) {
$pagename = rawurldecode($argv[0]);
} else {
- $pagename = gettext("FrontPage");
+ $pagename = gettext ("FrontPage");
// if there is no FrontPage, create a basic set of Wiki pages
if (! IsWikiPage($dbi, $pagename)) {
@@ -26,10 +26,11 @@
if (is_array($pagehash)) {
// we render the page if it's a hash, else ask the user to write one.
// This file returns a variable $html containing all the HTML markup
- include("lib/transform.php");
+ include "lib/transform.php";
} else {
- $html .= sprintf(gettext("Describe %s here."),
- "$pagename<a href='$ScriptUrl?edit=$enc_name'>?</a>");
+ $html .= sprintf (gettext ("Describe %s here."),
+ "$pagename<a href='$ScriptUrl?edit=$enc_name'>?</a>");
+ $html .= '\n';
}
GeneratePage('BROWSE', $html, $pagename, $pagehash);
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/lib/editlinks.php ./lib/editlinks.php
--- ../phpwiki/lib/editlinks.php Sun Oct 8 19:33:26 2000
+++ ./lib/editlinks.php Fri Oct 13 12:30:03 2000
@@ -1,4 +1,4 @@
-<!-- $Id: editlinks.php,v 1.1 2000/10/08 17:33:26 wainstead Exp $ -->
+<!-- $Id: editlinks.php,v 1.7 2000/08/29 02:37:42 aredridel Exp $ -->
<?php
// Thanks to Alister <al...@mi...> for this code.
// This allows an arbitrary number of reference links.
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/lib/editpage.php ./lib/editpage.php
--- ../phpwiki/lib/editpage.php Fri Oct 20 00:25:45 2000
+++ ./lib/editpage.php Fri Oct 20 09:09:40 2000
@@ -1,4 +1,4 @@
-<!-- $Id: editpage.php,v 1.3 2000/10/19 22:25:45 ahollosi Exp $ -->
+<!-- $Id: editpage.php,v 1.13 2000/08/29 02:37:42 aredridel Exp $ -->
<?php
// editpage relies on $pagename and $ScriptUrl
@@ -16,21 +16,24 @@
if (get_magic_quotes_gpc()) {
$pagename = stripslashes($pagename);
}
- $banner = htmlspecialchars("Copy of $pagename");
+ $banner = htmlspecialchars (sprintf (gettext ("Copy of %s"), $pagename));
$pagehash = RetrievePage($dbi, $pagename, $ArchivePageStore);
- } else
- ExitWiki("No page name passed into editpage!");
+ } else {
+ ExitWiki (gettext ("No page name passed into editpage!"));
+ }
if (is_array($pagehash)) {
if (($pagehash['flags'] & FLAG_PAGE_LOCKED) && !$admin_edit) {
- $html = "<p>This page has been locked by the administrator\n" .
- "and cannot be edited.\n" .
- "<p>Sorry for the inconvinience.\n";
- GeneratePage('MESSAGE', $html, "Problem while editing $pagename", 0);
- ExitWiki('');
+ $html = "<p>";
+ $html .= gettext ("This page has been locked by the administrator and cannot be edited.");
+ $html .= "\n<p>";
+ $html .= gettext ("Sorry for the inconvinience.");
+ $html .= "\n";
+ GeneratePage('MESSAGE', $html, sprintf (gettext ("Problem while editing %s"), $pagename), 0);
+ ExitWiki ("");
}
$textarea = implode("\n", $pagehash["content"]);
@@ -44,8 +47,8 @@
$pagehash["copy"] = 1;
}
} else {
- $textarea = sprintf(gettext("Describe %s here."),
- htmlspecialchars($pagename));
+ $textarea = sprintf (gettext ("Describe %s here."),
+ htmlspecialchars($pagename));
unset($pagehash);
$pagehash["version"] = 0;
}
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/lib/fullsearch.php ./lib/fullsearch.php
--- ../phpwiki/lib/fullsearch.php Sun Oct 8 19:33:26 2000
+++ ./lib/fullsearch.php Wed Oct 18 13:54:44 2000
@@ -1,4 +1,4 @@
-<!-- $Id: fullsearch.php,v 1.1 2000/10/08 17:33:26 wainstead Exp $ -->
+<!-- $Id: fullsearch.php,v 1.10 2000/09/21 19:21:25 ahollosi Exp $ -->
<?php
/*
Search the text of pages for a match.
@@ -11,8 +11,10 @@
if(get_magic_quotes_gpc())
$full = stripslashes($full);
- $result = "<P><B>Searching for \"" . htmlspecialchars($full) .
- "\" ....</B></P>\n<DL>\n";
+ $result = "<P><B>";
+ $result .= sprintf (gettext ("Searching for \"%s\" ....."),
+ htmlspecialchars($full));
+ $result .= "</B></P>\n<DL>\n";
// quote regexp chars
$full = preg_quote($full);
@@ -38,6 +40,9 @@
}
}
- $result .= "</dl>\n<hr noshade>$found matches found in $count pages.\n";
- GeneratePage('MESSAGE', $result, "Full Text Search Results", 0);
+ $result .= "</dl>\n<hr noshade>";
+ $result .= sprintf (gettext ("%d matches found in %d pages."),
+ $found, $count);
+ $result .= "\n";
+ GeneratePage('MESSAGE', $result, gettext ("Full Text Search Results"), 0);
?>
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/lib/msql.php ./lib/msql.php
--- ../phpwiki/lib/msql.php Fri Oct 20 00:25:45 2000
+++ ./lib/msql.php Fri Oct 20 09:14:11 2000
@@ -1,4 +1,4 @@
-<!-- $Id: msql.php,v 1.2 2000/10/19 22:25:45 ahollosi Exp $ -->
+<!-- $Id: msql.php,v 1.16 2000/09/16 19:20:46 wainstead Exp $ -->
<?php
/*
@@ -26,14 +26,16 @@
global $msql_db;
if (! ($dbc = msql_connect())) {
- $msg = "Cannot establish connection to database, giving up.";
- $msg .= "<BR>Error message: " . msql_error();
- ExitWiki($msg);
+ $msg = gettext ("Cannot establish connection to database, giving up.");
+ $msg .= "<BR>";
+ $msg .= sprintf (gettext ("Error message: %s"), msql_error ());
+ ExitWiki ($msg);
}
if (!msql_select_db($msql_db, $dbc)) {
- $msg = "Cannot open database $msql_db, giving up.";
- $msg .= "<BR>Error message: " . msql_error();
- ExitWiki($msg);
+ $msg = gettext ("Cannot open database %s, giving up.");
+ $msg .= "<BR>";
+ $msg .= sprintf (gettext ("Error message: %s"), msql_error ());
+ ExitWiki ($msg);
}
$dbi['dbc'] = $dbc;
@@ -194,8 +196,10 @@
// first, insert the metadata
$retval = msql_query($query, $dbi['dbc']);
- if ($retval == false)
- echo "Insert/update failed: ", msql_error(), "<br>\n";
+ if ($retval == false) {
+ printf (gettext ("Insert/update failed: %s"), msql_error ());
+ printf ("<br>\n");
+ }
// second, insert the page data
@@ -203,8 +207,11 @@
$query = "delete from $dbi[page_table] where pagename='$pagename'";
// echo "Delete query: $query<br>\n";
$retval = msql_query($query, $dbi['dbc']);
- if ($retval == false)
- echo "Delete on $dbi[page_table] failed: ", msql_error(), "<br>\n";
+ if ($retval == false) {
+ printf (gettext ("Delete on %s failed: %s"), $dbi[page_table],
+ msql_error());
+ printf ("<br>\n");
+ }
// insert the new lines
reset($pagehash["content"]);
@@ -217,8 +224,8 @@
// echo "Page line insert query: $query<br>\n";
$retval = msql_query($query, $dbi['dbc']);
if ($retval == false)
- echo "Insert into $dbi[page_table] failed: ",
- msql_error(), "<br>\n";
+ printf (gettext ("Insert into %s failed: %s"), $dbi[page_table],
+ msql_error() "<br>\n");
}
@@ -267,7 +274,7 @@
// first, insert the metadata
$retval = msql_query($query, $dbi['dbc']);
if ($retval == false)
- echo "Insert/update failed: ", msql_error(), "<br>\n";
+ printf (gettext ("Insert/update failed: %s"), msql_error() . "<br>\n");
// second, insert the page data
@@ -275,8 +282,11 @@
$query = "delete from $ArchivePageStore[page_table] where pagename='$pagename'";
// echo "Delete query: $query<br>\n";
$retval = msql_query($query, $dbi['dbc']);
- if ($retval == false)
- echo "Delete on $ArchivePageStore[page_table] failed: ", msql_error(), "<br>\n";
+ if ($retval == false) {
+ printf (gettext ("Delete on %s failed: %s"),
+ $ArchivePageStore[page_table], msql_error());
+ print ("<br>\n");
+ }
// insert the new lines
reset($pagehash["content"]);
@@ -288,10 +298,11 @@
"VALUES('$pagename', $x, '$line')";
// echo "Page line insert query: $query<br>\n";
$retval = msql_query($query, $dbi['dbc']);
- if ($retval == false)
- echo "Insert into $ArchivePageStore[page_table] failed: ",
- msql_error(), "<br>\n";
-
+ if ($retval == false) {
+ printf (gettext ("Insert into %s failed: %s"),
+ $ArchivePageStore[page_table], msql_error());
+ printf ("<br>\n");
+ }
}
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/lib/mysql.php ./lib/mysql.php
--- ../phpwiki/lib/mysql.php Fri Oct 20 00:25:45 2000
+++ ./lib/mysql.php Fri Oct 20 09:17:06 2000
@@ -1,4 +1,4 @@
-<?php rcs_id('$Id: mysql.php,v 1.2 2000/10/19 22:25:45 ahollosi Exp $');
+<?php rcs_id('$Id: mysql.php,v 1.16 2000/09/23 14:31:06 ahollosi Exp $');
/*
Database functions:
@@ -30,14 +30,16 @@
global $mysql_server, $mysql_user, $mysql_pwd, $mysql_db;
if (!($dbc = mysql_pconnect($mysql_server, $mysql_user, $mysql_pwd))) {
- $msg = "Cannot establish connection to database, giving up.";
- $msg .= "<br>MySQL error: " . mysql_error();
- ExitWiki($msg);
+ $msg = gettext ("Cannot establish connection to database, giving up.");
+ $msg .= "<BR>";
+ $msg .= sprintf (gettext ("MySQL error: %s"), msql_error ());
+ ExitWiki ($msg);
}
if (!mysql_select_db($mysql_db, $dbc)) {
- $msg = "Cannot open database, giving up.";
- $msg .= "<br>MySQL error: " . mysql_error();
- ExitWiki($msg);
+ $msg = gettext ("Cannot open database, giving up.");
+ $msg .= "<BR>";
+ $msg .= sprintf (gettext ("MySQL error: %s"), msql_error ());
+ ExitWiki ($msg);
}
$dbi['dbc'] = $dbc;
$dbi['table'] = $dbname;
@@ -108,8 +110,9 @@
if (!mysql_query("replace into $dbi[table] ($COLUMNS) values ($VALUES)",
$dbi['dbc'])) {
- $msg = "Error writing page '$pagename' " . mysql_error();
- ExitWiki($msg);
+ $msg = sprintf (gettext ("error writing page '%s'"), $pagename);
+ echo mysql_error ();
+ ExitWiki ("");
}
}
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/lib/pageinfo.php ./lib/pageinfo.php
--- ../phpwiki/lib/pageinfo.php Thu Oct 19 23:36:50 2000
+++ ./lib/pageinfo.php Fri Oct 20 09:17:35 2000
@@ -1,4 +1,4 @@
-<!-- $Id: pageinfo.php,v 1.3 2000/10/19 21:36:50 ahollosi Exp $ -->
+<!-- $Id: pageinfo.php,v 1.7 2000/08/29 02:37:42 aredridel Exp $ -->
<!-- Display the internal structure of a page. Steve Wainstead, June 2000 -->
<?php
if (get_magic_quotes_gpc()) {
@@ -63,5 +63,5 @@
// $dbi = OpenDataBase($ArchivePageStore);
$html .= ViewPageProps($info, $ArchivePageStore);
- GeneratePage('MESSAGE', $html, gettext("PageInfo").": '$info'", 0);
+ GeneratePage('MESSAGE', $html, gettext("PageInfo"), 0);
?>
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/lib/savepage.php ./lib/savepage.php
--- ../phpwiki/lib/savepage.php Thu Oct 19 23:36:50 2000
+++ ./lib/savepage.php Fri Oct 13 12:35:17 2000
@@ -1,4 +1,4 @@
-<!-- $Id: savepage.php,v 1.2 2000/10/19 21:36:50 ahollosi Exp $ -->
+<!-- $Id: savepage.php,v 1.16 2000/08/29 02:37:42 aredridel Exp $ -->
<?php
/*
@@ -57,8 +57,8 @@
// create page header
$enc_url = rawurlencode($pagename);
$enc_name = htmlspecialchars($pagename);
- $html = sprintf(gettext("Thank you for editing %s."),
- "<a href=\"$ScriptUrl?$enc_url\">$enc_name</a>");
+ $html = sprintf (gettext ("Thank you for editing %s."),
+ "<a href=\"$ScriptUrl?$enc_url\">$enc_name</a>");
$html .= "<br>\n";
if (! empty($content)) {
@@ -98,7 +98,7 @@
}
$html .= "<P><img src=\"$SignatureImg\"></P><hr noshade><P>";
- include("lib/transform.php");
+ include "lib/transform.php";
GeneratePage('BROWSE', $html, $pagename, $pagehash);
?>
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/lib/search.php ./lib/search.php
--- ../phpwiki/lib/search.php Sun Oct 8 19:33:26 2000
+++ ./lib/search.php Fri Oct 13 12:30:03 2000
@@ -1,4 +1,4 @@
-<!-- $Id: search.php,v 1.1 2000/10/08 17:33:26 wainstead Exp $ -->
+<!-- $Id: search.php,v 1.6 2000/08/29 02:37:42 aredridel Exp $ -->
<?php
// Title search: returns pages having a name matching the search term
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/lib/setupwiki.php ./lib/setupwiki.php
--- ../phpwiki/lib/setupwiki.php Sun Oct 8 19:33:26 2000
+++ ./lib/setupwiki.php Fri Oct 13 15:15:38 2000
@@ -1,6 +1,6 @@
-<!-- $Id: setupwiki.php,v 1.1 2000/10/08 17:33:26 wainstead Exp $ -->
+<!-- $Id: setupwiki.php,v 1.15 2000/08/29 02:37:42 aredridel Exp $ -->
<?php
-require 'lib/ziplib.php';
+require "lib/ziplib.php";
function SavePage ($dbi, $page, $source)
{
@@ -18,8 +18,10 @@
SaveCopyToArchive($dbi, $pagename, $current);
}
- printf("Inserting page <b>%s</b>, version %s from %s<br>\n",
- htmlspecialchars($pagename), $version, $source);
+ printf (gettext ("Inserting page %s, version %s from %s"),
+ "<b>" . htmlspecialchars ($pagename) . "</b>", $version, $source);
+ print ("<br>\n");
+
flush();
InsertPage($dbi, $pagename, $page);
}
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/lib/stdlib.php ./lib/stdlib.php
--- ../phpwiki/lib/stdlib.php Fri Oct 20 00:25:45 2000
+++ ./lib/stdlib.php Fri Oct 20 09:38:50 2000
@@ -1,4 +1,4 @@
-<!-- $Id: stdlib.php,v 1.3 2000/10/19 22:25:45 ahollosi Exp $ -->
+<!-- $Id: stdlib.php,v 1.29 2000/09/23 14:31:06 ahollosi Exp $ -->
<?php
/*
Standard functions for Wiki functionality
@@ -17,7 +17,7 @@
UpdateRecentChanges($dbi, $pagename, $isnewpage)
ParseAndLink($bracketlink)
ExtractWikiPageLinks($content)
- ExitWiki($errormsg)
+ ExitWiki($errormsg)
*/
@@ -33,7 +33,10 @@
CloseDataBase($dbi);
if($errormsg <> '') {
- print "<P><hr noshade><h2>WikiFatalError</h2>\n";
+ $msg = "<P><hr noshade><h2>";
+ $msg .= gettext("WikiFatalError");
+ $msg .= "</h2>\n";
+ print ($msg);
print $errormsg;
print "\n</BODY></HTML>";
}
@@ -49,7 +52,9 @@
$links = GetWikiPageLinks($dbi, $pagename);
- $txt = "<b>" . NUM_RELATED_PAGES . " best incoming links:</b>\n";
+ $txt = "<b>";
+ $txt .= sprintf (gettext ("%d best incoming links:"), NUM_RELATED_PAGES);
+ $txt .= "</b>\n";
for($i = 0; $i < NUM_RELATED_PAGES; $i++) {
if(isset($links['in'][$i])) {
list($name, $score) = $links['in'][$i];
@@ -57,7 +62,9 @@
}
}
- $txt .= "\n<br><b>" . NUM_RELATED_PAGES . " best outgoing links:</b>\n";
+ $txt .= "\n<br><b>";
+ $txt .= sprintf (gettext ("%d best outgoing links:"), NUM_RELATED_PAGES);
+ $txt .= "</b>\n";
for($i = 0; $i < NUM_RELATED_PAGES; $i++) {
if(isset($links['out'][$i])) {
list($name, $score) = $links['out'][$i];
@@ -66,7 +73,9 @@
}
}
- $txt .= "\n<br><b>" . NUM_RELATED_PAGES . " most popular nearby:</b>\n";
+ $txt .= "\n<br><b>";
+ $txt .= sprintf (gettext ("%d most popular nearby:"), NUM_RELATED_PAGES);
+ $txt .= "</b>\n";
for($i = 0; $i < NUM_RELATED_PAGES; $i++) {
if(isset($links['popular'][$i])) {
list($name, $score) = $links['popular'][$i];
@@ -279,7 +288,7 @@
$stack->push($tag);
if ($stack->cnt() > 10) {
// arbitrarily limit tag nesting
- ExitWiki("Stack bounds exceeded in SetHTMLOutputMode");
+ ExitWiki (gettext ("Stack bounds exceeded in SetHTMLOutputMode"));
}
}
@@ -314,8 +323,9 @@
$stack->push($tag);
}
- } else { // error
- ExitWiki("Passed bad tag depth value in SetHTMLOutputMode");
+ } else {
+ // error
+ ExitWiki ("Passed bad tag depth value in SetHTMLOutputMode");
}
return $retvar;
@@ -333,7 +343,8 @@
global $ScriptUrl;
global $WikiPageStore;
- $recentchanges = RetrievePage($dbi, gettext("RecentChanges"), $WikiPageStore);
+ $recentchanges = RetrievePage($dbi, gettext ("RecentChanges"),
+ $WikiPageStore);
// this shouldn't be necessary, since PhpWiki loads
// default pages if this is a new baby Wiki
@@ -395,7 +406,7 @@
$recentchanges["content"] = $newpage;
- InsertPage($dbi, gettext("RecentChanges"), $recentchanges);
+ InsertPage($dbi, gettext ("RecentChanges"), $recentchanges);
}
@@ -506,5 +517,5 @@
}
return $wikilinks;
- }
+ }
?>
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/lib/ziplib.php ./lib/ziplib.php
--- ../phpwiki/lib/ziplib.php Sun Oct 8 19:33:26 2000
+++ ./lib/ziplib.php Fri Oct 13 12:32:57 2000
@@ -1,4 +1,4 @@
-<?php rcs_id("$Id: ziplib.php,v 1.1 2000/10/08 17:33:26 wainstead Exp $");
+<?php rcs_id("$Id: ziplib.php,v 1.7 2000/08/29 02:37:42 aredridel Exp $");
//FIXME: get rid of this.
function warn ($msg)
Binary files ../phpwiki/locale/nl/LC_MESSAGES/phpwiki.mo and ./locale/nl/LC_MESSAGES/phpwiki.mo differ
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/locale/nl/LC_MESSAGES/phpwiki.php ./locale/nl/LC_MESSAGES/phpwiki.php
--- ../phpwiki/locale/nl/LC_MESSAGES/phpwiki.php Thu Oct 19 23:49:52 2000
+++ ./locale/nl/LC_MESSAGES/phpwiki.php Fri Oct 20 09:42:04 2000
@@ -2,25 +2,95 @@
$locale["./pgsrc"] =
"./locale/nl/pgsrc";
$locale["templates/browse.html"] =
- "./locale/nl/templates/browse.html";
+ "locale/nl/templates/browse.html";
$locale["templates/editpage.html"] =
- "./locale/nl/templates/editpage.html";
+ "locale/nl/templates/editpage.html";
$locale["templates/editlinks.html"] =
- "./locale/nl/templates/editlinks.html";
+ "locale/nl/templates/editlinks.html";
$locale["templates/message.html"] =
- "./locale/nl/templates/message.html";
+ "locale/nl/templates/message.html";
+$locale["WikiDiff::apply: line count mismatch: %s != %s"] =
+ "";
+$locale["WikiDiff::_check: failed"] =
+ "";
+$locale["WikiDiff::_check: edit sequence is non-optimal"] =
+ "";
+$locale["WikiDiff Okay: LCS = %s"] =
+ "";
+$locale["Current page:"] =
+ "Huidige pagina:";
+$locale["version %s"] =
+ "versie %s";
+$locale["last modified on %s"] =
+ "laatste verandering op %s";
+$locale["by %s"] =
+ "door %s";
+$locale["None"] =
+ "Geen";
+$locale["Archived page:"] =
+ "Gearchiveerde pagina:";
+$locale["by %"] =
+ "door %s";
+$locale["[Versions are identical]"] =
+ "[Versies zijn identiek]";
$locale["Diff of %s."] =
"Diff van %s.";
$locale["FrontPage"] =
"VoorPagina";
$locale["Describe %s here."] =
"Beschrijf %s hier.";
+$locale["Copy of %s"] =
+ "Kopie van %s";
+$locale["No page name passed into editpage!"] =
+ "Geen paginanaam doorgegeven aan veranderpagina";
+$locale["This page has been locked by the administrator and cannot be edited."] =
+ "";
+$locale["Sorry for the inconvinience."] =
+ "Excuses voor het ongemak.";
+$locale["Problem while editing %s"] =
+ "Probleem tijdens veranderen %s";
+$locale["Searching for \"%s\" ....."] =
+ "Zoeken naar \"%s\" ...";
+$locale["%d matches found in %d pages."] =
+ "%d keer gevonden in %d pagina's.";
+$locale["Full Text Search Results"] =
+ "Volledige tekst zoek resultaten";
+$locale["Cannot establish connection to database, giving up."] =
+ "Kan verbinding naar data base niet tot stand brengen, geef op.";
+$locale["Error message: %s"] =
+ "Foutboodschap: %s";
+$locale["Cannot open database %s, giving up."] =
+ "Kan data base %s niet openen, geef op.";
+$locale["Insert/update failed: %s"] =
+ "Insert/update gefaald: %s";
+$locale["Delete on %s failed: %s"] =
+ "Delete op %s gefaald: %s";
+$locale["Insert into %s failed: %s"] =
+ "Insert in %s gefaald: %s";
+$locale["MySQL error: %s"] =
+ "MySQL fout: %s";
+$locale["Cannot open database, giving up."] =
+ "Kan data base niet openen, geef op.";
+$locale["error writing page '%s'"] =
+ "fout bij schrijven pagina `%s'";
$locale["PageInfo"] =
"PaginaInfo";
$locale["Thank you for editing %s."] =
"Bedankt voor het veranderen van %s.";
$locale["Your careful attention to detail is much appreciated."] =
"Je zorgvuldige aandacht voor detail wordt erg gewaardeerd.";
+$locale["Inserting page %s, version %s from %s"] =
+ "Voeg pagina %s toe, versie %s van %s";
+$locale["WikiFatalError"] =
+ "WikiFataleFout";
+$locale["%d best incoming links:"] =
+ "%d beste inkomende koppelingen:";
+$locale["%d best outgoing links:"] =
+ "%d beste uitgaande koppelingen:";
+$locale["%d most popular nearby:"] =
+ "%d meest gevraagde in de buurt:";
+$locale["Stack bounds exceeded in SetHTMLOutputMode"] =
+ "";
$locale["RecentChanges"] =
"RecenteVeranderingen";
?>
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/locale/nl/pgsrc/HoeWikiTeGebruiken ./locale/nl/pgsrc/HoeWikiTeGebruiken
--- ../phpwiki/locale/nl/pgsrc/HoeWikiTeGebruiken Thu Oct 19 23:36:50 2000
+++ ./locale/nl/pgsrc/HoeWikiTeGebruiken Fri Oct 13 15:17:39 2000
@@ -1,36 +1,53 @@
-''"Wiki wiki"'' means "quick" in Hawai'ian.
+''"Wiki wiki"'' betekent "vlug" in het Hawaiiaans.
-'''All you really need to know is:'''
+'''Alles wat je echt moet weten is:'''
- * To edit any page click on the Edit Text link at the bottom of
-the page. You should do that right now, and read the source code of this
-page. It will make more sense.
- * You get italics by surrounding words with two single quotes on
-either side ''like this''.
- * You get '''bold text''' by using three quotes on either side.
- * And, '''''bold italics''''' with five.
- * You get bullets by using a tab and an asterisk *
- * If you use Windows, you can't use your tab key. It's Bill Gates's fault. But you can check the little box that says Convert Spaces To Tabs. You can type a bunch of spaces and the Wiki will recognize them as a tab.
- * To have plain monospaced font, indent with a space:
+ * Om een pagina te veranderen, klik op de Verander Tekst koppeling
+onderaan de desbetreffende pagina. Doe dat nu maar, en lees de bron tekst
+van deze pagina. Dat is wat zinvoller.
+ * Je maakt schuingedrukte tekst door woorden tussen enkele
+aanhalingtekens te zetten ''zoals dit''.
+ * Je maakt '''vette tekst''' door aan weerszijden drie
+aanhalingtekens te gebruiken.
+ * En, '''''vet schuingedrukt''''' met vijf.
+ * Je maakt punten met een tab en een sterretje *.
+ * Als je Windows gebruikt, dan werkt je tab toets niet. Dat is de
+schuld van Bill Gates. Maar je kunt het kleine knopje indrukken, genaamd
+Vertaal Spaties Naar Tabs. Je kunt een stel spaties tiepen die Wiki dan
+herkent als ware ze een tab.
+ * Om een gewoon, niet proportioneel font te krijgen, spring in met een
+spatie:
+
+ dit is een gedicht
+ niet over proportioneel
+ niks rijmt op gedicht
+ wat rijmt op niet proportioneel
- this is a poem
- about monospacing
- nothing rhymes with poem
- nothing rhymes with monospacing
+ * Je kunt alinea's van elkaar scheiden met een lege regel. Voorbeeld:
- * You can seperate paragraphs with an extra blank line. Example:
+Ik ben een alinea.
-I am a paragraph.
+Ik ben ook een aline. We zijn gewoon erg korte alinea's.
-I am a paragraph too. We're just very small paragraphs.
-
-
- * You can get horizontal rules with four or more dashes like this:
+ * Je maakt een horizontale lijn met vier of meer streepjes zoals hier:
----
- * To create hyperlinks you just capitalize the words and string them together. Let's say you want to create a page about how Steve Wainstead eats worms. All you have to do is capitalize each word and string them together like this: SteveWainsteadEatsWorms. If the page does not exist yet a question mark appears after the link, inviting you to create the page: ThisPageShouldNotExist. (And please don't ruin the example by creating one.)
- * To link to pages outside the Wiki, you can just type in the URL and Wiki will link it for you: http://www.nytimes.com/
-* To put images in, just provide the hyperlink in brackets like this: [[http://www.yourhost.yourdomain/images/picture.png]. Image URLs not in brackets will just appear as hyperlinks to the image.
- * Now you are ready to begin AddingPages.
+ * Om hyperkoppelingen te maken hoef je slechts de woorden met
+hoofdletters en aan elkaar te schrijven. Laten we zeggen dat je een pagina
+wilt maken over die Jan Nieuwenhuizen eet wormen. Het enige dat je hoeft
+te doen is elk woord met een hoofdletter beginen en ze aan elkaar schrijven:
+JanNieuwenhuizenEetWormen. Als de pagina nog niet bestaat, verschijnt er een
+vraagteken achter de koppeling, die je uitnodigt om de pagina aan te maken:
+DezePaginaMagNietBestaan. (Verpest dit voorbeeld nou alsjeblieft niet door
+er een aan te maken.)
+ * Om naar pagina's buiten de Wiki te koppelen, tiep je gewoon de URL
+in en Wiki maakt de koppelinig voor jou: http://www.volkskrant.nl/.
+ * Om plaatjes in te voegen, zet de koppeling gewoon tussen vierkante
+haken zoals hier: [http://www.jouwgastheer.jouwdomein/plaatjes/figuur.png].
+URLs naar plaatjes die niet tussen vierkante haken staan, verschijnen als
+een gewone koppeling naar het plaatje.
+ * Nu ben je klaar om te beginnen met PaginasToevoegen.
----
-A WikiWikiWeb is meant to be fast and easy to edit. It has very simple markup that you can read about in TextFormattingRules.
+Een WikiWikiWeb is bedoeld om snel en gemakkelijk te kunnen veranderen. Het
+heeft een erg eenvoudige f...
[truncated message content] |
|
From: Jan N. <ja...@gn...> - 2000-10-22 21:00:32
|
On Sunday, 22 October 2000, Arno Hollosi writes:
> > Here's the remaining translations -- just did a new update -d.
>
> I've committed them. I followed your suggestion and added a bit to
> setupwiki.php, so that some generic (English) pages will always be uploaded
> into the wiki, no matter which language is used. Currently these are:
> ReleaseNotes, TestPage, and SteveWainstead. According pages removed from
> locale/nl/pgsrc/
Ok.
> I've not included this hack. If you have read the docs carefully it says
> something like: instead of doing multiple mysql_result for getting one row,
> you should use mysql_fetch_row. Well, where mysql_result is used now only one
+
> value is fetched -- mysql_fetch_row is not necessarily better here. If it
> breaks for other people as well, I will change it.
Ah, ok. Fine. I assume this is a temporary bug, some inconsistancy
between php/mysql, whatever. Just so that you know about it.
Greetings,
Jan.
--
Jan Nieuwenhuizen <ja...@gn...> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org
|
|
From: Jan N. <ja...@gn...> - 2000-10-22 19:13:05
|
On Friday, 20 October 2000, Arno Hollosi writes:
> Curiously enough, the patch did not apply cleanly. Maybe an error on my side.
> As a result I may have omitted some of the beautification patches.
Hmm, strange. I think I did a checkout just before. Cvs looks ok.
Here's the remaining translations -- just did a new update -d.
Oh, there's another thing: I've also changed (a bit as a hack)
the fetch function for mysql, because `mysql_result' seems
now broken over here. The doco says mysql_fetch_row is better
anyway..
Greetings,
Jan.
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/lib/mysql.php ./lib/mysql.php
--- ../phpwiki/lib/mysql.php Fri Oct 20 15:22:03 2000
+++ ./lib/mysql.php Sun Oct 22 16:33:27 2000
@@ -23,6 +23,15 @@
SetWikiPageLinks($dbi, $pagename, $linklist)
*/
+ // This morning, seemingly suddenly, my Wiki broke down. The only
+ // way I could get it up again was by avoiding mysql_result.
+ // This should do no harm, but maybe we should integrate this.
+ // YMMV. -- jcn
+ function FixMysqlResult ($res, $row) {
+ list($first) = mysql_fetch_row ($res);
+ return $first;
+ }
+
// open a database and return the handle
// ignores MAX_DBM_ATTEMPTS
@@ -129,7 +138,7 @@
function IsWikiPage($dbi, $pagename) {
$pagename = addslashes($pagename);
if ($res = mysql_query("select count(*) from $dbi[table] where pagename='$pagename'", $dbi['dbc'])) {
- return(mysql_result($res, 0));
+ return(FixMysqlResult($res, 0));
}
return 0;
}
@@ -139,7 +148,7 @@
$pagename = addslashes($pagename);
if ($res = mysql_query("select count(*) from $ArchivePageStore where pagename='$pagename'", $dbi['dbc'])) {
- return(mysql_result($res, 0));
+ return(FixMysqlResult($res, 0));
}
return 0;
}
@@ -160,7 +169,7 @@
{
$res = mysql_query("select hits from hitcount where pagename='$pagename'", $dbi['dbc']);
if (mysql_num_rows($res))
- $hits = mysql_result($res, 0);
+ $hits = FixMysqlResult($res, 0);
else
$hits = "0";
@@ -223,7 +232,7 @@
$res = mysql_query("select pagename from wiki", $dbi["dbc"]);
$rows = mysql_num_rows($res);
for ($i = 0; $i < $rows; $i++) {
- $pages[$i] = mysql_result($res, $i);
+ $pages[$i] = FixMysqlResult($res, $i);
}
return $pages;
}
Binary files ../phpwiki/locale/nl/LC_MESSAGES/phpwiki.mo and ./locale/nl/LC_MESSAGES/phpwiki.mo differ
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/locale/nl/pgsrc/GoedeStijl ./locale/nl/pgsrc/GoedeStijl
--- ../phpwiki/locale/nl/pgsrc/GoedeStijl Thu Oct 19 23:36:50 2000
+++ ./locale/nl/pgsrc/GoedeStijl Sun Oct 22 16:28:23 2000
@@ -1,13 +1,15 @@
-"Young writers often suppose that style is a garnish for the meat of
-prose, a sauce by which a dull dish is made palatable. Style has no such
-separate entity; it is nondetachable, unfilterable. The beginner should
-approach style warily, realizing that it is himself he is approaching, no
-other; and he should begin by turning resolutely away from all devices
-that are popularly believed to indicate style--all mannerisms, tricks,
-adornments. The approach to style is by way of plainness, simplicity,
-orderliness, sincerity."
+"Beginnende schrijvers veronderstellen nogal eens dat stijl een laagje vernis
+is voor de broodtekst van de proza, als een sausje dat rauwe bonen zoet maakt.
+Stijl staat echter niet op zichzelf; het is onlosmakelijk, verweven. De
+beginneling moet stijl behoedzaam benaderen, zich realiserend dat hij zelf
+degene is die naderbij komt, niet andersom; en hij moet beginnen met het
+resoluut de rug toekeren van alle zaken die gewoonlijk beschouwd worden
+als indicators van stijl --- alle hebbelijkheden, truukjes, versiersels.
+De aanpak van stijl is gewoon, eenvoudig, opgeruimd en oprecht."
---Strunk and White, "The Elements of Style"
+--Strunk en White, "The Elements of Style"
-''And thus an American textbook, typical required reading for 10th-grade English students, unknowingly extols some virtues of WabiSabi''
+''En daarom toont een amerikaans leerboek, tiepiese verplichte leerstof voor
+vierde klas middelbare school, zonder het te weten bepaalde deugden van
+WabiSabi''
--scummings
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/locale/nl/pgsrc/HoeWikiTeGebruiken ./locale/nl/pgsrc/HoeWikiTeGebruiken
--- ../phpwiki/locale/nl/pgsrc/HoeWikiTeGebruiken Fri Oct 20 15:22:03 2000
+++ ./locale/nl/pgsrc/HoeWikiTeGebruiken Sun Oct 22 16:43:01 2000
@@ -2,10 +2,10 @@
'''Alles wat je echt moet weten is:'''
- * Om een pagina te veranderen, klik op de Verander Tekst koppeling
-onderaan de desbetreffende pagina. Doe dat nu maar, en lees de bron tekst
-van deze pagina. Dat is wat zinvoller.
- * Je maakt schuingedrukte tekst door woorden tussen enkele
+ * Om een pagina te veranderen, klik op de Verander Tekst
+koppeling onderaan de desbetreffende pagina. Doe dat nu maar, en lees
+de bron tekst van deze pagina. Dat is wat zinvoller.
+ * Je maakt cursieve tekst door woorden tussen enkele
aanhalingtekens te zetten ''zoals dit''.
* Je maakt '''vette tekst''' door aan weerszijden drie
aanhalingtekens te gebruiken.
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/locale/nl/pgsrc/JanNieuwenhuizen ./locale/nl/pgsrc/JanNieuwenhuizen
--- ../phpwiki/locale/nl/pgsrc/JanNieuwenhuizen Fri Oct 20 15:22:03 2000
+++ ./locale/nl/pgsrc/JanNieuwenhuizen Sun Oct 22 16:29:17 2000
@@ -1,4 +1,4 @@
Hallo. Ik heb dit WikiWikiWeb geinternationaliseerd en de eerste nederlandse
-vertaling gemaakt. Ik ben soms op http://www.xs4all.nl/~jantien.
+vertaling gemaakt. Ik ben te vinden op http://www.xs4all.nl/~jantien.
-Meldt onjuistheden in de vertaling aan mailto:ja...@gn....
+Stuur verbeteringen voor deze vertaling aan mailto:ja...@gn....
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/locale/nl/pgsrc/MeerOverTechnieken ./locale/nl/pgsrc/MeerOverTechnieken
--- ../phpwiki/locale/nl/pgsrc/MeerOverTechnieken Thu Oct 19 23:36:50 2000
+++ ./locale/nl/pgsrc/MeerOverTechnieken Sun Oct 22 16:01:23 2000
@@ -1,17 +1,16 @@
-PhpWiki is written in the server-side scripting language PHP, available from http://www.php.net/. PHP resembles C and Perl in its syntax, and functions much like ASP, EmbPerl or JSP.
+PhpWiki is geschreven in de server-zijde scripttaal PHP, die verkrijgbaar is op http://www.php.net/. PHP lijkt kwa syntax op C en Perl en functioneert goed vergelijkbaar met ASP, EmbPerl of JSP.
-PhpWiki consists of a dozen or so files of mixed PHP and HTML. The web pages that make up a WikiWikiWeb based on PHP live in a DBM file with backup copies of previous versions of pages stored in a second DBM file.
+PhpWiki bestaat uit een tal bestanden met een mengsel van PHP en HTML. De webpagina's waaruit het WikiWikiWeb gebaseerd op PHP bestaat, komen uit een data base, waarin ook backups van vorige versies worden bewaard.
-Every time a user hits the site the page requested is pulled from the DBM and rendered on the fly. The user only ever requests the file index.php3, which then decides which other php files to include.
+Steeds wanneer een gebruiker de site bezoekt, wordt de gevraagde pagina uit de data base gehaald en weergegeven. De gebruiker vraagt enkel altijd het bestand index.php op, dat dan beslist welke andere php bestanden worden ingevoegd.
-Links to pages in the wiki are automatically linked: PhpWiki. This might be the single most compelling aspect of a wiki, the ability to add pages simply by linking to them. The next most compelling thing is how easily external URL's link:
- # http://www.wcsb.org/
- # ftp://ftp.redhat.com/
- # news://news.mozilla.org/
-
-Combined with one namespace and a simple markup, a Wiki exhibits many of the characteristics of WabiSabi.
+Koppelingen naar pagina's in de Wiki worden automaties gemaakt: PhpWiki. Dit zou best wel eens het aantrekkelijkste onderdeel van een Wiki kunnen zijn, de mogelijkheid van pagina's toevoegen, enkel door het maken van een koppeling. Het op een na aantrekkelijkst is het gemak waarmee externe URL's gekoppeld kunnen worden:
-PhpWiki is licensed under the Gnu General Public license, which you should be able to see here: http://www.gnu.org/copyleft/gpl.txt.
+ # http://www.lilypond.org/
+ # ftp://ftp.nl.debian.org/
+ # news://news.mozilla.org/
+Gecombineerd met een enkele naamruimte en eenvoudige opmaak, vertoont een Wiki vele karakteristieken van WabiSabi.
+PhpWiki wordt uitgebracht onder de GNU Algemene Openbare Licentie ([GNU General Public License | http://www.gnu.org/copyleft/gpl.html]).
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/locale/nl/pgsrc/PaginasToevoegen ./locale/nl/pgsrc/PaginasToevoegen
--- ../phpwiki/locale/nl/pgsrc/PaginasToevoegen Fri Oct 20 15:22:03 2000
+++ ./locale/nl/pgsrc/PaginasToevoegen Sun Oct 22 16:38:27 2000
@@ -1,14 +1,12 @@
Voor het toevoegen van een nieuwe pagina aan Wiki, hoef je alleen maar een
zinvolle titel de bedenken, de woorden met een hoofdletter te beginnen, en
-ZeAanElkaarTeSchrijvenZoalsDit. Wiki herkent dit automagisch als een
+ZeAanElkaarTeSchrijvenZoalsDit. Wiki herkent dit automagies als een
koppeling.
Daarna kun je verder gaan en HetVraagtekenAanKlikken vlak na je nieuwe
koppeling, dan geeft Wiki je een venster voor het maken van de nieuwe pagina.
-If you wish to add documents with complex markup to the Wiki, you might be better off providing a URL to it than trying to add the text of the document here, like so:
-
-Als je documenten met een gecompliceerde opmaak aan Wiki toe wilt voegen,
+Als je documenten met een ingewikkelde opmaak aan de Wiki toe wilt voegen,
kun je misschien beter een URL geven dan de tekst van het document hier
in proberen te tiepen, zoals:
@@ -18,5 +16,5 @@
zien er gewoon uit als tekst.</tags> De bedoeling van Wiki is zo eenvoudig
mogelijk zijn, om gebruik aan te moedigen.
-Noot dat er een kunstje is dat je systeembeheerder aan kan zetten om
+Merk op dat er een kunstje is dat je systeembeheerder aan kan zetten om
ingebedde HTML toe te staan, maar hier zijn beveiligingsrisiko's mee gemoeid.
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/locale/nl/pgsrc/RecenteBezoekers ./locale/nl/pgsrc/RecenteBezoekers
--- ../phpwiki/locale/nl/pgsrc/RecenteBezoekers Fri Oct 20 15:22:03 2000
+++ ./locale/nl/pgsrc/RecenteBezoekers Sun Oct 22 17:41:22 2000
@@ -1,6 +1,6 @@
Onderteken hieronder met naam en datum!
-Jeff Dairiki, Arno Hollosi, SteveWainstead, Php Wiki authors
-JanNieuwenhuizen, Php Wiki internationaliseerder en vertaler.
+Jeff Dairiki, Arno Hollosi, SteveWainstead, Php Wiki authors,
+JanNieuwenhuizen, Php Wiki internationalisatie en vertaling.
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/locale/nl/pgsrc/SteveWainstead ./locale/nl/pgsrc/SteveWainstead
--- ../phpwiki/locale/nl/pgsrc/SteveWainstead Fri Oct 20 15:49:54 2000
+++ ./locale/nl/pgsrc/SteveWainstead Thu Jan 1 01:00:00 1970
@@ -1,5 +0,0 @@
-Hi. I built this WikiWikiWeb. I'm at http://wcsb.org/~swain/.
-
-Please report bugs to mailto:php...@li...
-
-
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/locale/nl/pgsrc/TekstFormatteringsRegels ./locale/nl/pgsrc/TekstFormatteringsRegels
--- ../phpwiki/locale/nl/pgsrc/TekstFormatteringsRegels Fri Oct 20 15:22:03 2000
+++ ./locale/nl/pgsrc/TekstFormatteringsRegels Sun Oct 22 17:08:22 2000
@@ -56,15 +56,15 @@
'''Nadruk'''
- * Gebruik twee enkele aanhalingtekens ('') voor nadruk (meestal
-schuin).
+ * Gebruik twee paar enkele aanhalingtekens ('') voor nadruk (meestal
+cursief).
- * Gebuik drie enkele aanhalingtekens (''') voor sterke nadruk (meestal
-vet).
+ * Gebuik drie paar enkele aanhalingtekens (''') voor sterke nadruk
+(meestal vet).
- * Gebruik vijf enkele aanhalingstekens ('''''), of drie binnen dubbele,
-voor een ander soort van nadruk (VetSchuinInWiki), maar wees voorzichtig met
-luizen in de Wiki nadruk logica...
+ * Gebruik vijf paar enkele aanhalingstekens ('''''), of drie binnen
+dubbele, voor een ander soort van nadruk (VetCursiefInWiki), maar wees
+op je hoede voor luizen in de Wiki nadruk logica...
* Nadruk kan meerdere malen in een regel worden gebruikt, maar kan
regelbreuken niet oversteken.
@@ -94,7 +94,7 @@
per pagina uniek.
* De oude manier van URL koppeling wordt nog steeds ondersteund:
-tiep voor de URLs "http:", "ftp:' of "mailto:" ome een automatische koppeling
+tiep voor de URLs "http:", "ftp:' of "mailto:" ome een automatiese koppeling
te maken, als in: http://c2.com/.
* URLs die eindigen op .png worden ingebed ''wanneer ingevoerd als
@@ -110,6 +110,6 @@
* De & tekens werken toch niet.
* Als je nou echt zo nodig HTML moet gebruiken, begin elke regel met
-een staaf (|). Noot dat dit kunstje mogelijk gemaakt moet worden door
+een staaf (|). Merk op dat dit kunstje mogelijk gemaakt moet worden door
de systeembeheerder.
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/locale/nl/pgsrc/TestPagina ./locale/nl/pgsrc/TestPagina
--- ../phpwiki/locale/nl/pgsrc/TestPagina Fri Oct 20 15:22:03 2000
+++ ./locale/nl/pgsrc/TestPagina Sun Oct 22 16:43:00 2000
@@ -64,21 +64,21 @@
----
Opmaak testen:
-__onderstreep voor vet__
+__onderstreept voor vet__
'''aanhalingtekens voor vet'''
-''aanhalingstekens voor schuin''
+''aanhalingstekens voor cursief''
-__''onderstreep vet schuin''__
+__''onderstreept vet cursief''__
'''''vijf aanhalingtekens vet schuin'''''
''''''zes aanhalingtekens''''''
-'''''Vet schuin''' en schuin'' (luizig)
+'''''Vet cursief''' en cursief'' (luizig)
-'''Vet en ''vet-schuin''''' (ook luizig)
+'''Vet en ''vet-cursief''''' (ook luizig)
! k1
@@ -96,21 +96,21 @@
----
geformatteerde tekst:
- __onderstreep voor vet__
+ __onderstreept voor vet__
'''aanhalingtekens voor vet'''
- ''aanhalingstekens voor schuin''
+ ''aanhalingstekens voor cursief''
- __''onderstreep vet schuin''__
+ __''onderstreept vet cursief''__
- '''''vijf aanhalingtekens vet schuin'''''
+ '''''vijf aanhalingtekens vet cursief'''''
''''''zes aanhalingtekens''''''
- '''''Vet schuin''' en schuin'' (luizig)
+ '''''Vet cursief''' en cursief'' (luizig)
- '''Vet en ''vet-schuin''''' (ook luizig)
+ '''Vet en ''vet-cursief''''' (ook luizig)
! k1
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/locale/nl/pgsrc/UitgaveNoten ./locale/nl/pgsrc/UitgaveNoten
--- ../phpwiki/locale/nl/pgsrc/UitgaveNoten Thu Oct 19 23:36:50 2000
+++ ./locale/nl/pgsrc/UitgaveNoten Fri Oct 20 15:39:01 2000
@@ -1,39 +1,3 @@
-PhpWiki 1.1.6 is a major revision of PhpWiki. The ability to have themes (via an
-easy-to-edit template system) has been added; the schema for MySQL has been
-completely overhauled, breaking the page details into columns (for efficiency we
-agreed not to put references in a separate table, so it's not completely
-normalized. "Don't let the best be the enemy of the good.")
-
-Postgresql support has been added and the markup language is evolving, now allowing
-!<h1>
-!!<h2>
-!!!<h3>
-tags and __a new way to make text bold__, and of course the
-[new linking scheme].
-
-There is a new feature on all pages called ''more info'' that gives you a low level
-detailed view of a page, which is probably more useful for debugging than anything.
-
-As we move towards a 1.2 release we will be adding logging, top ten most active
-pages and other new features with the new database schema (and yes, these features
-will make it into the DBM version too). I also want to add mSQL support and test it
-under Zend, the new PHP4.
-
-Below are the release notes for version 1.03, the last release of the 1.0 PhpWiki
-series. --Steve Wainstead, mailto:sw...@pa...
-
-----
-
-PhpWiki was written because I am so interested in WikiWikiWebs, and I haven't used PHP since version 2.0. I wanted to see how it had advanced.
-
-Version 1.0 is a near-perfect clone of the Portland Pattern Repository, http://c2.com/cgi-bin/wiki?WikiWikiWeb. In truth, I was using the Wiki script you can download from there as a model; that Wiki lacks a number of features the PPR has, like EditCopy. So in truth PhpWiki is a kind of hybrid of the PPR and the generic Wiki you can get from there (which is written in Perl).
-
-The one caveat of PhpWiki is the allowance of HTML if the line is preceded by a bar (or pipe, which is how I usually say it). (That's a '|'). It was very simple to add, and the idea came from a posting somewhere on the PPR about how AT&T had an internal Wiki clone and used the same technique. The ability to embed HTML is disabled by default for security reasons.
-
-Version 1.01 includes a patch that fixes a small error with rendering <hr> lines. Thanks to Gerry Barksdale.
-
-See the HISTORY file for a rundown on the whole development process if that sort of thing really interests you :-)
-
---SteveWainstead
+Zie ook ReleaseNotes.
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/locale/nl/pgsrc/WabiSabi ./locale/nl/pgsrc/WabiSabi
--- ../phpwiki/locale/nl/pgsrc/WabiSabi Fri Oct 20 15:22:04 2000
+++ ./locale/nl/pgsrc/WabiSabi Sun Oct 22 17:28:56 2000
@@ -5,7 +5,7 @@
"neemt ruwweg dezelfde positie in het japanse pantheon van esthetiese waarden
in als de griekse idealen van schoonheid en perfectie in het westen."
-Wabi-sabi een schoonheid van onvoltooide, vergankelijke en onvolledige dingen.
+Wabi-sabi een schoonheid van onvolmaakte, vergankelijke en onvolledige dingen.
Het is de schoonheid van nederige en bescheiden dingen.
@@ -21,7 +21,7 @@
naar en denken over dingen en het bestaan.
*Alle dingen zijn belangrijk
- *Alle dingen zijn onvoltooid
+ *Alle dingen zijn onvolmaakt
*Alle dingen zijn onvolledig
Materiele kenmerken van wabi-sabi:
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/locale/nl/pgsrc/WikiWikiWeb ./locale/nl/pgsrc/WikiWikiWeb
--- ../phpwiki/locale/nl/pgsrc/WikiWikiWeb Fri Oct 20 15:22:04 2000
+++ ./locale/nl/pgsrc/WikiWikiWeb Sun Oct 22 17:28:59 2000
@@ -7,11 +7,11 @@
''Maak het Verandertekst formulier eenvoudig en de ZoekPagina snel.''
''Naast het vlug zijn, aspireert deze plaats ook de idealen van Zen in het
-algemeen, genaamd WikiSabi. Zen vindt schoonheid in het onvoltooide en
-vergankelijke. Uiteindelijk is dat alles wat je nodig hebt.''
+algemeen, genaamd WikiSabi. Zen vindt schoonheid in het onvolmaakte en
+kortstondige. Uiteindelijk is dat alles wat je nodig hebt.''
-Je kunt gedag zeggen op RecenteBoekers, of lezen over HoeWikiTeGebruiken en hoe
-je PaginasToevoegen kan.
+Je kunt gedag zeggen op RecenteBezoekers, of lezen over HoeWikiTeGebruiken
+en hoeje PaginasToevoegen kan.
Momenteel is er voor deze Wiki geen discussie "onderwerp", dus ga je gang,
speel ermee en vermaak je.
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/locale/nl/pgsrc/ZoekPagina ./locale/nl/pgsrc/ZoekPagina
--- ../phpwiki/locale/nl/pgsrc/ZoekPagina Thu Oct 19 23:36:50 2000
+++ ./locale/nl/pgsrc/ZoekPagina Sun Oct 22 16:38:26 2000
@@ -1,7 +1,7 @@
Hier zijn een paar goede plaatsen om te beginnen met bladeren.
* HoeWikiTeGebruiken maakt snel wegwijs in Wiki.
- * RecenteVeranderingen worden automatisch bijgehouden.
+ * RecenteVeranderingen worden automaties bijgehouden.
* MeerOverTechnieken van het bladeren en veranderen van deze server.
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/locale/nl/templates/editlinks.html ./locale/nl/templates/editlinks.html
--- ../phpwiki/locale/nl/templates/editlinks.html Sun Oct 22 19:12:49 2000
+++ ./locale/nl/templates/editlinks.html Sun Oct 22 19:19:24 2000
@@ -9,9 +9,9 @@
<form method="POST" action="###SCRIPTURL###">
<h1><a href="###SCRIPTURL###"><img src="###LOGO###" border=0 alt="[phpwiki]" width=50 height=50></a>
-Edit ###PAGE### Links
-<input type="submit" value=" Save ">
-<input type="reset" value=" Reset "></h1>
+Verander ###PAGE### Koppelingen
+<input type="submit" value=" Bewaar ">
+<input type="reset" value=" Herstel "></h1>
<P>
[1] <input type="text" size="55" name="r1" value="###R1###"><br>
@@ -28,8 +28,8 @@
[12] <input type="text" size="55" name="r12" value="###R12###"><br>
<p>
-Type the full URL (http:// ...) for each reference cited in the text.
-<BR>Protocols allowed are: ###ALLOWEDPROTOCOLS###
+Tiep de volledige URL (http:// ...) voor elke referentie in de tekst.
+<BR>Toegestane protokollen: ###ALLOWEDPROTOCOLS###
<input type="hidden" name="post" value="###PAGEURL###">
</form>
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/locale/po/nl.po ./locale/po/nl.po
--- ../phpwiki/locale/po/nl.po Fri Oct 20 15:22:04 2000
+++ ./locale/po/nl.po Sun Oct 22 17:30:06 2000
@@ -10,7 +10,7 @@
msgid ""
msgstr ""
"Project-Id-Version: phpwiki 1.1.7\n"
-"POT-Creation-Date: 2000-10-20 13:43+0200\n"
+"POT-Creation-Date: 2000-10-22 17:30+0200\n"
"PO-Revision-Date: 2000-09-30 02:23+0200\n"
"Last-Translator: Jan Nieuwenhuizen <ja...@gn...>\n"
"Language-Team: Dutch <nl...@li...>\n"
@@ -140,7 +140,7 @@
msgid "Full Text Search Results"
msgstr "Volledige tekst zoek resultaten"
-#: lib/msql.php:29 lib/mysql.php:33
+#: lib/msql.php:29 lib/mysql.php:42
msgid "Cannot establish connection to database, giving up."
msgstr "Kan verbinding naar data base niet tot stand brengen, geef op."
@@ -149,7 +149,7 @@
msgid "Error message: %s"
msgstr "Foutboodschap: %s"
-#: lib/msql.php:35 lib/mysql.php:39
+#: lib/msql.php:35 lib/mysql.php:48
#, c-format
msgid "Cannot open database %s, giving up."
msgstr "Kan data base %s niet openen, geef op."
@@ -169,12 +169,12 @@
msgid "Insert into %s failed: %s"
msgstr "Insert in %s gefaald: %s"
-#: lib/mysql.php:35 lib/mysql.php:41 lib/mysql.php:115
+#: lib/mysql.php:44 lib/mysql.php:50 lib/mysql.php:124
#, c-format
msgid "MySQL error: %s"
msgstr "MySQL fout: %s"
-#: lib/mysql.php:113
+#: lib/mysql.php:122
#, c-format
msgid "Error writing page '%s'"
msgstr "Fout bij schrijven pagina `%s'"
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/locale/po/phpwiki.pot ./locale/po/phpwiki.pot
--- ../phpwiki/locale/po/phpwiki.pot Fri Oct 20 15:22:04 2000
+++ ./locale/po/phpwiki.pot Sun Oct 22 17:30:06 2000
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2000-10-20 13:43+0200\n"
+"POT-Creation-Date: 2000-10-22 17:30+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL...@li...>\n"
@@ -133,7 +133,7 @@
msgid "Full Text Search Results"
msgstr ""
-#: lib/msql.php:29 lib/mysql.php:33
+#: lib/msql.php:29 lib/mysql.php:42
msgid "Cannot establish connection to database, giving up."
msgstr ""
@@ -142,7 +142,7 @@
msgid "Error message: %s"
msgstr ""
-#: lib/msql.php:35 lib/mysql.php:39
+#: lib/msql.php:35 lib/mysql.php:48
#, c-format
msgid "Cannot open database %s, giving up."
msgstr ""
@@ -162,12 +162,12 @@
msgid "Insert into %s failed: %s"
msgstr ""
-#: lib/mysql.php:35 lib/mysql.php:41 lib/mysql.php:115
+#: lib/mysql.php:44 lib/mysql.php:50 lib/mysql.php:124
#, c-format
msgid "MySQL error: %s"
msgstr ""
-#: lib/mysql.php:113
+#: lib/mysql.php:122
#, c-format
msgid "Error writing page '%s'"
msgstr ""
diff -urN --exclude=CVS --exclude=*~ --exclude=#* ../phpwiki/locale/translate.sh ./locale/translate.sh
--- ../phpwiki/locale/translate.sh Fri Oct 20 15:22:03 2000
+++ ./locale/translate.sh Sun Oct 22 17:36:18 2000
@@ -11,6 +11,11 @@
# * Translators, after making a translation update
#
+if [ ! -f index.php ]; then
+ echo Usage: ./locale/translate.sh
+ exit 2
+fi
+
ALL_LINGUAS=nl
xgettext -L C++ -o locale/po/phpwiki.pot lib/*php
@@ -19,6 +24,12 @@
po=$podir/$i.po
pot=$podir/phpwiki.pot
locale=locale/$i/LC_MESSAGES
+
+ # Include the English pages too.
+ # This way we won't get a zillion copies of ReleaseNotes,
+ # SteveWainstead etc, and can always refer to them.
+ # (maybe we should do this in php code?)
+ # (cd locale/$i/pgsrc && ln -s ../../../pgsrc/* .)
msgmerge -o $po $po $pot
mkdir -p locale/$i/LC_MESSAGES
--
Jan Nieuwenhuizen <ja...@gn...> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org
|
|
From: Arno H. <aho...@in...> - 2000-10-22 19:59:21
|
> Here's the remaining translations -- just did a new update -d. I've committed them. I followed your suggestion and added a bit to setupwiki.php, so that some generic (English) pages will always be uploaded into the wiki, no matter which language is used. Currently these are: ReleaseNotes, TestPage, and SteveWainstead. According pages removed from locale/nl/pgsrc/ > Oh, there's another thing: I've also changed (a bit as a hack) > the fetch function for mysql, because `mysql_result' seems > now broken over here. The doco says mysql_fetch_row is better > anyway.. I've not included this hack. If you have read the docs carefully it says something like: instead of doing multiple mysql_result for getting one row, you should use mysql_fetch_row. Well, where mysql_result is used now only one value is fetched -- mysql_fetch_row is not necessarily better here. If it breaks for other people as well, I will change it. /Arno |
|
From: Arno H. <aho...@in...> - 2000-10-20 11:57:26
|
Jan wrote: > Okay, thanks. I've synced/merged and made a new patch with the > remaining translations (and internationalisations) that I did. I committed the patch. There were one or two small errors in it. Also, I made some slight modifications (e.g. MySQL uses the same error message as msql now). Curiously enough, the patch did not apply cleanly. Maybe an error on my side. As a result I may have omitted some of the beautification patches. /Arno |