gettext conversion
This commit is contained in:
18
export.php
18
export.php
@@ -59,7 +59,7 @@ if (empty($_REQUEST['asfile'])) {
|
||||
|
||||
// Does export require to be into file?
|
||||
if (isset($export_list[$type]['force_file']) && ! $asfile) {
|
||||
$message = PMA_Message::error('strExportMustBeFile');
|
||||
$message = PMA_Message::error(__('Selected export type has to be saved in file!'));
|
||||
$GLOBALS['js_include'][] = 'functions.js';
|
||||
require_once './libraries/header.inc.php';
|
||||
if ($export_type == 'server') {
|
||||
@@ -151,7 +151,7 @@ function PMA_exportOutputHandler($line)
|
||||
if ($GLOBALS['save_on_server']) {
|
||||
$write_result = @fwrite($GLOBALS['file_handle'], $dump_buffer);
|
||||
if (!$write_result || ($write_result != strlen($dump_buffer))) {
|
||||
$GLOBALS['message'] = PMA_Message::error('strNoSpace');
|
||||
$GLOBALS['message'] = PMA_Message::error(__('Insufficient space to save the file %s.'));
|
||||
$GLOBALS['message']->addParam($save_filename);
|
||||
return false;
|
||||
}
|
||||
@@ -176,7 +176,7 @@ function PMA_exportOutputHandler($line)
|
||||
if ($GLOBALS['save_on_server'] && strlen($line) > 0) {
|
||||
$write_result = @fwrite($GLOBALS['file_handle'], $line);
|
||||
if (!$write_result || ($write_result != strlen($line))) {
|
||||
$GLOBALS['message'] = PMA_Message::error('strNoSpace');
|
||||
$GLOBALS['message'] = PMA_Message::error(__('Insufficient space to save the file %s.'));
|
||||
$GLOBALS['message']->addParam($save_filename);
|
||||
return false;
|
||||
}
|
||||
@@ -291,15 +291,15 @@ if ($save_on_server) {
|
||||
$save_filename = PMA_userDir($cfg['SaveDir']) . preg_replace('@[/\\\\]@', '_', $filename);
|
||||
unset($message);
|
||||
if (file_exists($save_filename) && empty($onserverover)) {
|
||||
$message = PMA_Message::error('strFileAlreadyExists');
|
||||
$message = PMA_Message::error(__('File %s already exists on server, change filename or check overwrite option.'));
|
||||
$message->addParam($save_filename);
|
||||
} else {
|
||||
if (is_file($save_filename) && !is_writable($save_filename)) {
|
||||
$message = PMA_Message::error('strNoPermission');
|
||||
$message = PMA_Message::error(__('The web server does not have permission to save the file %s.'));
|
||||
$message->addParam($save_filename);
|
||||
} else {
|
||||
if (!$file_handle = @fopen($save_filename, 'w')) {
|
||||
$message = PMA_Message::error('strNoPermission');
|
||||
$message = PMA_Message::error(__('The web server does not have permission to save the file %s.'));
|
||||
$message->addParam($save_filename);
|
||||
}
|
||||
}
|
||||
@@ -356,7 +356,7 @@ if (!$save_on_server) {
|
||||
if ($export_type == 'database') {
|
||||
$num_tables = count($tables);
|
||||
if ($num_tables == 0) {
|
||||
$message = PMA_Message::error('strNoTablesFound');
|
||||
$message = PMA_Message::error(__('No tables found in database.'));
|
||||
$GLOBALS['js_include'][] = 'functions.js';
|
||||
require_once './libraries/header.inc.php';
|
||||
$active_page = 'db_export.php';
|
||||
@@ -624,9 +624,9 @@ if (!empty($asfile)) {
|
||||
$write_result = @fwrite($file_handle, $dump_buffer);
|
||||
fclose($file_handle);
|
||||
if (strlen($dump_buffer) !=0 && (!$write_result || ($write_result != strlen($dump_buffer)))) {
|
||||
$message = new PMA_Message('strNoSpace', PMA_Message::ERROR, $save_filename);
|
||||
$message = new PMA_Message(__('Insufficient space to save the file %s.'), PMA_Message::ERROR, $save_filename);
|
||||
} else {
|
||||
$message = new PMA_Message('strDumpSaved', PMA_Message::SUCCESS, $save_filename);
|
||||
$message = new PMA_Message(__('Dump has been saved to file %s.'), PMA_Message::SUCCESS, $save_filename);
|
||||
}
|
||||
|
||||
$GLOBALS['js_include'][] = 'functions.js';
|
||||
|
Reference in New Issue
Block a user