mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
inc: gettext() woes
This commit is contained in:
parent
d941a2eba9
commit
aac05b7e99
@ -1543,7 +1543,7 @@ function update_alias_url_data()
|
||||
if (file_exists("{$temp_filename}/aliases")) {
|
||||
$fd = @fopen("{$temp_filename}/aliases", 'r');
|
||||
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;
|
||||
}
|
||||
/* NOTE: fgetss() is not a typo RTFM before being smart */
|
||||
@ -1587,13 +1587,13 @@ function process_alias_unzip($temp_filename) {
|
||||
/* foreach through all extracted files and build up aliases file */
|
||||
$fd = @fopen("{$temp_filename}/aliases", "w");
|
||||
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;
|
||||
}
|
||||
foreach($files_to_process as $f2p) {
|
||||
$tmpfd = @fopen($f2p, 'r');
|
||||
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;
|
||||
}
|
||||
while (($tmpbuf = fread($tmpfd, 65536)) !== FALSE)
|
||||
@ -1619,7 +1619,7 @@ function process_alias_tgz($temp_filename) {
|
||||
/* foreach through all extracted files and build up aliases file */
|
||||
$fd = @fopen("{$temp_filename}/aliases", "w");
|
||||
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;
|
||||
}
|
||||
foreach($files_to_process as $f2p) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user