Use format strings.

This commit is contained in:
Michal Čihař
2010-08-19 11:30:32 +02:00
parent 124ba18d03
commit 763aff5a6f
2 changed files with 4 additions and 4 deletions

View File

@@ -86,9 +86,9 @@ if(isset($_GET['sql_query'])) {
if($export_type == 'server') {
echo __('Exporting databases in the current server');
} elseif($export_type == 'database') {
echo __('Exporting tables in the database "' . $db . '"');
printf(__('Exporting tables in the database "%s"'), htmlspecialchars($db));
} else {
echo __('Exporting rows in the table "' . $table . '"');
printf(__('Exporting rows in the table "%s"'), htmlspecialchars($table));
}?>
</h2>
</div>

View File

@@ -128,9 +128,9 @@ if ($_SESSION[$SESSION_KEY]["handler"]!="noplugin") {
if($import_type == 'server') {
echo __('Importing into the current server');
} elseif($import_type == 'database') {
echo __('Importing into the database "' . $db . '"');
printf(__('Importing into the database "%s"'), htmlspecialchars($db));
} else {
echo __('Importing into the table "' . $table . '"');
printf(__('Importing into the table "%s"'), htmlspecialchars($table));
}?>
</h2>
</div>