Skip to content

Commit

Permalink
Make messages translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed May 2, 2012
1 parent 254c573 commit cb80085
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions libraries/Table.class.php
Expand Up @@ -746,14 +746,16 @@ static public function moveCopy($source_db, $source_table, $target_db, $target_t
// Ensure the target is valid
if (! $GLOBALS['pma']->databases->exists($source_db, $target_db)) {
if (! $GLOBALS['pma']->databases->exists($source_db)) {
$GLOBALS['message'] = PMA_Message::rawError(
'source database `' . htmlspecialchars($source_db) . '` not found'
);
$GLOBALS['message'] = PMA_Message::rawError(sprintf(
__('Source database `%s` was not found!'),
htmlspecialchars($source_db)
));
}
if (! $GLOBALS['pma']->databases->exists($target_db)) {
$GLOBALS['message'] = PMA_Message::rawError(
'target database `' . htmlspecialchars($target_db) . '` not found'
);
$GLOBALS['message'] = PMA_Message::rawError(sprintf(
__('Target database `%s` was not found!'),
htmlspecialchars($target_db)
));
}
return false;
}
Expand Down

0 comments on commit cb80085

Please sign in to comment.