Commit aac05b7e authored by Franco Fichtner's avatar Franco Fichtner

inc: gettext() woes

parent d941a2eb
...@@ -1543,7 +1543,7 @@ function update_alias_url_data() ...@@ -1543,7 +1543,7 @@ function update_alias_url_data()
if (file_exists("{$temp_filename}/aliases")) { if (file_exists("{$temp_filename}/aliases")) {
$fd = @fopen("{$temp_filename}/aliases", 'r'); $fd = @fopen("{$temp_filename}/aliases", 'r');
if (!$fd) { if (!$fd) {
log_error(gettext("Could not process aliases from alias: {$alias_url}")); log_error(sprintf(_('Could not process aliases from alias: %s'), $alias_url));
continue; continue;
} }
/* NOTE: fgetss() is not a typo RTFM before being smart */ /* NOTE: fgetss() is not a typo RTFM before being smart */
...@@ -1587,13 +1587,13 @@ function process_alias_unzip($temp_filename) { ...@@ -1587,13 +1587,13 @@ function process_alias_unzip($temp_filename) {
/* foreach through all extracted files and build up aliases file */ /* foreach through all extracted files and build up aliases file */
$fd = @fopen("{$temp_filename}/aliases", "w"); $fd = @fopen("{$temp_filename}/aliases", "w");
if (!$fd) { if (!$fd) {
log_error(gettext("Could not open {$temp_filename}/aliases for writing!")); log_error(sprintf(_('Could not open %s/aliases for writing!'), $temp_filename));
return false; return false;
} }
foreach($files_to_process as $f2p) { foreach($files_to_process as $f2p) {
$tmpfd = @fopen($f2p, 'r'); $tmpfd = @fopen($f2p, 'r');
if (!$tmpfd) { if (!$tmpfd) {
log_error(gettext("The following file could not be read {$f2p} from {$temp_filename}")); log_error(sprintf(_('The following file could not be read %s from %s'), $f2p, $temp_filename));
continue; continue;
} }
while (($tmpbuf = fread($tmpfd, 65536)) !== FALSE) while (($tmpbuf = fread($tmpfd, 65536)) !== FALSE)
...@@ -1619,7 +1619,7 @@ function process_alias_tgz($temp_filename) { ...@@ -1619,7 +1619,7 @@ function process_alias_tgz($temp_filename) {
/* foreach through all extracted files and build up aliases file */ /* foreach through all extracted files and build up aliases file */
$fd = @fopen("{$temp_filename}/aliases", "w"); $fd = @fopen("{$temp_filename}/aliases", "w");
if (!$fd) { if (!$fd) {
log_error(gettext("Could not open {$temp_filename}/aliases for writing!")); log_error(sprintf(_('Could not open %s/aliases for writing!'), $temp_filename));
return false; return false;
} }
foreach($files_to_process as $f2p) { foreach($files_to_process as $f2p) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment