Update of /cvsroot/phpwiki/phpwiki/lib/WikiDB/backend
In directory usw-pr-cvs1:/tmp/cvs-serv19712/phpwiki/lib/WikiDB/backend
Modified Files:
dbaBase.php
Log Message:
gettext-ified error messages with sprintf(_("%s"),$v)
Index: dbaBase.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/WikiDB/backend/dbaBase.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** dbaBase.php 2001/09/18 19:16:23 1.1
--- dbaBase.php 2001/12/19 08:54:10 1.2
***************
*** 328,332 ****
$okeys[] = $key;
else {
! trigger_error("Bad key in linktable: '$key'", E_USER_WARNING);
$ikeys[] = $key;
}
--- 328,332 ----
$okeys[] = $key;
else {
! trigger_error(sprintf(_("Bad key in linktable: '%s'"),$key), E_USER_WARNING);
$ikeys[] = $key;
}
***************
*** 350,354 ****
for ($key = $db->firstkey(); $key; $key = $db->nextkey()) {
if (strlen($key) < 1 || ($key[0] != 'i' && $key[0] != 'o')) {
! $errs[] = "Bad key '$key' in table";
continue;
}
--- 350,354 ----
for ($key = $db->firstkey(); $key; $key = $db->nextkey()) {
if (strlen($key) < 1 || ($key[0] != 'i' && $key[0] != 'o')) {
! $errs[] = sprintf(_("Bad key '%s' in table"),$key);
continue;
}
***************
*** 358,362 ****
foreach($this->_get_links('o', $page) as $link) {
if (!$this->_has_link('i', $link, $page))
! $errs[] = "backlink entry missing for link '$page'->'$link'";
}
}
--- 358,362 ----
foreach($this->_get_links('o', $page) as $link) {
if (!$this->_has_link('i', $link, $page))
! $errs[] = sprintf(_("backlink entry missing for link '%s'->'%s'"),$page,$link);
}
}
***************
*** 366,370 ****
foreach($this->_get_links('i', $page) as $link) {
if (!$this->_has_link('o', $link, $page))
! $errs[] = "link entry missing for backlink '$page'<-'$link'";
}
}
--- 366,370 ----
foreach($this->_get_links('i', $page) as $link) {
if (!$this->_has_link('o', $link, $page))
! $errs[] = sprintf(_("link entry missing for backlink '%s'<-'%s'"),$page,$link);
}
}
|