german translation for galleryfunctions.php (addresses #43)
* add Makefile to generate gettext .pot, .po and .mo files * mark translatable texts in galleryfunctions.php
This commit is contained in:
parent
4090ea5881
commit
fafd016bae
5 changed files with 91 additions and 3 deletions
|
@ -40,7 +40,7 @@ $basedir = realpath(implode(DIRECTORY_SEPARATOR, array(dirname(__file__), '..'))
|
|||
$inifile = implode(DIRECTORY_SEPARATOR, array($basedir, 'gallery.ini'));
|
||||
|
||||
if (!file_exists($inifile)) {
|
||||
die("required $inifile not found.");
|
||||
die(sprintf(_("required %s not found."), $inifile));
|
||||
}
|
||||
$configuration = parse_ini_file($inifile);
|
||||
if (array_key_exists('logfile', $configuration)) {
|
||||
|
@ -273,7 +273,7 @@ function getScaledImage($galleryname, $basename, $maxdim, $scaletype) {
|
|||
default:
|
||||
header('Content-Type: text/plain');
|
||||
debug_print_backtrace();
|
||||
die('Unknown scaletype');
|
||||
die(_('Unknown scale type'));
|
||||
}
|
||||
|
||||
if ($scaleheight) {
|
||||
|
@ -287,7 +287,8 @@ function getScaledImage($galleryname, $basename, $maxdim, $scaletype) {
|
|||
// versuchen das Thumbnail-Verzeichnis anzulegen
|
||||
$mkdir = @mkdir($scaleddirpath, 0755);
|
||||
if (!$mkdir) {
|
||||
trigger_error("could not create directory $scaleddirpath.\n",
|
||||
trigger_error(sprintf(_("could not create directory %s.\n"),
|
||||
$scaleddirpath),
|
||||
E_USER_WARNING);
|
||||
return $galleryname . '/' . $basename;
|
||||
}
|
||||
|
|
Reference in a new issue