* mark all translatable strings with {{{_()}}}
This commit is contained in:
Jan Dittberner 2007-11-26 09:56:48 +00:00
parent 8567a8aaac
commit 83251502e9
3 changed files with 21 additions and 18 deletions

View file

@ -31,11 +31,10 @@ if (!isset($_SERVER['DavAdminConfDir'])) {
header('HTTP/1.0 500 Internal Server Error');
header('Status: 500 Internal Server Error');
header('Content-Type: text/plain;charset=utf8');
print("The Server is not configured correctly. " .
"Please tell your Administrator to set the " .
"DavAdminConfDir environment variable.");
print(_("The Server is not configured correctly. Please tell your Administrator to set the DavAdminConfDir environment variable."));
exit();
}
/** Include configuration information. */
require_once($_SERVER['DavAdminConfDir'] . '/config.inc.php');
@ -52,7 +51,7 @@ $smarty->compile_dir = $davconfig['compile_dir'];
/** Handle invalid requests to the application. */
function invalidCall() {
header("Content-Type: text/plain; charset=UTF-8");
print("Ungültiger Aufruf!");
print(_("Invalid call!"));
die();
}
@ -79,39 +78,45 @@ function getFullPath($dirname) {
// check configuration
$errmsgs = array();
if (!isset($davconfig['digest.file'])) {
array_push($errmsgs, 'digest.file is not defined.');
array_push($errmsgs,
_("digest.file is not defined."));
} elseif (!is_readable($davconfig['digest.file']) ||
!is_writable($davconfig['digest.file'])) {
array_push($errmsgs,
'The specified digest file is not readable and writable.');
_("The specified digest file is not readable and writable."));
}
if (!isset($davconfig['group.file'])) {
array_push($errmsgs, 'group.file is not defined.');
array_push($errmsgs,
_("group.file is not defined."));
} elseif (!is_readable($davconfig['group.file']) ||
!is_writable($davconfig['group.file'])) {
array_push($errmsgs,
'The specified group file is not readable and writable.');
_("The specified group file is not readable and writable."));
}
if (!isset($davconfig['namemap.file'])) {
array_push($errmsgs, 'namemap.file is not defined.');
array_push($errmsgs,
_("namemap.file is not defined."));
} elseif (!is_readable($davconfig['namemap.file']) ||
!is_writable($davconfig['namemap.file'])) {
array_push($errmsgs,
'The specified name mapping file is not readable and writable.');
_("The specified name mapping file is not readable and writable."));
}
if (!isset($davconfig['dav.dir'])) {
array_push($errmsgs, 'dav.dir is not defined.');
array_push($errmsgs,
_("dav.dir is not defined."));
} elseif (!is_dir($davconfig['dav.dir']) ||
!is_readable($davconfig['dav.dir']) ||
!is_writable($davconfig['dav.dir'])) {
array_push($errmsgs,
'The specified DAV directory is no directory or not accessable.');
_("The specified DAV directory is no directory or not accessable."));
}
if (empty($davconfig['dav.realm'])) {
array_push($errmsgs, 'dav.realm is not defined.');
array_push($errmsgs,
_("dav.realm is not defined."));
}
if (empty($davconfig['dav.uri'])) {
array_push($errmsgs, 'dav.uri is not defined.');
array_push($errmsgs,
_("dav.uri is not defined."));
}
if (!empty($errmsgs)) {
errorAsHtml(implode("<br />", $errmsgs));

View file

@ -111,7 +111,7 @@ function getDirectoryData($dirname) {
$dir['groups'] = getDirGroupsFromHtaccess($dirname);
list($dir['filecount'], $dir['filesize']) = countFilesRecursive(getFullPath($dirname));
$dir['maydelete'] = ($dir['filecount'] == 0) ? 1 : 0;
$dir['filesize'] = sprintf("%d kBytes", $dir['filesize'] / 1024);
$dir['filesize'] = sprintf(_("%d kBytes"), $dir['filesize'] / 1024);
return $dir;
}

View file

@ -31,9 +31,7 @@ if (!isset($_SERVER['DavAdminConfDir'])) {
header('HTTP/1.0 500 Internal Server Error');
header('Status: 500 Internal Server Error');
header('Content-Type: text/plain;charset=utf8');
print("The Server is not configured correctly. " .
"Please tell your Administrator to set the " .
"DavAdminConfDir environment variable.");
print(_("The Server is not configured correctly. Please tell your Administrator to set the DavAdminConfDir environment variable."));
exit();
}
/** Include configuration information. */