strings to gettext, first batch

This commit is contained in:
Marc Delisle
2010-05-03 12:57:46 -04:00
parent 86b11a41ab
commit f55823f47f
126 changed files with 84759 additions and 63298 deletions

View File

@@ -35,7 +35,7 @@ if (!isset($pos)) {
}
$foreign_limit = 'LIMIT ' . $pos . ', ' . $per_page . ' ';
if (isset($foreign_navig) && $foreign_navig == $strShowAll) {
if (isset($foreign_navig) && $foreign_navig == __('Show all')) {
unset($foreign_limit);
}
@@ -56,7 +56,7 @@ $showall = '';
if (is_array($foreignData['disp_row'])) {
if ($cfg['ShowAll'] && ($foreignData['the_total'] > $per_page)) {
$showall = '<input type="submit" name="foreign_navig" value="' . $strShowAll . '" />';
$showall = '<input type="submit" name="foreign_navig" value="' . __('Show all') . '" />';
}
$session_max_rows = $per_page;
@@ -129,7 +129,7 @@ if (is_array($foreignData['disp_row'])) {
}
}
alert('<?php echo PMA_jsFormat($strWindowNotFound); ?>');
alert('<?php echo PMA_jsFormat(__('The target browser window could not be updated. Maybe you have closed the parent window, or your browser\'s security settings are configured to block cross-window updates.')); ?>');
}
//]]>
</script>
@@ -147,10 +147,10 @@ if (is_array($foreignData['disp_row'])) {
<input type="hidden" name="pk" value="<?php echo htmlspecialchars($pk); ?>" />
<?php } ?>
<span class="formelement">
<label for="input_foreign_filter"><?php echo $strSearch . ':'; ?></label>
<label for="input_foreign_filter"><?php echo __('Search') . ':'; ?></label>
<input type="text" name="foreign_filter" id="input_foreign_filter"
value="<?php echo isset($foreign_filter) ? htmlspecialchars($foreign_filter) : ''; ?>" />
<input type="submit" name="submit_foreign_filter" value="<?php echo $strGo;?>" />
<input type="submit" name="submit_foreign_filter" value="<?php echo __('Go');?>" />
</span>
<span class="formelement">
<?php echo $gotopage; ?>
@@ -165,11 +165,11 @@ if (is_array($foreignData['disp_row'])) {
<?php
if (is_array($foreignData['disp_row'])) {
$header = '<tr>
<th>' . $strKeyname . '</th>
<th>' . $strDescription . '</th>
<th>' . __('Keyname') . '</th>
<th>' . __('Description') . '</th>
<td width="20%"></td>
<th>' . $strDescription . '</th>
<th>' . $strKeyname . '</th>
<th>' . __('Description') . '</th>
<th>' . __('Keyname') . '</th>
</tr>';
echo '<thead>' . $header . '</thead>' . "\n"
@@ -244,7 +244,7 @@ if (is_array($foreignData['disp_row'])) {
<td nowrap="nowrap">
<?php
echo ($key_ordered_current_equals_data ? '<strong>' : '')
.'<a href="#" title="' . $strUseThisValue
.'<a href="#" title="' . __('Use this value')
. ($key_ordered_current_val_title != '' ? ': ' . $key_ordered_current_val_title : '') . '"'
.' onclick="formupdate(\'' . md5($field) . '\', \''
. PMA_jsFormat($key_ordered_current_key, false) . '\'); return false;">'
@@ -253,7 +253,7 @@ if (is_array($foreignData['disp_row'])) {
<td>
<?php
echo ($key_ordered_current_equals_data ? '<strong>' : '')
. '<a href="#" title="' . $strUseThisValue . ($key_ordered_current_val_title != '' ? ': '
. '<a href="#" title="' . __('Use this value') . ($key_ordered_current_val_title != '' ? ': '
. $key_ordered_current_val_title : '') . '" onclick="formupdate(\''
. md5($field) . '\', \'' . PMA_jsFormat($key_ordered_current_key, false) . '\'); return false;">'
. $key_ordered_current_val . '</a>' . ($key_ordered_current_equals_data ? '</strong>' : '');
@@ -265,7 +265,7 @@ if (is_array($foreignData['disp_row'])) {
<td>
<?php
echo ($val_ordered_current_equals_data ? '<strong>' : '')
. '<a href="#" title="' . $strUseThisValue . ($val_ordered_current_val_title != '' ? ': '
. '<a href="#" title="' . __('Use this value') . ($val_ordered_current_val_title != '' ? ': '
. $val_ordered_current_val_title : '') . '" onclick="formupdate(\'' . md5($field)
. '\', \'' . PMA_jsFormat($val_ordered_current_key, false) . '\'); return false;">'
. $val_ordered_current_val . '</a>' . ($val_ordered_current_equals_data ? '</strong>' : '');
@@ -273,7 +273,7 @@ if (is_array($foreignData['disp_row'])) {
<td nowrap="nowrap">
<?php
echo ($val_ordered_current_equals_data ? '<strong>' : '') . '<a href="#" title="'
. $strUseThisValue . ($val_ordered_current_val_title != '' ? ': ' . $val_ordered_current_val_title : '')
. __('Use this value') . ($val_ordered_current_val_title != '' ? ': ' . $val_ordered_current_val_title : '')
. '" onclick="formupdate(\'' . md5($field) . '\', \''
. PMA_jsFormat($val_ordered_current_key, false) . '\'); return false;">' . htmlspecialchars($val_ordered_current_key)
. '</a>' . ($val_ordered_current_equals_data ? '</strong>' : '');

View File

@@ -46,7 +46,7 @@ if ($cfgRelation['commwork']) {
*/
if ($comment) {
?>
<p> <?php echo $strDBComment; ?>
<p> <?php echo __('Database comment: '); ?>
<i><?php echo htmlspecialchars($comment); ?></i></p>
<?php
} // end if
@@ -162,7 +162,7 @@ while ($row = PMA_DBI_fetch_assoc($rowset)) {
* Displays the comments of the table if MySQL >= 3.23
*/
if (!empty($show_comment)) {
echo $strTableComments . ': ' . htmlspecialchars($show_comment) . '<br /><br />';
echo __('Table comments') . ': ' . htmlspecialchars($show_comment) . '<br /><br />';
}
/**
@@ -171,17 +171,17 @@ while ($row = PMA_DBI_fetch_assoc($rowset)) {
?>
<table width="100%" class="print">
<tr><th width="50"><?php echo $strField; ?></th>
<th width="80"><?php echo $strType; ?></th>
<?php /* <th width="50"><?php echo $strAttr; ?></th>*/ ?>
<th width="40"><?php echo $strNull; ?></th>
<th width="70"><?php echo $strDefault; ?></th>
<?php /* <th width="50"><?php echo $strExtra; ?></th>*/ ?>
<tr><th width="50"><?php echo __('Field'); ?></th>
<th width="80"><?php echo __('Type'); ?></th>
<?php /* <th width="50"><?php echo __('Attributes'); ?></th>*/ ?>
<th width="40"><?php echo __('Null'); ?></th>
<th width="70"><?php echo __('Default'); ?></th>
<?php /* <th width="50"><?php echo __('Extra'); ?></th>*/ ?>
<?php
if ($have_rel) {
echo ' <th>' . $strLinksTo . '</th>' . "\n";
echo ' <th>' . __('Links to') . '</th>' . "\n";
}
echo ' <th>' . $strComments . '</th>' . "\n";
echo ' <th>' . __('Comments') . '</th>' . "\n";
if ($cfgRelation['mimework']) {
echo ' <th>MIME</th>' . "\n";
}
@@ -217,15 +217,15 @@ while ($row = PMA_DBI_fetch_assoc($rowset)) {
$type = ' ';
}
}
$strAttribute = ' ';
$attribute = ' ';
if ($binary) {
$strAttribute = 'BINARY';
$attribute = 'BINARY';
}
if ($unsigned) {
$strAttribute = 'UNSIGNED';
$attribute = 'UNSIGNED';
}
if ($zerofill) {
$strAttribute = 'UNSIGNED ZEROFILL';
$attribute = 'UNSIGNED ZEROFILL';
}
if (!isset($row['Default'])) {
if ($row['Null'] != 'NO') {
@@ -263,8 +263,8 @@ while ($row = PMA_DBI_fetch_assoc($rowset)) {
?>
</td>
<td<?php echo $type_nowrap; ?> xml:lang="en" dir="ltr"><?php echo $type; ?></td>
<?php /* <td<?php echo $type_nowrap; ?>><?php echo $strAttribute; ?></td>*/ ?>
<td><?php echo (($row['Null'] == 'NO') ? $strNo : $strYes); ?></td>
<?php /* <td<?php echo $type_nowrap; ?>><?php echo $attribute; ?></td>*/ ?>
<td><?php echo (($row['Null'] == 'NO') ? __('No') : __('Yes')); ?></td>
<td nowrap="nowrap"><?php if (isset($row['Default'])) { echo $row['Default']; } ?></td>
<?php /* <td<?php echo $type_nowrap; ?>><?php echo $row['Extra']; ?></td>*/ ?>
<?php
@@ -319,7 +319,7 @@ function printPage()
//]]>
</script>
<?php
echo '<br /><br /><input type="button" id="print" value="' . $strPrint . '" onclick="printPage()" />';
echo '<br /><br /><input type="button" id="print" value="' . __('Print') . '" onclick="printPage()" />';
require_once './libraries/footer.inc.php';
?>

View File

@@ -26,7 +26,7 @@ require_once './libraries/db_info.inc.php';
/**
* Displays the form
*/
$export_page_title = $strViewDumpDB;
$export_page_title = __('View dump (schema) of database');
// exit if no tables in db found
if ($num_tables < 1) {
@@ -40,9 +40,9 @@ $checkall_url = 'db_export.php?'
. '&amp;goto=db_export.php';
$multi_values = '<div align="center">';
$multi_values .= '<a href="' . $checkall_url . '" onclick="setSelectOptions(\'dump\', \'table_select[]\', true); return false;">' . $strSelectAll . '</a>
$multi_values .= '<a href="' . $checkall_url . '" onclick="setSelectOptions(\'dump\', \'table_select[]\', true); return false;">' . __('Select All') . '</a>
/
<a href="' . $checkall_url . '&amp;unselectall=1" onclick="setSelectOptions(\'dump\', \'table_select[]\', false); return false;">' . $strUnselectAll . '</a><br />';
<a href="' . $checkall_url . '&amp;unselectall=1" onclick="setSelectOptions(\'dump\', \'table_select[]\', false); return false;">' . __('Unselect All') . '</a><br />';
$multi_values .= '<select name="table_select[]" size="10" multiple="multiple">';
$multi_values .= "\n";

View File

@@ -375,12 +375,12 @@ if (!$is_information_schema) {
<?php echo PMA_generate_common_hidden_inputs($db); ?>
<fieldset>
<legend>
<?php echo PMA_getIcon('b_comment.png', $strDBComment, false, true); ?>
<?php echo PMA_getIcon('b_comment.png', __('Database comment: '), false, true); ?>
</legend>
<input type="text" name="comment" class="textfield" size="30"
value="<?php
echo htmlspecialchars(PMA_getDBComment($db)); ?>" />
<input type="submit" value="<?php echo $strGo; ?>" />
<input type="submit" value="<?php echo __('Go'); ?>" />
</fieldset>
</form>
<?php
@@ -407,12 +407,12 @@ if (!$is_information_schema) {
echo '<img class="icon" src="' . $pmaThemeImage . 'b_edit.png"'
.' alt="" width="16" height="16" />';
}
echo $strDBRename . ':';
echo __('Rename database to') . ':';
?>
</legend>
<input type="text" name="newname" size="30" class="textfield" value="" />
<?php
echo '(' . $strCommand . ': ';
echo '(' . __('Command') . ': ';
/**
* @todo (see explanations above in a previous todo)
*/
@@ -422,7 +422,7 @@ if (!$is_information_schema) {
echo 'INSERT INTO ... SELECT';
//}
echo ')'; ?>
<input type="submit" value="<?php echo $strGo; ?>" onclick="return confirmLink(this, 'CREATE DATABASE ... <?php echo $strAndThen; ?> DROP DATABASE <?php echo PMA_jsFormat($db); ?>')" />
<input type="submit" value="<?php echo __('Go'); ?>" onclick="return confirmLink(this, 'CREATE DATABASE ... <?php echo __('and then'); ?> DROP DATABASE <?php echo PMA_jsFormat($db); ?>')" />
</fieldset>
</form>
@@ -448,16 +448,16 @@ if (!$is_information_schema) {
echo '<img class="icon" src="' . $pmaThemeImage . 'b_edit.png"'
.' alt="" width="16" height="16" />';
}
echo $strDBCopy . ':';
echo __('Copy database to') . ':';
$drop_clause = 'DROP TABLE / DROP VIEW';
?>
</legend>
<input type="text" name="newname" size="30" class="textfield" value="" /><br />
<?php
$choices = array(
'structure' => $strStrucOnly,
'data' => $strStrucData,
'dataonly' => $strDataOnly);
'structure' => __('Structure only'),
'data' => __('Structure and data'),
'dataonly' => __('Data only'));
PMA_display_html_radio('what', $choices, 'data', true);
unset($choices);
?>
@@ -465,18 +465,18 @@ if (!$is_information_schema) {
id="checkbox_create_database_before_copying"
style="vertical-align: middle" checked="checked" />
<label for="checkbox_create_database_before_copying">
<?php echo $strCreateDatabaseBeforeCopying; ?></label><br />
<?php echo __('CREATE DATABASE before copying'); ?></label><br />
<input type="checkbox" name="drop_if_exists" value="true"
id="checkbox_drop" style="vertical-align: middle" />
<label for="checkbox_drop"><?php echo sprintf($strAddClause, $drop_clause); ?></label><br />
<label for="checkbox_drop"><?php echo sprintf(__('Add %s'), $drop_clause); ?></label><br />
<input type="checkbox" name="sql_auto_increment" value="1" checked="checked"
id="checkbox_auto_increment" style="vertical-align: middle" />
<label for="checkbox_auto_increment">
<?php echo $strAddAutoIncrement; ?></label><br />
<?php echo __('Add AUTO_INCREMENT value'); ?></label><br />
<input type="checkbox" name="add_constraints" value="1"
id="checkbox_constraints" style="vertical-align: middle" />
<label for="checkbox_constraints">
<?php echo $strAddConstraints; ?></label><br />
<?php echo __('Add constraints'); ?></label><br />
<?php
unset($drop_clause);
@@ -489,10 +489,10 @@ if (!$is_information_schema) {
id="checkbox_switch"
<?php echo ((isset($pma_switch_to_new) && $pma_switch_to_new == 'true') ? ' checked="checked"' : ''); ?>
style="vertical-align: middle" />
<label for="checkbox_switch"><?php echo $strSwitchToDatabase; ?></label>
<label for="checkbox_switch"><?php echo __('Switch to copied database'); ?></label>
</fieldset>
<fieldset class="tblFooters">
<input type="submit" name="submit_copy" value="<?php echo $strGo; ?>" />
<input type="submit" name="submit_copy" value="<?php echo __('Go'); ?>" />
</fieldset>
</form>
@@ -530,10 +530,10 @@ if (!$is_information_schema) {
<?php echo PMA_generate_common_hidden_inputs($db); ?>
<fieldset>
<legend>
<?php echo PMA_getIcon('b_edit.png', $strBLOBRepository, false, true); ?>
<?php echo PMA_getIcon('b_edit.png', __('BLOB Repository'), false, true); ?>
</legend>
<?php echo $strStatus; ?>:
<?php echo __('Status'); ?>:
<?php
@@ -541,11 +541,11 @@ if (!$is_information_schema) {
if ($allBSTablesExist)
{
?>
<?php echo $strBLOBRepositoryEnabled; ?>
<?php echo _pgettext('BLOB repository', 'Enabled'); ?>
</fieldset>
<fieldset class="tblFooters">
<input type="hidden" name="db_blob_streaming_op" value="disable" />
<input type="submit" onclick="return confirmDisableRepository('<?php echo $db; ?>');" value="<?php echo $strBLOBRepositoryDisable; ?>" />
<input type="submit" onclick="return confirmDisableRepository('<?php echo $db; ?>');" value="<?php echo __('Disable'); ?>" />
</fieldset>
<?php
}
@@ -555,11 +555,11 @@ if (!$is_information_schema) {
if ($oneBSTableExists && !$allBSTablesExist)
{
?>
<?php echo $strBLOBRepositoryDamaged; ?>
<?php echo __('Damaged'); ?>
</fieldset>
<fieldset class="tblFooters">
<input type="hidden" name="db_blob_streaming_op" value="repair" />
<input type="submit" value="<?php echo $strBLOBRepositoryRepair; ?>" />
<input type="submit" value="<?php echo _pgettext('BLOB repository', 'Repair'); ?>" />
</fieldset>
<?php
}
@@ -567,11 +567,11 @@ if (!$is_information_schema) {
else
{
?>
<?php echo $strBLOBRepositoryDisabled; ?>
<?php echo _pgettext('BLOB repository', 'Disabled'); ?>
</fieldset>
<fieldset class="tblFooters">
<input type="hidden" name="db_blob_streaming_op" value="enable" />
<input type="submit" value="<?php echo $strBLOBRepositoryEnable; ?>" />
<input type="submit" value="<?php echo __('Enable'); ?>" />
</fieldset>
<?php
}
@@ -595,12 +595,12 @@ if (!$is_information_schema) {
echo '<img class="icon" src="' . $pmaThemeImage . 's_asci.png"'
.' alt="" width="16" height="16" />';
}
echo ' <label for="select_db_collation">' . $strCollation . ':</label>' . "\n"
echo ' <label for="select_db_collation">' . __('Collation') . ':</label>' . "\n"
. ' </legend>' . "\n"
. PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_COLLATION,
'db_collation', 'select_db_collation', $db_collation, false, 3)
. ' <input type="submit" name="submitcollation"'
. ' value="' . $strGo . '" style="vertical-align: middle" />' . "\n"
. ' value="' . __('Go') . '" style="vertical-align: middle" />' . "\n"
. '</fieldset>' . "\n"
. '</form>' . "\n";
@@ -642,10 +642,10 @@ if ($cfgRelation['pdfwork'] && $num_tables > 0) { ?>
echo '<img class="icon" src="' . $pmaThemeImage . 'b_view.png"'
.' alt="" width="16" height="16" />';
}
echo $strDisplayPDF;
echo __('Display PDF schema');
?>:
</legend>
<label for="pdf_page_number_opt"><?php echo $strPageNumber; ?></label>
<label for="pdf_page_number_opt"><?php echo __('Page number:'); ?></label>
<select name="pdf_page_number" id="pdf_page_number_opt">
<?php
while ($pages = @PMA_DBI_fetch_assoc($test_rs)) {
@@ -658,28 +658,28 @@ if ($cfgRelation['pdfwork'] && $num_tables > 0) { ?>
</select><br />
<input type="checkbox" name="show_grid" id="show_grid_opt" />
<label for="show_grid_opt"><?php echo $strShowGrid; ?></label><br />
<label for="show_grid_opt"><?php echo __('Show grid'); ?></label><br />
<input type="checkbox" name="show_color" id="show_color_opt"
checked="checked" />
<label for="show_color_opt"><?php echo $strShowColor; ?></label><br />
<label for="show_color_opt"><?php echo __('Show color'); ?></label><br />
<input type="checkbox" name="show_table_dimension" id="show_table_dim_opt" />
<label for="show_table_dim_opt"><?php echo $strShowTableDimension; ?>
<label for="show_table_dim_opt"><?php echo __('Show dimension of tables'); ?>
</label><br />
<input type="checkbox" name="all_tab_same_wide" id="all_tab_same_wide" />
<label for="all_tab_same_wide"><?php echo $strAllTableSameWidth; ?>
<label for="all_tab_same_wide"><?php echo __('Display all tables with the same width'); ?>
</label><br />
<input type="checkbox" name="with_doc" id="with_doc" checked="checked" />
<label for="with_doc"><?php echo $strDataDict; ?></label><br />
<label for="with_doc"><?php echo __('Data Dictionary'); ?></label><br />
<input type="checkbox" name="show_keys" id="show_keys" />
<label for="show_keys"><?php echo $strShowKeys; ?></label><br />
<label for="show_keys"><?php echo __('Only show keys'); ?></label><br />
<label for="orientation_opt"><?php echo $strShowDatadictAs; ?></label>
<label for="orientation_opt"><?php echo __('Data Dictionary Format'); ?></label>
<select name="orientation" id="orientation_opt">
<option value="L"><?php echo $strLandscape;?></option>
<option value="P"><?php echo $strPortrait;?></option>
<option value="L"><?php echo __('Landscape');?></option>
<option value="P"><?php echo __('Portrait');?></option>
</select><br />
<label for="paper_opt"><?php echo $strPaperSize; ?></label>
<label for="paper_opt"><?php echo __('Paper size'); ?></label>
<select name="paper" id="paper_opt">
<?php
foreach ($cfg['PDFPageSizes'] AS $key => $val) {
@@ -693,7 +693,7 @@ if ($cfgRelation['pdfwork'] && $num_tables > 0) { ?>
</select>
</fieldset>
<fieldset class="tblFooters">
<input type="submit" value="<?php echo $strGo; ?>" />
<input type="submit" value="<?php echo __('Go'); ?>" />
</fieldset>
</form>
<?php
@@ -703,7 +703,7 @@ if ($cfgRelation['pdfwork'] && $num_tables > 0) { ?>
echo '<img class="icon" src="' . $pmaThemeImage . 'b_edit.png"'
.' alt="" width="16" height="16" />';
}
echo $strEditPDFPages . '</a>';
echo __('Edit PDF Pages') . '</a>';
} // end if
/**

View File

@@ -93,7 +93,7 @@ echo '<br />';
// 1. No table
if ($num_tables == 0) {
echo $strNoTablesFound;
echo __('No tables found in database.');
}
// 2. Shows table informations on mysql >= 3.23.03
else {
@@ -101,15 +101,15 @@ else {
<table>
<thead>
<tr>
<th><?php echo $strTable; ?></th>
<th><?php echo $strRecords; ?></th>
<th><?php echo $strType; ?></th>
<th><?php echo __('Table'); ?></th>
<th><?php echo __('Records'); ?></th>
<th><?php echo __('Type'); ?></th>
<?php
if ($cfg['ShowStats']) {
echo '<th>' . $strSize . '</th>';
echo '<th>' . __('Size') . '</th>';
}
?>
<th><?php echo $strComments; ?></th>
<th><?php echo __('Comments'); ?></th>
</tr>
</thead>
<tbody>
@@ -159,7 +159,7 @@ else {
} else {
?>
<td colspan="3" align="center">
<?php echo $strInUse; ?>
<?php echo __('in use'); ?>
</td>
<?php
}
@@ -184,7 +184,7 @@ else {
if (! empty($sts_data['Create_time'])) {
?>
<tr>
<td align="right"><?php echo $strStatCreateTime . ': '; ?></td>
<td align="right"><?php echo __('Creation') . ': '; ?></td>
<td align="right"><?php echo PMA_localisedDate(strtotime($sts_data['Create_time'])); ?></td>
</tr>
<?php
@@ -193,7 +193,7 @@ else {
if (! empty($sts_data['Update_time'])) {
?>
<tr>
<td align="right"><?php echo $strStatUpdateTime . ': '; ?></td>
<td align="right"><?php echo __('Last update') . ': '; ?></td>
<td align="right"><?php echo PMA_localisedDate(strtotime($sts_data['Update_time'])); ?></td>
</tr>
<?php
@@ -202,7 +202,7 @@ else {
if (! empty($sts_data['Check_time'])) {
?>
<tr>
<td align="right"><?php echo $strStatCheckTime . ': '; ?></td>
<td align="right"><?php echo __('Last check') . ': '; ?></td>
<td align="right"><?php echo PMA_localisedDate(strtotime($sts_data['Check_time'])); ?></td>
</tr>
<?php
@@ -219,7 +219,7 @@ else {
?>
<tr>
<th align="center">
<?php echo sprintf($strTables, PMA_formatNumber($num_tables, 0)); ?>
<?php echo sprintf(__('%s table(s)'), PMA_formatNumber($num_tables, 0)); ?>
</th>
<th align="right" nowrap="nowrap">
<?php echo PMA_formatNumber($sum_entries, 0); ?>
@@ -263,7 +263,7 @@ function printPage()
<br /><br />
<input type="button" class="print_ignore"
id="print" value="<?php echo $strPrint; ?>" onclick="printPage()" />
id="print" value="<?php echo __('Print'); ?>" onclick="printPage()" />
<?php
require_once './libraries/footer.inc.php';

View File

@@ -171,7 +171,7 @@ function showColumnSelectCell($columns, $column_number, $selected = '')
<fieldset>
<table class="data" style="width: 100%;">
<tr class="odd noclick">
<th><?php echo $strField; ?>:</th>
<th><?php echo __('Field'); ?>:</th>
<?php
$z = 0;
for ($x = 0; $x < $col; $x++) {
@@ -197,7 +197,7 @@ for ($x = 0; $x < $col; $x++) {
<!-- Sort row -->
<tr class="even noclick">
<th><?php echo $strSort; ?>:</th>
<th><?php echo __('Sort'); ?>:</th>
<?php
$z = 0;
for ($x = 0; $x < $col; $x++) {
@@ -206,8 +206,8 @@ for ($x = 0; $x < $col; $x++) {
<td align="center">
<select style="width: <?php echo $realwidth; ?>" name="Sort[<?php echo $z; ?>]" size="1">
<option value="">&nbsp;</option>
<option value="ASC"><?php echo $strAscending; ?></option>
<option value="DESC"><?php echo $strDescending; ?></option>
<option value="ASC"><?php echo __('Ascending'); ?></option>
<option value="DESC"><?php echo __('Descending'); ?></option>
</select>
</td>
<?php
@@ -240,7 +240,7 @@ for ($x = 0; $x < $col; $x++) {
$sel = '';
} // end if
echo ' ';
echo '<option value="ASC"' . $sel . '>' . $strAscending . '</option>' . "\n";
echo '<option value="ASC"' . $sel . '>' . __('Ascending') . '</option>' . "\n";
if (isset($Sort[$x]) && $Sort[$x] == 'DESC') {
$curSort[$z] = $Sort[$x];
$sel = ' selected="selected"';
@@ -248,7 +248,7 @@ for ($x = 0; $x < $col; $x++) {
$sel = '';
} // end if
echo ' ';
echo '<option value="DESC"' . $sel . '>' . $strDescending . '</option>' . "\n";
echo '<option value="DESC"' . $sel . '>' . __('Descending') . '</option>' . "\n";
?>
</select>
</td>
@@ -261,7 +261,7 @@ for ($x = 0; $x < $col; $x++) {
<!-- Show row -->
<tr class="odd noclick">
<th><?php echo $strShow; ?>:</th>
<th><?php echo __('Show'); ?>:</th>
<?php
$z = 0;
for ($x = 0; $x < $col; $x++) {
@@ -297,7 +297,7 @@ for ($x = 0; $x < $col; $x++) {
<!-- Criteria row -->
<tr class="even noclick">
<th><?php echo $strCriteria; ?>:</th>
<th><?php echo __('Criteria'); ?>:</th>
<?php
$z = 0;
for ($x = 0; $x < $col; $x++) {
@@ -350,11 +350,11 @@ for ($y = 0; $y <= $row; $y++) {
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="<?php echo $cell_align_right; ?>" nowrap="nowrap">
<small><?php echo $strQBEIns; ?>:</small>
<small><?php echo __('Ins'); ?>:</small>
<input type="checkbox" name="ins_row[<?php echo $w; ?>]" />
</td>
<td align="<?php echo $cell_align_right; ?>">
<strong><?php echo $strAnd; ?>:</strong>
<strong><?php echo __('And'); ?>:</strong>
</td>
<td>
<input type="radio" name="and_or_row[<?php echo $w; ?>]" value="and"<?php echo $chk['and']; ?> />
@@ -363,11 +363,11 @@ for ($y = 0; $y <= $row; $y++) {
</tr>
<tr>
<td align="<?php echo $cell_align_right; ?>" nowrap="nowrap">
<small><?php echo $strQBEDel; ?>:</small>
<small><?php echo __('Del'); ?>:</small>
<input type="checkbox" name="del_row[<?php echo $w; ?>]" />
</td>
<td align="<?php echo $cell_align_right; ?>">
<strong><?php echo $strOr; ?>:</strong>
<strong><?php echo __('Or'); ?>:</strong>
</td>
<td>
<input type="radio" name="and_or_row[<?php echo $w; ?>]" value="or"<?php echo $chk['or']; ?> />
@@ -432,11 +432,11 @@ for ($y = 0; $y <= $row; $y++) {
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="<?php echo $cell_align_right; ?>" nowrap="nowrap">
<small><?php echo $strQBEIns; ?>:</small>
<small><?php echo __('Ins'); ?>:</small>
<input type="checkbox" name="ins_row[<?php echo $w; ?>]" />
</td>
<td align="<?php echo $cell_align_right; ?>">
<strong><?php echo $strAnd; ?>:</strong>
<strong><?php echo __('And'); ?>:</strong>
</td>
<td>
<input type="radio" name="and_or_row[<?php echo $w; ?>]" value="and"<?php echo $chk['and']; ?> />
@@ -444,11 +444,11 @@ for ($y = 0; $y <= $row; $y++) {
</tr>
<tr>
<td align="<?php echo $cell_align_right; ?>" nowrap="nowrap">
<small><?php echo $strQBEDel; ?>:</small>
<small><?php echo __('Del'); ?>:</small>
<input type="checkbox" name="del_row[<?php echo $w; ?>]" />
</td>
<td align="<?php echo $cell_align_right; ?>">
<strong><?php echo $strOr; ?>:</strong>
<strong><?php echo __('Or'); ?>:</strong>
</td>
<td>
<input type="radio" name="and_or_row[<?php echo $w; ?>]" value="or"<?php echo $chk['or']; ?> />
@@ -504,7 +504,7 @@ for ($y = 0; $y <= $row; $y++) {
?>
<!-- Modify columns -->
<tr class="even noclick">
<th><?php echo $strModify; ?>:</th>
<th><?php echo __('Modify'); ?>:</th>
<?php
$z = 0;
for ($x = 0; $x < $col; $x++) {
@@ -519,14 +519,14 @@ for ($x = 0; $x < $col; $x++) {
}
?>
<td align="center">
<strong><?php echo $strOr; ?>:</strong>
<strong><?php echo __('Or'); ?>:</strong>
<input type="radio" name="and_or_col[<?php echo $z; ?>]" value="or"<?php echo $chk['or']; ?> />
&nbsp;&nbsp;<strong><?php echo $strAnd; ?>:</strong>
&nbsp;&nbsp;<strong><?php echo __('And'); ?>:</strong>
<input type="radio" name="and_or_col[<?php echo $z; ?>]" value="and"<?php echo $chk['and']; ?> />
<br />
<?php echo $strQBEIns . "\n"; ?>
<?php echo __('Ins') . "\n"; ?>
<input type="checkbox" name="ins_col[<?php echo $z; ?>]" />
&nbsp;&nbsp;<?php echo $strQBEDel . "\n"; ?>
&nbsp;&nbsp;<?php echo __('Del') . "\n"; ?>
<input type="checkbox" name="del_col[<?php echo $z; ?>]" />
</td>
<?php
@@ -550,14 +550,14 @@ for ($x = 0; $x < $col; $x++) {
}
?>
<td align="center">
<strong><?php echo $strOr; ?>:</strong>
<strong><?php echo __('Or'); ?>:</strong>
<input type="radio" name="and_or_col[<?php echo $z; ?>]" value="or"<?php echo $chk['or']; ?> />
&nbsp;&nbsp;<strong><?php echo $strAnd; ?>:</strong>
&nbsp;&nbsp;<strong><?php echo __('And'); ?>:</strong>
<input type="radio" name="and_or_col[<?php echo $z; ?>]" value="and"<?php echo $chk['and']; ?> />
<br />
<?php echo $strQBEIns . "\n"; ?>
<?php echo __('Ins') . "\n"; ?>
<input type="checkbox" name="ins_col[<?php echo $z; ?>]" />
&nbsp;&nbsp;<?php echo $strQBEDel . "\n"; ?>
&nbsp;&nbsp;<?php echo __('Del') . "\n"; ?>
<input type="checkbox" name="del_col[<?php echo $z; ?>]" />
</td>
<?php
@@ -581,7 +581,7 @@ echo PMA_generate_common_hidden_inputs($url_params);
<table border="0" cellpadding="2" cellspacing="1">
<tr>
<td nowrap="nowrap">
<?php echo $strAddDeleteRow; ?>:
<?php echo __('Add/Delete Criteria Row'); ?>:
<select size="1" name="add_row" style="vertical-align: middle">
<option value="-3">-3</option>
<option value="-2">-2</option>
@@ -593,7 +593,7 @@ echo PMA_generate_common_hidden_inputs($url_params);
</select>
</td>
<td width="10">&nbsp;</td>
<td nowrap="nowrap"><?php echo $strAddDeleteColumn; ?>:
<td nowrap="nowrap"><?php echo __('Add/Delete Field Columns'); ?>:
<select size="1" name="add_col" style="vertical-align: middle">
<option value="-3">-3</option>
<option value="-2">-2</option>
@@ -606,7 +606,7 @@ echo PMA_generate_common_hidden_inputs($url_params);
</td>
<td width="10">&nbsp;</td>
<!-- Generates a query -->
<td><input type="submit" name="modify" value="<?php echo $strUpdateQuery; ?>" /></td>
<td><input type="submit" name="modify" value="<?php echo __('Update Query'); ?>" /></td>
</tr>
</table>
</fieldset>
@@ -614,30 +614,30 @@ echo PMA_generate_common_hidden_inputs($url_params);
<table>
<tr><td>
<fieldset>
<legend><?php echo $strUseTables; ?></legend>
<legend><?php echo __('Use Tables'); ?></legend>
<?php
$strTableListOptions = '';
$options = '';
$numTableListOptions = 0;
foreach ($tbl_names as $key => $val) {
$strTableListOptions .= ' ';
$strTableListOptions .= '<option value="' . htmlspecialchars($key) . '"' . $val . '>'
$options .= ' ';
$options .= '<option value="' . htmlspecialchars($key) . '"' . $val . '>'
. str_replace(' ', '&nbsp;', htmlspecialchars($key)) . '</option>' . "\n";
$numTableListOptions++;
}
?>
<select name="TableList[]" multiple="multiple" id="listTable"
size="<?php echo ($numTableListOptions > 30) ? '15' : '7'; ?>">
<?php echo $strTableListOptions; ?>
<?php echo $options; ?>
</select>
</fieldset>
<fieldset class="tblFooters">
<input type="submit" name="modify" value="<?php echo $strUpdateQuery; ?>" />
<input type="submit" name="modify" value="<?php echo __('Update Query'); ?>" />
</fieldset>
</td>
<td width="20">&nbsp;</td>
<td>
<fieldset>
<legend><?php echo sprintf($strQueryOnDb, PMA_getDbLink($db)); ?>
<legend><?php echo sprintf(__('SQL query on database <b>%s</b>:'), PMA_getDbLink($db)); ?>
</legend>
<textarea cols="80" name="sql_query" id="textSqlquery"
rows="<?php echo ($numTableListOptions > 30) ? '15' : '7'; ?>"
@@ -931,7 +931,7 @@ if (!empty($qry_orderby)) {
</textarea>
</fieldset>
<fieldset class="tblFooters">
<input type="submit" name="submit_sql" value="<?php echo $strRunQuery; ?>" />
<input type="submit" name="submit_sql" value="<?php echo __('Submit Query'); ?>" />
</fieldset>
</td>
</tr>

View File

@@ -48,7 +48,7 @@ if (empty($is_info)) {
// 1. No tables
if ($num_tables == 0) {
echo '<p>' . $strNoTablesFound . '</p>' . "\n";
echo '<p>' . __('No tables found in database.') . '</p>' . "\n";
if (empty($db_is_information_schema)) {
require './libraries/display_create_table.lib.php';
@@ -74,43 +74,43 @@ require_once './libraries/db_structure.lib.php';
$titles = array();
if (true == $cfg['PropertiesIconic']) {
$titles['Browse'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_browse.png" alt="' . $strBrowse . '" title="' . $strBrowse . '" />';
$titles['NoBrowse'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'bd_browse.png" alt="' . $strBrowse . '" title="' . $strBrowse . '" />';
$titles['Search'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_select.png" alt="' . $strSearch . '" title="' . $strSearch . '" />';
$titles['NoSearch'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'bd_select.png" alt="' . $strSearch . '" title="' . $strSearch . '" />';
$titles['Insert'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_insrow.png" alt="' . $strInsert . '" title="' . $strInsert . '" />';
$titles['NoInsert'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'bd_insrow.png" alt="' . $strInsert . '" title="' . $strInsert . '" />';
$titles['Structure'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_props.png" alt="' . $strStructure . '" title="' . $strStructure . '" />';
$titles['Drop'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_drop.png" alt="' . $strDrop . '" title="' . $strDrop . '" />';
$titles['NoDrop'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'bd_drop.png" alt="' . $strDrop . '" title="' . $strDrop . '" />';
$titles['Empty'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_empty.png" alt="' . $strEmpty . '" title="' . $strEmpty . '" />';
$titles['NoEmpty'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'bd_empty.png" alt="' . $strEmpty . '" title="' . $strEmpty . '" />';
$titles['Browse'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_browse.png" alt="' . __('Browse') . '" title="' . __('Browse') . '" />';
$titles['NoBrowse'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'bd_browse.png" alt="' . __('Browse') . '" title="' . __('Browse') . '" />';
$titles['Search'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_select.png" alt="' . __('Search') . '" title="' . __('Search') . '" />';
$titles['NoSearch'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'bd_select.png" alt="' . __('Search') . '" title="' . __('Search') . '" />';
$titles['Insert'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_insrow.png" alt="' . __('Insert') . '" title="' . __('Insert') . '" />';
$titles['NoInsert'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'bd_insrow.png" alt="' . __('Insert') . '" title="' . __('Insert') . '" />';
$titles['Structure'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_props.png" alt="' . __('Structure') . '" title="' . __('Structure') . '" />';
$titles['Drop'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_drop.png" alt="' . __('Drop') . '" title="' . __('Drop') . '" />';
$titles['NoDrop'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'bd_drop.png" alt="' . __('Drop') . '" title="' . __('Drop') . '" />';
$titles['Empty'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_empty.png" alt="' . __('Empty') . '" title="' . __('Empty') . '" />';
$titles['NoEmpty'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'bd_empty.png" alt="' . __('Empty') . '" title="' . __('Empty') . '" />';
if ('both' === $cfg['PropertiesIconic']) {
$titles['Browse'] .= $strBrowse;
$titles['Search'] .= $strSearch;
$titles['NoBrowse'] .= $strBrowse;
$titles['NoSearch'] .= $strSearch;
$titles['Insert'] .= $strInsert;
$titles['NoInsert'] .= $strInsert;
$titles['Structure'] .= $strStructure;
$titles['Drop'] .= $strDrop;
$titles['NoDrop'] .= $strDrop;
$titles['Empty'] .= $strEmpty;
$titles['NoEmpty'] .= $strEmpty;
$titles['Browse'] .= __('Browse');
$titles['Search'] .= __('Search');
$titles['NoBrowse'] .= __('Browse');
$titles['NoSearch'] .= __('Search');
$titles['Insert'] .= __('Insert');
$titles['NoInsert'] .= __('Insert');
$titles['Structure'] .= __('Structure');
$titles['Drop'] .= __('Drop');
$titles['NoDrop'] .= __('Drop');
$titles['Empty'] .= __('Empty');
$titles['NoEmpty'] .= __('Empty');
}
} else {
$titles['Browse'] = $strBrowse;
$titles['Search'] = $strSearch;
$titles['NoBrowse'] = $strBrowse;
$titles['NoSearch'] = $strSearch;
$titles['Insert'] = $strInsert;
$titles['NoInsert'] = $strInsert;
$titles['Structure'] = $strStructure;
$titles['Drop'] = $strDrop;
$titles['NoDrop'] = $strDrop;
$titles['Empty'] = $strEmpty;
$titles['NoEmpty'] = $strEmpty;
$titles['Browse'] = __('Browse');
$titles['Search'] = __('Search');
$titles['NoBrowse'] = __('Browse');
$titles['NoSearch'] = __('Search');
$titles['Insert'] = __('Insert');
$titles['NoInsert'] = __('Insert');
$titles['Structure'] = __('Structure');
$titles['Drop'] = __('Drop');
$titles['NoDrop'] = __('Drop');
$titles['Empty'] = __('Empty');
$titles['NoEmpty'] = __('Empty');
}
/**
@@ -313,7 +313,7 @@ foreach ($tables as $keyname => $each_table) {
. '&amp;sql_query=';
$empty_table .= urlencode('TRUNCATE ' . PMA_backquote($each_table['TABLE_NAME']))
. '&amp;zero_rows='
. urlencode(sprintf($strTableHasBeenEmptied, htmlspecialchars($each_table['TABLE_NAME'])))
. urlencode(sprintf(__('Table %s has been emptied'), htmlspecialchars($each_table['TABLE_NAME'])))
. '" onclick="return confirmLink(this, \'TRUNCATE ';
$empty_table .= PMA_jsFormat($each_table['TABLE_NAME']) . '\')">' . $titles['Empty'] . '</a>';
} else {
@@ -323,16 +323,16 @@ foreach ($tables as $keyname => $each_table) {
. ($table_is_view ? 'VIEW' : 'TABLE')
. ' ' . PMA_backquote($each_table['TABLE_NAME']);
$drop_message = sprintf(
$table_is_view ? $strViewHasBeenDropped : $strTableHasBeenDropped,
$table_is_view ? __('View %s has been dropped') : __('Table %s has been dropped'),
str_replace(' ', '&nbsp;', htmlspecialchars($each_table['TABLE_NAME'])));
}
$tracking_icon = '';
if (PMA_Tracker::isActive()) {
if (PMA_Tracker::isTracked($GLOBALS["db"], $truename)) {
$tracking_icon = '<a href="tbl_tracking.php?' . $url_query.'&amp;table=' . $truename . '"><img class="icon" width="14" height="14" src="' . $pmaThemeImage . 'eye.png" alt="' . $strTrackingIsActive . '" title="' . $strTrackingIsActive . '" /></a>';
$tracking_icon = '<a href="tbl_tracking.php?' . $url_query.'&amp;table=' . $truename . '"><img class="icon" width="14" height="14" src="' . $pmaThemeImage . 'eye.png" alt="' . __('Tracking is active.') . '" title="' . __('Tracking is active.') . '" /></a>';
} elseif (PMA_Tracker::getVersion($GLOBALS["db"], $truename) > 0) {
$tracking_icon = '<a href="tbl_tracking.php?' . $url_query . '&amp;table=' . $truename . '"><img class="icon" width="14" height="14" src="' . $pmaThemeImage . 'eye_grey.png" alt="' . $strTrackingIsNotActive . '" title="' . $strTrackingIsNotActive . '" /></a>';
$tracking_icon = '<a href="tbl_tracking.php?' . $url_query . '&amp;table=' . $truename . '"><img class="icon" width="14" height="14" src="' . $pmaThemeImage . 'eye_grey.png" alt="' . __('Tracking is not active.') . '" title="' . __('Tracking is not active.') . '" /></a>';
}
}
@@ -417,7 +417,7 @@ foreach ($tables as $keyname => $each_table) {
if ($each_table['TABLE_ROWS'] >= $GLOBALS['cfg']['MaxExactCountViews']){
$row_count_pre = '~';
$sum_row_count_pre = '~';
$show_superscript = PMA_showHint(PMA_sanitize(sprintf($strViewHasAtLeast, '[a@./Documentation.html#cfg_MaxExactCountViews@_blank]', '[/a]')));
$show_superscript = PMA_showHint(PMA_sanitize(sprintf(__('This view has at least this number of rows. Please refer to %sdocumentation%s.'), '[a@./Documentation.html#cfg_MaxExactCountViews@_blank]', '[/a]')));
}
} elseif($each_table['ENGINE'] == 'InnoDB' && (! $each_table['COUNTED'])) {
// InnoDB table: we did not get an accurate row count
@@ -431,7 +431,7 @@ foreach ($tables as $keyname => $each_table) {
?>
<td class="value"><?php echo $row_count_pre . PMA_formatNumber($each_table['TABLE_ROWS'], 0) . $show_superscript; ?></td>
<?php if (!($cfg['PropertiesNumColumns'] > 1)) { ?>
<td nowrap="nowrap"><?php echo ($table_is_view ? $strView : $each_table['ENGINE']); ?></td>
<td nowrap="nowrap"><?php echo ($table_is_view ? __('View') : $each_table['ENGINE']); ?></td>
<?php if (isset($collation)) { ?>
<td nowrap="nowrap"><?php echo $collation ?></td>
<?php } ?>
@@ -445,7 +445,7 @@ foreach ($tables as $keyname => $each_table) {
<?php } // end if ?>
<?php } elseif ($table_is_view) { ?>
<td class="value">-</td>
<td><?php echo $strView; ?></td>
<td><?php echo __('View'); ?></td>
<td>---</td>
<?php if ($is_show_stats) { ?>
<td class="value">-</td>
@@ -454,7 +454,7 @@ foreach ($tables as $keyname => $each_table) {
<?php } else { ?>
<td colspan="<?php echo ($structure_tbl_col_cnt - ($db_is_information_schema ? 5 : 8)) ?>"
align="center">
<?php echo $strInUse; ?></td>
<?php echo __('in use'); ?></td>
<?php } // end if (isset($each_table['TABLE_ROWS'])) else ?>
</tr>
<?php
@@ -477,7 +477,7 @@ if ($is_show_stats) {
if ($num_tables == 0)
$tableReductionCount = 0;
echo sprintf($strTables, PMA_formatNumber($num_tables - $tableReductionCount, 0));
echo sprintf(__('%s table(s)'), PMA_formatNumber($num_tables - $tableReductionCount, 0));
?>
</th>
<?php
@@ -486,19 +486,19 @@ if ($is_show_stats) {
}
?>
<th colspan="<?php echo ($db_is_information_schema ? 3 : 6) ?>" align="center">
<?php echo $strSum; ?></th>
<?php echo __('Sum'); ?></th>
<th class="value"><?php echo $sum_row_count_pre . PMA_formatNumber($sum_entries, 0); ?></th>
<?php
if (!($cfg['PropertiesNumColumns'] > 1)) {
$default_engine = PMA_DBI_get_default_engine();
echo ' <th align="center">' . "\n"
. ' <dfn title="'
. sprintf($strDefaultEngine, $default_engine) . '">' .$default_engine . '</dfn></th>' . "\n";
. sprintf(__('%s is the default storage engine on this MySQL server.'), $default_engine) . '">' .$default_engine . '</dfn></th>' . "\n";
// we got a case where $db_collation was empty
echo ' <th align="center">' . "\n";
if (! empty($db_collation)) {
echo ' <dfn title="'
. PMA_getCollationDescr($db_collation) . ' (' . $strDefault . ')">' . $db_collation
. PMA_getCollationDescr($db_collation) . ' (' . __('Default') . ')">' . $db_collation
. '</dfn>';
}
echo '</th>';
@@ -521,41 +521,41 @@ if ($is_show_stats) {
$checkall_url = 'db_structure.php?' . PMA_generate_common_url($db);
?>
<img class="selectallarrow" src="<?php echo $pmaThemeImage .'arrow_'.$text_dir.'.png'; ?>"
width="38" height="22" alt="<?php echo $strWithChecked; ?>" />
width="38" height="22" alt="<?php echo __('With selected:'); ?>" />
<a href="<?php echo $checkall_url; ?>&amp;checkall=1"
onclick="if (markAllRows('tablesForm')) return false;">
<?php echo $strCheckAll; ?></a>
<?php echo __('Check All'); ?></a>
/
<a href="<?php echo $checkall_url; ?>"
onclick="if (unMarkAllRows('tablesForm')) return false;">
<?php echo $strUncheckAll; ?></a>
<?php echo __('Uncheck All'); ?></a>
<?php if ($overhead_check != '') { ?>
/
<a href="#" onclick="unMarkAllRows('tablesForm');
<?php echo $overhead_check; ?> return false;">
<?php echo $strCheckOverhead; ?></a>
<?php echo __('Check tables having overhead'); ?></a>
<?php } ?>
<select name="submit_mult" onchange="this.form.submit();" style="margin: 0 3em 0 3em;">
<?php
echo ' <option value="' . $strWithChecked . '" selected="selected">'
. $strWithChecked . '</option>' . "\n";
echo ' <option value="' . $strEmpty . '" >'
. $strEmpty . '</option>' . "\n";
echo ' <option value="' . $strDrop . '" >'
. $strDrop . '</option>' . "\n";
echo ' <option value="' . $strPrintView . '" >'
. $strPrintView . '</option>' . "\n";
echo ' <option value="' . $strCheckTable . '" >'
. $strCheckTable . '</option>' . "\n";
echo ' <option value="' . $strOptimizeTable . '" >'
. $strOptimizeTable . '</option>' . "\n";
echo ' <option value="' . $strRepairTable . '" >'
. $strRepairTable . '</option>' . "\n";
echo ' <option value="' . $strAnalyzeTable . '" >'
. $strAnalyzeTable . '</option>' . "\n";
echo ' <option value="' . $strExport . '" >'
. $strExport . '</option>' . "\n";
echo ' <option value="' . __('With selected:') . '" selected="selected">'
. __('With selected:') . '</option>' . "\n";
echo ' <option value="' . __('Empty') . '" >'
. __('Empty') . '</option>' . "\n";
echo ' <option value="' . __('Drop') . '" >'
. __('Drop') . '</option>' . "\n";
echo ' <option value="' . __('Print view') . '" >'
. __('Print view') . '</option>' . "\n";
echo ' <option value="' . __('Check table') . '" >'
. __('Check table') . '</option>' . "\n";
echo ' <option value="' . __('Optimize table') . '" >'
. __('Optimize table') . '</option>' . "\n";
echo ' <option value="' . __('Repair table') . '" >'
. __('Repair table') . '</option>' . "\n";
echo ' <option value="' . __('Analyze table') . '" >'
. __('Analyze table') . '</option>' . "\n";
echo ' <option value="' . __('Export') . '" >'
. __('Export') . '</option>' . "\n";
?>
</select>
<script type="text/javascript">
@@ -564,7 +564,7 @@ echo ' <option value="' . $strExport . '" >'
//-->
</script>
<noscript>
<input type="submit" value="<?php echo $strGo; ?>" />
<input type="submit" value="<?php echo __('Go'); ?>" />
</noscript>
<?php echo implode("\n", $hidden_fields) . "\n"; ?>
</div>
@@ -596,14 +596,14 @@ if ($cfg['PropertiesIconic']) {
echo '<img class="icon" src="' . $pmaThemeImage
.'b_print.png" width="16" height="16" alt="" />';
}
echo $strPrintView . '</a> ';
echo __('Print view') . '</a> ';
echo '<a href="./db_datadict.php?' . $url_query . '">';
if ($cfg['PropertiesIconic']) {
echo '<img class="icon" src="' . $pmaThemeImage
.'b_tblanalyse.png" width="16" height="16" alt="" />';
}
echo $strDataDict . '</a>';
echo __('Data Dictionary') . '</a>';
echo '</p>';
if (empty($db_is_information_schema)) {

View File

@@ -32,7 +32,7 @@ $data = PMA_Tracker::getTrackedData($_REQUEST['db'], '', '1');
// No tables present and no log exist
if ($num_tables == 0 && count($data['ddlog']) == 0) {
echo '<p>' . $strNoTablesFound . '</p>' . "\n";
echo '<p>' . __('No tables found in database.') . '</p>' . "\n";
if (empty($db_is_information_schema)) {
require './libraries/display_create_table.lib.php';
@@ -63,19 +63,19 @@ $all_tables_result = PMA_query_as_controluser($all_tables_query);
// If a HEAD version exists
if (PMA_DBI_num_rows($all_tables_result) > 0) {
?>
<h3><?php echo $strTrackingTrackedTables;?></h3>
<h3><?php echo __('Tracked tables');?></h3>
<table id="versions" class="data">
<thead>
<tr>
<th><?php echo $strDatabase;?></th>
<th><?php echo $strTable;?></th>
<th><?php echo $strTrackingThLastVersion;?></th>
<th><?php echo $strTrackingThCreated;?></th>
<th><?php echo $strTrackingThUpdated;?></th>
<th><?php echo $strStatus;?></th>
<th><?php echo $strAction;?></th>
<th><?php echo $strShow;?></th>
<th><?php echo __('Database');?></th>
<th><?php echo __('Table');?></th>
<th><?php echo __('Last version');?></th>
<th><?php echo __('Created');?></th>
<th><?php echo __('Updated');?></th>
<th><?php echo __('Status');?></th>
<th><?php echo __('Action');?></th>
<th><?php echo __('Show');?></th>
</tr>
</thead>
<tbody>
@@ -85,10 +85,10 @@ if (PMA_DBI_num_rows($all_tables_result) > 0) {
$drop_image_or_text = '';
if (true == $GLOBALS['cfg']['PropertiesIconic']) {
$drop_image_or_text .= '<img class="icon" width="16" height="16" src="' . $pmaThemeImage . 'b_drop.png" alt="' . $strDeleteTrackingData . '" title="' . $strDeleteTrackingData . '" />';
$drop_image_or_text .= '<img class="icon" width="16" height="16" src="' . $pmaThemeImage . 'b_drop.png" alt="' . __('Delete tracking data for this table') . '" title="' . __('Delete tracking data for this table') . '" />';
}
if ('both' === $GLOBALS['cfg']['PropertiesIconic'] || false === $GLOBALS['cfg']['PropertiesIconic']) {
$drop_image_or_text .= $strDrop;
$drop_image_or_text .= __('Drop');
}
$style = 'odd';
@@ -103,9 +103,9 @@ if (PMA_DBI_num_rows($all_tables_result) > 0) {
$version_data = PMA_DBI_fetch_array($table_result);
if ($version_data['tracking_active'] == 1) {
$version_status = $strTrackingStatusActive;
$version_status = __('active');
} else {
$version_status = $strTrackingStatusNotActive;
$version_status = __('not active');
}
$tmp_link = 'tbl_tracking.php?' . $url_query . '&amp;table=' . htmlspecialchars($version_data['table_name']);
$delete_link = 'db_tracking.php?' . $url_query . '&amp;table=' . htmlspecialchars($version_data['table_name']) . '&amp;delete_tracking=true&amp';
@@ -117,10 +117,10 @@ if (PMA_DBI_num_rows($all_tables_result) > 0) {
<td><?php echo $version_data['date_created'];?></td>
<td><?php echo $version_data['date_updated'];?></td>
<td><?php echo $version_status;?></td>
<td><a href="<?php echo $delete_link;?>" onclick="return confirmLink(this, '<?php echo PMA_jsFormat($strDeleteTrackingData, false); ?>')"><?php echo $drop_image_or_text; ?></a></td>
<td> <a href="<?php echo $tmp_link; ?>"><?php echo $strTrackingVersions;?></a>
| <a href="<?php echo $tmp_link; ?>&amp;report=true&amp;version=<?php echo $version_data['version'];?>"><?php echo $strTrackingReport;?></a>
| <a href="<?php echo $tmp_link; ?>&amp;snapshot=true&amp;version=<?php echo $version_data['version'];?>"><?php echo $strTrackingStructureSnapshot;?></a></td>
<td><a href="<?php echo $delete_link;?>" onclick="return confirmLink(this, '<?php echo PMA_jsFormat(__('Delete tracking data for this table'), false); ?>')"><?php echo $drop_image_or_text; ?></a></td>
<td> <a href="<?php echo $tmp_link; ?>"><?php echo __('Versions');?></a>
| <a href="<?php echo $tmp_link; ?>&amp;report=true&amp;version=<?php echo $version_data['version'];?>"><?php echo __('Tracking report');?></a>
| <a href="<?php echo $tmp_link; ?>&amp;snapshot=true&amp;version=<?php echo $version_data['version'];?>"><?php echo __('Structure snapshot');?></a></td>
</tr>
<?php
if ($style == 'even') {
@@ -149,12 +149,12 @@ foreach ($table_list as $key => $value) {
// If untracked tables exist
if (isset($my_tables)) {
?>
<h3><?php echo $strTrackingUntrackedTables;?></h3>
<h3><?php echo __('Untracked tables');?></h3>
<table id="noversions" class="data">
<thead>
<tr>
<th width="300"><?php echo $strTable;?></th>
<th width="300"><?php echo __('Table');?></th>
<th></th>
</tr>
</thead>
@@ -169,9 +169,9 @@ if (isset($my_tables)) {
$my_link = '<a href="tbl_tracking.php?' . $url_query . '&amp;table=' . htmlspecialchars($tablename) .'">';
if ($cfg['PropertiesIconic']) {
$my_link .= '<img class="icon" src="' . $pmaThemeImage . 'eye.png" width="16" height="16" alt="' . $strTrackingTrackTable . '" /> ';
$my_link .= '<img class="icon" src="' . $pmaThemeImage . 'eye.png" width="16" height="16" alt="' . __('Track table') . '" /> ';
}
$my_link .= $strTrackingTrackTable . '</a>';
$my_link .= __('Track table') . '</a>';
?>
<tr class="<?php echo $style;?>">
<td><?php echo htmlspecialchars($tablename);?></td>
@@ -197,7 +197,7 @@ if (count($data['ddlog']) > 0) {
foreach ($data['ddlog'] as $entry) {
$log .= '# ' . $entry['date'] . ' ' . $entry['username'] . "\n" . $entry['statement'] . "\n";
}
PMA_showMessage($strTrackingDatabaseLog, $log);
PMA_showMessage(__('Database Log'), $log);
}
/**

View File

@@ -400,7 +400,7 @@ if (!empty($id_bookmark) && $action_bookmark == 2) {
} elseif (!empty($id_bookmark) && $action_bookmark == 1) {
$message = PMA_Message::notice('strShowingBookmark');
} elseif ($bookmark_created) {
$special_message = '[br]' . sprintf($strBookmarkCreated, htmlspecialchars($bkm_label));
$special_message = '[br]' . sprintf(__('Bookmark %s created'), htmlspecialchars($bkm_label));
} elseif ($finished && !$error) {
if ($import_type == 'query') {
$message = PMA_Message::success();

View File

@@ -36,7 +36,7 @@ if (function_exists('mcrypt_encrypt')) {
srand((double) microtime() * 1000000);
$td = mcrypt_module_open(MCRYPT_BLOWFISH, '', MCRYPT_MODE_CBC, '');
if ($td === false) {
trigger_error(PMA_sanitize(sprintf($strCantLoad, 'mcrypt')), E_USER_WARNING);
trigger_error(PMA_sanitize(sprintf(__('Cannot load [a@http://php.net/%1@Documentation][em]%1[/em][/a] extension. Please check your PHP configuration.'), 'mcrypt')), E_USER_WARNING);
}
$iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td), MCRYPT_RAND);
$GLOBALS['PMA_Config']->setCookie('pma_mcrypt_iv', base64_encode($iv));
@@ -79,7 +79,7 @@ if (function_exists('mcrypt_encrypt')) {
} else {
require_once './libraries/blowfish.php';
if (!$GLOBALS['cfg']['McryptDisableWarning']) {
trigger_error(PMA_sanitize(sprintf($strCantLoad, 'mcrypt')), E_USER_WARNING);
trigger_error(PMA_sanitize(sprintf(__('Cannot load [a@http://php.net/%1@Documentation][em]%1[/em][/a] extension. Please check your PHP configuration.'), 'mcrypt')), E_USER_WARNING);
}
}

View File

@@ -18,13 +18,13 @@ if (isset($cfg['AllowAnywhereRecoding'])
if ($cfg['RecodingEngine'] == 'recode') {
if (!@extension_loaded('recode')) {
echo $strCantLoadRecodeIconv;
echo __('Couldn\'t load the iconv or recode extension needed for charset conversion. Either configure PHP to enable these extensions or disable charset conversion in phpMyAdmin.');
exit;
}
$PMA_recoding_engine = 'recode';
} elseif ($cfg['RecodingEngine'] == 'iconv') {
if (!@extension_loaded('iconv')) {
echo $strCantLoadRecodeIconv;
echo __('Couldn\'t load the iconv or recode extension needed for charset conversion. Either configure PHP to enable these extensions or disable charset conversion in phpMyAdmin.');
exit;
}
$PMA_recoding_engine = 'iconv';
@@ -34,7 +34,7 @@ if (isset($cfg['AllowAnywhereRecoding'])
} elseif (@extension_loaded('recode')) {
$PMA_recoding_engine = 'recode';
} else {
echo $strCantLoadRecodeIconv;
echo __('Couldn\'t load the iconv or recode extension needed for charset conversion. Either configure PHP to enable these extensions or disable charset conversion in phpMyAdmin.');
exit;
}
}
@@ -72,7 +72,7 @@ if (isset($cfg['AllowAnywhereRecoding'])
if (!isset($GLOBALS['is_header_sent'])) {
include './libraries/header.inc.php';
}
echo $strCantUseRecodeIconv;
echo __('Couldn\'t use the iconv, libiconv, or recode_string functions, although the necessary extensions appear to be loaded. Check your PHP configuration.');
require_once './libraries/footer.inc.php';
exit();
}
@@ -83,7 +83,7 @@ if (isset($cfg['AllowAnywhereRecoding'])
$PMA_recoding_engine = PMA_CHARSET_NONE;
require_once './libraries/header.inc.php';
echo $strCantUseRecodeIconv;
echo __('Couldn\'t use the iconv, libiconv, or recode_string functions, although the necessary extensions appear to be loaded. Check your PHP configuration.');
require_once './libraries/footer.inc.php';
exit;
}
@@ -102,7 +102,7 @@ if (isset($cfg['AllowAnywhereRecoding'])
$PMA_recoding_engine = PMA_CHARSET_NONE;
require_once './libraries/header.inc.php';
echo $strCantUseRecodeIconv;
echo __('Couldn\'t use the iconv, libiconv, or recode_string functions, although the necessary extensions appear to be loaded. Check your PHP configuration.');
require_once './libraries/footer.inc.php';
exit;
}

View File

@@ -580,7 +580,7 @@ require_once './libraries/select_lang.lib.php';
* this check is done here after loading language files to present errors in locale
*/
if ($GLOBALS['PMA_Config']->error_config_file) {
$error = $strConfigFileError
$error = __('phpMyAdmin was unable to read your configuration file!<br />This might happen if PHP finds a parse error in it or PHP cannot find the file.<br />Please call the configuration file directly using the link below and read the PHP error message(s) that you receive. In most cases a quote or a semicolon is missing somewhere.<br />If you receive a blank page, everything is fine.')
. '<br /><br />'
. ($GLOBALS['PMA_Config']->getSource() == CONFIG_FILE ?
'<a href="show_config_errors.php"'
@@ -591,12 +591,12 @@ if ($GLOBALS['PMA_Config']->error_config_file) {
trigger_error($error, E_USER_ERROR);
}
if ($GLOBALS['PMA_Config']->error_config_default_file) {
$error = sprintf($strConfigDefaultFileError,
$error = sprintf(__('Could not load default configuration from: %1'),
$GLOBALS['PMA_Config']->default_source);
trigger_error($error, E_USER_ERROR);
}
if ($GLOBALS['PMA_Config']->error_pma_uri) {
trigger_error($strPmaUriError, E_USER_ERROR);
trigger_error(__('The <tt>$cfg[\'PmaAbsoluteUri\']</tt> directive MUST be set in your configuration file!'), E_USER_ERROR);
}
@@ -626,14 +626,14 @@ if (!isset($cfg['Servers']) || count($cfg['Servers']) == 0) {
// Detect wrong configuration
if (!is_int($server_index) || $server_index < 1) {
trigger_error(sprintf($strInvalidServerIndex, $server_index), E_USER_ERROR);
trigger_error(sprintf(__('Invalid server index: %s'), $server_index), E_USER_ERROR);
}
$each_server = array_merge($default_server, $each_server);
// Don't use servers with no hostname
if ($each_server['connect_type'] == 'tcp' && empty($each_server['host'])) {
trigger_error(sprintf($strInvalidServerHostname, $server_index), E_USER_ERROR);
trigger_error(sprintf(__('Invalid hostname for server %1. Please review your configuration.'), $server_index), E_USER_ERROR);
}
// Final solution to bug #582890
@@ -820,7 +820,7 @@ if (! defined('PMA_MINIMUM_COMMON')) {
// to allow HTTP or http
$cfg['Server']['auth_type'] = strtolower($cfg['Server']['auth_type']);
if (! file_exists('./libraries/auth/' . $cfg['Server']['auth_type'] . '.auth.lib.php')) {
PMA_fatalError($strInvalidAuthMethod . ' ' . $cfg['Server']['auth_type']);
PMA_fatalError(__('Invalid authentication method set in configuration:') . ' ' . $cfg['Server']['auth_type']);
}
/**
* the required auth type plugin

View File

@@ -231,11 +231,7 @@ function PMA_fatalError($error_message, $message_args = null)
// Loads the language file
require_once './libraries/select_lang.lib.php';
if (isset($strError)) {
$GLOBALS['strError'] = $strError;
} else {
$GLOBALS['strError'] = 'Error';
}
$GLOBALS['strError'] = __('Error');
// $text_dir is set in po file
if (isset($text_dir)) {

View File

@@ -17,9 +17,9 @@ $url_query .= '&amp;goto=db_structure.php';
$events = PMA_DBI_fetch_result('SELECT EVENT_NAME, EVENT_TYPE FROM information_schema.EVENTS WHERE EVENT_SCHEMA= \'' . PMA_sqlAddslashes($db,true) . '\';');
if ($events) {
PMA_generate_slider_effect('events', $strEvents);
PMA_generate_slider_effect('events', __('Events'));
echo '<fieldset>' . "\n";
echo ' <legend>' . $strEvents . '</legend>' . "\n";
echo ' <legend>' . __('Events') . '</legend>' . "\n";
echo '<table border="0">';
echo sprintf('<tr>
<th>%s</th>
@@ -27,8 +27,8 @@ if ($events) {
<th>&nbsp;</th>
<th>%s</th>
</tr>',
$strName,
$strType);
__('Name'),
__('Type'));
$ct=0;
$delimiter = '//';
foreach ($events as $event) {

View File

@@ -54,9 +54,9 @@ if (($is_superuser || $GLOBALS['cfg']['AllowUserDropDatabase']) && ! $db_is_info
* export, search and qbe links if there is at least one table
*/
if ($num_tables == 0) {
$tab_qbe['warning'] = $strDbIsEmpty;
$tab_search['warning'] = $strDbIsEmpty;
$tab_export['warning'] = $strDbIsEmpty;
$tab_qbe['warning'] = __('Database seems to be empty!');
$tab_search['warning'] = __('Database seems to be empty!');
$tab_export['warning'] = __('Database seems to be empty!');
}
$tab_structure['link'] = 'db_structure.php';

View File

@@ -27,9 +27,9 @@ $url_query .= '&amp;goto=db_structure.php';
$routines = PMA_DBI_fetch_result('SELECT SPECIFIC_NAME,ROUTINE_NAME,ROUTINE_TYPE,DTD_IDENTIFIER FROM information_schema.ROUTINES WHERE ROUTINE_SCHEMA= \'' . PMA_sqlAddslashes($db,true) . '\';');
if ($routines) {
PMA_generate_slider_effect('routines', $strRoutines);
PMA_generate_slider_effect('routines', __('Routines'));
echo '<fieldset>' . "\n";
echo ' <legend>' . $strRoutines . '</legend>' . "\n";
echo ' <legend>' . __('Routines') . '</legend>' . "\n";
echo '<table border="0">';
echo sprintf('<tr>
<th>%s</th>
@@ -38,9 +38,9 @@ if ($routines) {
<th>%s</th>
<th>%s</th>
</tr>',
$strName,
$strType,
$strRoutineReturnType);
__('Name'),
__('Type'),
__('Return type'));
$ct=0;
$delimiter = '//';
foreach ($routines as $routine) {

View File

@@ -49,7 +49,7 @@ $chg_evt_handler = (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER >= 5)
</tr>
<tr>
<td>
<?php echo $strPasswordHashing; ?>:
<?php echo __('Password Hashing'); ?>:
</td>
<td>
<input type="radio" name="pw_hash" id="radio_pw_hash_new" value="new" checked="checked" />
@@ -63,22 +63,22 @@ $chg_evt_handler = (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER >= 5)
<td>
<input type="radio" name="pw_hash" id="radio_pw_hash_old" value="old" />
<label for="radio_pw_hash_old">
<?php echo $strCompatibleHashing; ?>
<?php echo __('MySQL 4.0 compatible'); ?>
</label>
</td>
</tr>
<tr>
<td>
<?php echo $strGeneratePassword; ?>
<?php echo __('Generate Password'); ?>
</td>
<td>
<input type="button" id="button_generate_password" value="<?php echo $strGenerate; ?>" onclick="suggestPassword(this.form)" />
<input type="button" id="button_generate_password" value="<?php echo __('Generate'); ?>" onclick="suggestPassword(this.form)" />
<input type="text" name="generated_pw" id="generated_pw" />
</td>
</tr>
</table>
</fieldset>
<fieldset id="fieldset_change_password_footer" class="tblFooters">
<input type="submit" name="change_pw" value="<?php echo($strGo); ?>" />
<input type="submit" name="change_pw" value="<?php echo(__('Go')); ?>" />
</fieldset>
</form>

View File

@@ -19,7 +19,7 @@ if ($is_create_db_priv) {
// The user is allowed to create a db
?>
<form method="post" action="db_create.php"><strong>
<?php echo '<label for="text_create_db">' . $strCreateNewDatabase . '</label>&nbsp;' . PMA_showMySQLDocu('SQL-Syntax', 'CREATE_DATABASE'); ?></strong><br />
<?php echo '<label for="text_create_db">' . __('Create new database') . '</label>&nbsp;' . PMA_showMySQLDocu('SQL-Syntax', 'CREATE_DATABASE'); ?></strong><br />
<?php echo PMA_generate_common_hidden_inputs('', '', 5); ?>
<input type="hidden" name="reload" value="1" />
<input type="text" name="new_db" value="<?php echo $db_to_create; ?>" maxlength="64" class="textfield" id="text_create_db"/>
@@ -27,16 +27,16 @@ if ($is_create_db_priv) {
require_once './libraries/mysql_charsets.lib.php';
echo PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_COLLATION, 'db_collation', null, null, TRUE, 5);
?>
<input type="submit" value="<?php echo $strCreate; ?>" id="buttonGo" />
<input type="submit" value="<?php echo __('Create'); ?>" id="buttonGo" />
</form>
<?php
} else {
?>
<!-- db creation no privileges message -->
<strong><?php echo $strCreateNewDatabase . ':&nbsp;' . PMA_showMySQLDocu('SQL-Syntax', 'CREATE_DATABASE'); ?></strong><br />
<strong><?php echo __('Create new database') . ':&nbsp;' . PMA_showMySQLDocu('SQL-Syntax', 'CREATE_DATABASE'); ?></strong><br />
<?php
echo '<span class="noPrivileges">'
. ($cfg['ErrorIconic'] ? '<img src="' . $pmaThemeImage . 's_error2.png" alt="" width="11" height="11" hspace="2" border="0" align="middle" />' : '')
. '' . $strNoPrivileges .'</span>';
. '' . __('No Privileges') .'</span>';
} // end create db form or message
?>

View File

@@ -45,21 +45,21 @@ $is_create_table_priv = true;
if ($GLOBALS['cfg']['PropertiesIconic']) {
echo '<img class="icon" src="' . $pmaThemeImage . 'b_newtbl.png" width="16" height="16" alt="" />';
}
echo sprintf($strCreateNewTable, PMA_getDbLink());
echo sprintf(__('Create table on database %s'), PMA_getDbLink());
?>
</legend>
<?php echo PMA_generate_common_hidden_inputs($db); ?>
<div class="formelement">
<?php echo $strName; ?>:
<?php echo __('Name'); ?>:
<input type="text" name="table" maxlength="64" size="30" />
</div>
<div class="formelement">
<?php echo $strNumberOfFields; ?>:
<?php echo __('Number of fields'); ?>:
<input type="text" name="num_fields" size="2" />
</div>
<div class="clearfloat"></div>
</fieldset>
<fieldset class="tblFooters">
<input type="submit" value="<?php echo $strGo; ?>" />
<input type="submit" value="<?php echo __('Go'); ?>" />
</fieldset>
</form>

View File

@@ -80,7 +80,7 @@ echo PMA_pluginGetJavascript($export_list);
<div id="div_container_exportoptions">
<fieldset id="exportoptions">
<legend><?php echo $strExport; ?></legend>
<legend><?php echo __('Export'); ?></legend>
<?php if (! empty($multi_values)) { ?>
<div class="formelementrow">
@@ -104,7 +104,7 @@ echo PMA_pluginGetJavascript($export_list);
<?php
echo '<input type="radio" name="allrows" value="0" id="radio_allrows_0" checked="checked" />';
echo sprintf($strDumpXRows,
echo sprintf(__('Dump %s row(s) starting at record # %s'),
'<input type="text" name="limit_to" size="5" value="'
. (isset($unlim_num_rows) ? $unlim_num_rows : PMA_Table::countRecords($db, $table))
. '" onfocus="this.select()" />',
@@ -112,7 +112,7 @@ echo PMA_pluginGetJavascript($export_list);
.' onfocus="this.select()" /> ');
echo '<input type="radio" name="allrows" value="1" id="radio_allrows_1" />';
echo '<label for="radio_allrows_1">' . $strDumpAllRows . '</label>';
echo '<label for="radio_allrows_1">' . __('Dump all rows') . '</label>';
?>
</div>
<?php } ?>
@@ -122,7 +122,7 @@ echo PMA_pluginGetJavascript($export_list);
<legend>
<input type="checkbox" name="asfile" value="sendit"
id="checkbox_dump_asfile" <?php PMA_exportCheckboxCheck('asfile'); ?> />
<label for="checkbox_dump_asfile"><?php echo $strSend; ?></label>
<label for="checkbox_dump_asfile"><?php echo __('Save as file'); ?></label>
</legend>
<?php if (isset($cfg['SaveDir']) && !empty($cfg['SaveDir'])) { ?>
@@ -131,7 +131,7 @@ echo PMA_pluginGetJavascript($export_list);
onclick="document.getElementById('checkbox_dump_asfile').checked = true;"
<?php PMA_exportCheckboxCheck('onserver'); ?> />
<label for="checkbox_dump_onserver">
<?php echo sprintf($strSaveOnServer, htmlspecialchars(PMA_userDir($cfg['SaveDir']))); ?>
<?php echo sprintf(__('Save on server in %s directory'), htmlspecialchars(PMA_userDir($cfg['SaveDir']))); ?>
</label>,<br />
<input type="checkbox" name="onserverover" value="saveitover"
id="checkbox_dump_onserverover"
@@ -139,13 +139,13 @@ echo PMA_pluginGetJavascript($export_list);
document.getElementById('checkbox_dump_asfile').checked = true;"
<?php PMA_exportCheckboxCheck('onserver_overwrite'); ?> />
<label for="checkbox_dump_onserverover">
<?php echo $strOverwriteExisting; ?></label>
<?php echo __('Overwrite existing file(s)'); ?></label>
<br />
<?php } ?>
<label for="filename_template">
<?php
echo $strFileNameTemplate;
echo __('File name template');
$trans = new PMA_Message;
$trans->addMessage('__SERVER__/');
@@ -161,7 +161,7 @@ echo PMA_pluginGetJavascript($export_list);
$message = new PMA_Message('strFileNameTemplateDescription');
$message->addParam('<a href="http://php.net/strftime" target="documentation" title="'
. $strDocu . '">', false);
. __('Documentation') . '">', false);
$message->addParam('</a>', false);
$message->addParam($trans);
@@ -199,7 +199,7 @@ echo PMA_pluginGetJavascript($export_list);
id="checkbox_remember_template"
<?php PMA_exportCheckboxCheck('remember_file_template'); ?> />
<label for="checkbox_remember_template">
<?php echo $strFileNameTemplateRemember; ?></label>
<?php echo __('remember template'); ?></label>
)
<div class="formelementrow">
@@ -207,7 +207,7 @@ echo PMA_pluginGetJavascript($export_list);
// charset of file
if ($cfg['AllowAnywhereRecoding']) {
echo ' <label for="select_charset_of_file">'
. $strCharsetOfFile . '</label>' . "\n";
. __('Character set of the file:') . '</label>' . "\n";
reset($cfg['AvailableCharsets']);
echo '<select id="select_charset_of_file" name="charset_of_file" size="1">';
@@ -232,31 +232,31 @@ $is_bzip = ($cfg['BZipDump'] && @function_exists('bzcompress'));
if ($is_zip || $is_gzip || $is_bzip) { ?>
<div class="formelementrow">
<?php echo $strCompression; ?>:
<?php echo __('Compression'); ?>:
<input type="radio" name="compression" value="none"
id="radio_compression_none"
onclick="document.getElementById('checkbox_dump_asfile').checked = true;"
<?php PMA_exportIsActive('compression', 'none'); ?> />
<label for="radio_compression_none"><?php echo $strNone; ?></label>
<label for="radio_compression_none"><?php echo __('None'); ?></label>
<?php
if ($is_zip) { ?>
<input type="radio" name="compression" value="zip"
id="radio_compression_zip"
onclick="document.getElementById('checkbox_dump_asfile').checked = true;"
<?php PMA_exportIsActive('compression', 'zip'); ?> />
<label for="radio_compression_zip"><?php echo $strZip; ?></label>
<label for="radio_compression_zip"><?php echo __('zipped'); ?></label>
<?php } if ($is_gzip) { ?>
<input type="radio" name="compression" value="gzip"
id="radio_compression_gzip"
onclick="document.getElementById('checkbox_dump_asfile').checked = true;"
<?php PMA_exportIsActive('compression', 'gzip'); ?> />
<label for="radio_compression_gzip"><?php echo $strGzip; ?></label>
<label for="radio_compression_gzip"><?php echo __('gzipped'); ?></label>
<?php } if ($is_bzip) { ?>
<input type="radio" name="compression" value="bzip"
id="radio_compression_bzip"
onclick="document.getElementById('checkbox_dump_asfile').checked = true;"
<?php PMA_exportIsActive('compression', 'bzip2'); ?> />
<label for="radio_compression_bzip"><?php echo $strBzip; ?></label>
<label for="radio_compression_bzip"><?php echo __('bzipped'); ?></label>
<?php } ?>
</div>
<?php } else { ?>
@@ -274,6 +274,6 @@ if ($is_zip || $is_gzip || $is_bzip) { ?>
<fieldset class="tblFooters">
<?php PMA_externalBug($GLOBALS['strSQLCompatibility'], 'mysql', '50027', '14515'); ?>
<input type="submit" value="<?php echo $strGo; ?>" id="buttonGo" />
<input type="submit" value="<?php echo __('Go'); ?>" id="buttonGo" />
</fieldset>
</form>

View File

@@ -64,7 +64,7 @@ if ($_SESSION[$SESSION_KEY]["handler"]!="noplugin") {
complete = response.complete;
if (total==0 && complete==0 && percent==0) {
$('#upload_form_status_info').html('<img src="<?php echo $GLOBALS['pmaThemeImage'];?>ajax_clock_small.gif" alt="ajax clock" /> <?php echo PMA_jsFormat($strImportLargeFileUploading); ?>');
$('#upload_form_status_info').html('<img src="<?php echo $GLOBALS['pmaThemeImage'];?>ajax_clock_small.gif" alt="ajax clock" /> <?php echo PMA_jsFormat(__('The file being uploaded is probably larger than the maximum allowed size or this is a known bug in webkit based (Safari, Google Chrome, Arora etc.) browsers.')); ?>');
$('#upload_form_status').css("display", "none");
} else {
$('#upload_form_status_info').html(' '+Math.round(percent)+'%, '+complete+'/'+total);
@@ -74,7 +74,7 @@ if ($_SESSION[$SESSION_KEY]["handler"]!="noplugin") {
if (finished==true) {
$('#importmain').css('display', 'none');
$('#import_form_status').css('display', 'inline');
$('#import_form_status').html('<img src="<?php echo $GLOBALS['pmaThemeImage'];?>ajax_clock_small.gif" alt="ajax clock" /> <?php echo $strImportProceedingFile; ?> ');
$('#import_form_status').html('<img src="<?php echo $GLOBALS['pmaThemeImage'];?>ajax_clock_small.gif" alt="ajax clock" /> <?php echo __('The file is being processed, please be patient.'); ?> ');
$('#import_form_status').load('import_status.php?message=true&<?php echo PMA_generate_common_url(); ?>'); // loads the message, either success or mysql error
<?php
// reload the left sidebar when the import is finished
@@ -96,7 +96,7 @@ if ($_SESSION[$SESSION_KEY]["handler"]!="noplugin") {
<?php
} else { // no plugin avaliable
?>
$('#upload_form_status_info').html('<img src="<?php echo $GLOBALS['pmaThemeImage'];?>ajax_clock_small.gif" alt="ajax clock" /> <?php echo $strImportUploadInfoNotAvailable . PMA_showDocu('faq2_9'); ?>');
$('#upload_form_status_info').html('<img src="<?php echo $GLOBALS['pmaThemeImage'];?>ajax_clock_small.gif" alt="ajax clock" /> <?php echo __('Please be patient, the file is being uploaded. Details about the upload are not available.') . PMA_showDocu('faq2_9'); ?>');
$('#upload_form_status').css("display", "none");
<?php
} // else
@@ -123,7 +123,7 @@ if ($_SESSION[$SESSION_KEY]["handler"]!="noplugin") {
echo PMA_pluginGetJavascript($import_list);
?>
<fieldset class="options">
<legend><?php echo $strFileToImport; ?></legend>
<legend><?php echo __('File to import'); ?></legend>
<?php
@@ -134,7 +134,7 @@ if ($_SESSION[$SESSION_KEY]["handler"]!="noplugin") {
<div id="upload_form_status" style="display: none;"></div>
<div id="upload_form_status_info" style="display: none;"></div>
<div id="upload_form_form">
<label for="input_import_file"><?php echo $strLocationTextfile; ?></label>
<label for="input_import_file"><?php echo __('Location of the text file'); ?></label>
<input style="margin: 5px" type="file" name="import_file" id="input_import_file" onchange="match_file(this.value);" />
<?php
echo PMA_displayMaximumUploadSize($max_upload_size) . "\n";
@@ -163,7 +163,7 @@ if ($_SESSION[$SESSION_KEY]["handler"]!="noplugin") {
PMA_Message::error('strWebServerUploadDirectoryError')->display();
} elseif (!empty($files)) {
echo "\n";
echo ' <i>' . $strOr . '</i><br/><label for="select_local_import_file">' . $strWebServerUploadDirectory . '</label>&nbsp;: ' . "\n";
echo ' <i>' . __('Or') . '</i><br/><label for="select_local_import_file">' . __('web server upload directory') . '</label>&nbsp;: ' . "\n";
echo ' <select style="margin: 5px" size="1" name="local_import_file" onchange="match_file(this.value)" id="select_local_import_file">' . "\n";
echo ' <option value="">&nbsp;</option>' . "\n";
echo $files;
@@ -175,7 +175,7 @@ if ($_SESSION[$SESSION_KEY]["handler"]!="noplugin") {
// charset of file
echo '<div class="formelementrow">' . "\n";
if ($cfg['AllowAnywhereRecoding']) {
echo '<label for="charset_of_file">' . $strCharsetOfFile . '</label>';
echo '<label for="charset_of_file">' . __('Character set of the file:') . '</label>';
reset($cfg['AvailableCharsets']);
echo '<select id="charset_of_file" name="charset_of_file" size="1">';
foreach ($cfg['AvailableCharsets'] as $temp_charset) {
@@ -188,13 +188,13 @@ if ($_SESSION[$SESSION_KEY]["handler"]!="noplugin") {
}
echo ' </select><br />';
} else {
echo '<label for="charset_of_file">' . $strCharsetOfFile . '</label>' . "\n";
echo '<label for="charset_of_file">' . __('Character set of the file:') . '</label>' . "\n";
echo PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_CHARSET, 'charset_of_file', 'charset_of_file', 'utf8', FALSE);
} // end if (recoding)
echo '</div>' . "\n";
// zip, gzip and bzip2 encode features
$compressions = $strNone;
$compressions = __('None');
if ($cfg['GZipDump'] && @function_exists('gzopen')) {
$compressions .= ', gzip';
@@ -207,36 +207,36 @@ if ($_SESSION[$SESSION_KEY]["handler"]!="noplugin") {
}
// We don't have show anything about compression, when no supported
if ($compressions != $strNone) {
if ($compressions != __('None')) {
echo '<div class="formelementrow">' . "\n";
printf($strCompressionWillBeDetected, $compressions);
printf(__('Imported file compression will be automatically detected from: %s'), $compressions);
echo '</div>' . "\n";
}
echo "\n";
?>
</fieldset>
<fieldset class="options">
<legend><?php echo $strPartialImport; ?></legend>
<legend><?php echo __('Partial import'); ?></legend>
<?php
if (isset($timeout_passed) && $timeout_passed) {
echo '<div class="formelementrow">' . "\n";
echo '<input type="hidden" name="skip" value="' . $offset . '" />';
echo sprintf($strTimeoutInfo, $offset) . '';
echo sprintf(__('Previous import timed out, after resubmitting will continue from position %d.'), $offset) . '';
echo '</div>' . "\n";
}
?>
<div class="formelementrow">
<input type="checkbox" name="allow_interrupt" value="yes"
id="checkbox_allow_interrupt" <?php echo PMA_pluginCheckboxCheck('Import', 'allow_interrupt'); ?>/>
<label for="checkbox_allow_interrupt"><?php echo $strAllowInterrupt; ?></label><br />
<label for="checkbox_allow_interrupt"><?php echo __('Allow the interruption of an import in case the script detects it is close to the PHP timeout limit. This might be good way to import large files, however it can break transactions.'); ?></label><br />
</div>
<?php
if (! (isset($timeout_passed) && $timeout_passed)) {
?>
<div class="formelementrow">
<label for="text_skip_queries"><?php echo $strSkipQueries; ?></label>
<label for="text_skip_queries"><?php echo __('Number of records (queries) to skip from start'); ?></label>
<input type="text" name="skip_queries" value="<?php echo PMA_pluginGetDefault('Import', 'skip_queries');?>" id="text_skip_queries" />
</div>
<?php
@@ -252,7 +252,7 @@ if ($_SESSION[$SESSION_KEY]["handler"]!="noplugin") {
</fieldset>
<fieldset class="options">
<legend><?php echo $strImportFormat; ?></legend>
<legend><?php echo __('Format of imported file'); ?></legend>
<?php
// Let's show format options now
echo '<div style="float: left;">';
@@ -273,7 +273,7 @@ if ($_SESSION[$SESSION_KEY]["handler"]!="noplugin") {
echo "\n";
?>
<fieldset class="tblFooters">
<input type="submit" value="<?php echo $strGo; ?>" id="buttonGo" />
<input type="submit" value="<?php echo __('Go'); ?>" id="buttonGo" />
</fieldset>
</form>
</div>

View File

@@ -289,15 +289,15 @@ function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = fals
$unsigned = preg_match('/UNSIGNED/i', $row['Type']);
$zerofill = preg_match('/ZEROFILL/i', $row['Type']);
}
$strAttribute = '&nbsp;';
$attribute = '&nbsp;';
if ($binary) {
$strAttribute = 'BINARY';
$attribute = 'BINARY';
}
if ($unsigned) {
$strAttribute = 'UNSIGNED';
$attribute = 'UNSIGNED';
}
if ($zerofill) {
$strAttribute = 'UNSIGNED ZEROFILL';
$attribute = 'UNSIGNED ZEROFILL';
}
if (! isset($row['Default'])) {
if ($row['Null'] != 'NO') {

View File

@@ -290,7 +290,7 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) {
*
* @access public
*/
// @@@ $strTableStructure
// @@@ Table structure
function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = false, $do_comments = false, $do_mime = false, $dates = false, $dummy)
{
global $cfgRelation;

View File

@@ -229,7 +229,7 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) {
*
* @access public
*/
// @@@ $strTableStructure
// @@@ Table structure
function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = false, $do_comments = false, $do_mime = false, $dates = false, $dummy)
{
global $cfgRelation;

View File

@@ -278,15 +278,15 @@ function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = fals
$unsigned = preg_match('/UNSIGNED/i', $row['Type']);
$zerofill = preg_match('/ZEROFILL/i', $row['Type']);
}
$strAttribute = '&nbsp;';
$attribute = '&nbsp;';
if ($binary) {
$strAttribute = 'BINARY';
$attribute = 'BINARY';
}
if ($unsigned) {
$strAttribute = 'UNSIGNED';
$attribute = 'UNSIGNED';
}
if ($zerofill) {
$strAttribute = 'UNSIGNED ZEROFILL';
$attribute = 'UNSIGNED ZEROFILL';
}
if (! isset($row['Default'])) {
if ($row['Null'] != 'NO') {

View File

@@ -112,7 +112,7 @@ if (empty($GLOBALS['is_header_sent'])) {
printf($item,
$action,
PMA_generate_common_url($GLOBALS['db']),
$strNewTable,
__('New table'),
'',
's_tbl.png');
} elseif (strlen($GLOBALS['table'])) {

View File

@@ -47,20 +47,20 @@ if ($text_dir == 'ltr') {
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
<link rel="icon" href="./favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
<title><?php echo $strSQLResult; ?> - phpMyAdmin <?php echo PMA_VERSION ?></title>
<title><?php echo __('SQL result'); ?> - phpMyAdmin <?php echo PMA_VERSION ?></title>
<link rel="stylesheet" type="text/css" href="phpmyadmin.css.php?<?php echo PMA_generate_common_url('', ''); ?>&amp;js_frame=print&amp;nocache=<?php echo $GLOBALS['PMA_Config']->getThemeUniqueValue(); ?>" />
</head>
<body bgcolor="#ffffff">
<h1><?php echo $strSQLResult; ?></h1>
<h1><?php echo __('SQL result'); ?></h1>
<p>
<strong><?php echo $strHost; ?>:</strong> <?php echo $cfg['Server']['verbose'] ? $cfg['Server']['verbose'] : $cfg['Server']['host'] . ((!empty($cfg['Server']['port'])) ? ':' . $cfg['Server']['port'] : ''); ?><br />
<strong><?php echo $strDatabase; ?>:</strong> <?php echo htmlspecialchars($db); ?><br />
<strong><?php echo $strGenTime; ?>:</strong> <?php echo PMA_localisedDate(); ?><br />
<strong><?php echo $strGenBy; ?>:</strong> phpMyAdmin&nbsp;<?php echo PMA_VERSION; ?>&nbsp;/ MySQL&nbsp;<?php echo PMA_MYSQL_STR_VERSION; ?><br />
<strong><?php echo $strSQLQuery; ?>:</strong> <?php echo htmlspecialchars($full_sql_query); ?>;
<strong><?php echo __('Host'); ?>:</strong> <?php echo $cfg['Server']['verbose'] ? $cfg['Server']['verbose'] : $cfg['Server']['host'] . ((!empty($cfg['Server']['port'])) ? ':' . $cfg['Server']['port'] : ''); ?><br />
<strong><?php echo __('Database'); ?>:</strong> <?php echo htmlspecialchars($db); ?><br />
<strong><?php echo __('Generation Time'); ?>:</strong> <?php echo PMA_localisedDate(); ?><br />
<strong><?php echo __('Generated by'); ?>:</strong> phpMyAdmin&nbsp;<?php echo PMA_VERSION; ?>&nbsp;/ MySQL&nbsp;<?php echo PMA_MYSQL_STR_VERSION; ?><br />
<strong><?php echo __('SQL query'); ?>:</strong> <?php echo htmlspecialchars($full_sql_query); ?>;
<?php if (isset($num_rows)) { ?><br />
<strong><?php echo $strRows; ?>:</strong> <?php echo $num_rows; ?>
<strong><?php echo __('Rows'); ?>:</strong> <?php echo $num_rows; ?>
<?php } ?>
</p>

View File

@@ -13,7 +13,7 @@ if (! defined('PHPMYADMIN')) {
* Prepares the work and runs some other scripts if required
*/
if (! empty($submit_mult)
&& $submit_mult != $strWithChecked
&& $submit_mult != __('With selected:')
&& (! empty($selected_db)
|| ! empty($selected_tbl)
|| ! empty($selected_fld)
@@ -25,7 +25,7 @@ if (! empty($submit_mult)
$what = 'drop_db';
} elseif (isset($selected_tbl) && !empty($selected_tbl)) {
// coming from database structure view - do something with selected tables
if ($submit_mult == $strPrintView) {
if ($submit_mult == __('Print view')) {
require './tbl_printview.php';
} else {
$selected = $selected_tbl;
@@ -33,33 +33,33 @@ if (! empty($submit_mult)
case 'drop_db':
$what = 'drop_db';
break;
case $strDrop:
case __('Drop'):
$what = 'drop_tbl';
break;
case $strEmpty:
case __('Empty'):
$what = 'empty_tbl';
break;
case $strCheckTable:
case __('Check table'):
unset($submit_mult);
$query_type = 'check_tbl';
$mult_btn = $strYes;
$mult_btn = __('Yes');
break;
case $strOptimizeTable:
case __('Optimize table'):
unset($submit_mult);
$query_type = 'optimize_tbl';
$mult_btn = $strYes;
$mult_btn = __('Yes');
break;
case $strRepairTable:
case __('Repair table'):
unset($submit_mult);
$query_type = 'repair_tbl';
$mult_btn = $strYes;
$mult_btn = __('Yes');
break;
case $strAnalyzeTable:
case __('Analyze table'):
unset($submit_mult);
$query_type = 'analyze_tbl';
$mult_btn = $strYes;
$mult_btn = __('Yes');
break;
case $strExport:
case __('Export'):
unset($submit_mult);
require('db_export.php');
exit;
@@ -70,10 +70,10 @@ if (! empty($submit_mult)
// coming from table structure view - do something with selected columns/fileds
$selected = $selected_fld;
switch ($submit_mult) {
case $strDrop:
case __('Drop'):
$what = 'drop_fld';
break;
case $strPrimary:
case __('Primary'):
// Gets table primary key
PMA_DBI_select_db($db);
$result = PMA_DBI_query('SHOW KEYS FROM ' . PMA_backquote($table) . ';');
@@ -89,31 +89,31 @@ if (! empty($submit_mult)
// no primary key, so we can safely create new
unset($submit_mult);
$query_type = 'primary_fld';
$mult_btn = $strYes;
$mult_btn = __('Yes');
} else {
// primary key exists, so lets as user
$what = 'primary_fld';
}
break;
case $strIndex:
case __('Index'):
unset($submit_mult);
$query_type = 'index_fld';
$mult_btn = $strYes;
$mult_btn = __('Yes');
break;
case $strUnique:
case __('Unique'):
unset($submit_mult);
$query_type = 'unique_fld';
$mult_btn = $strYes;
$mult_btn = __('Yes');
break;
case $strIdxFulltext:
case __('Fulltext'):
unset($submit_mult);
$query_type = 'fulltext_fld';
$mult_btn = $strYes;
$mult_btn = __('Yes');
break;
case $strChange:
case __('Change'):
require './tbl_alter.php';
break;
case $strBrowse:
case __('Browse'):
// this should already be handled by tbl_structure.php
}
} else {
@@ -255,12 +255,12 @@ if (!empty($submit_mult) && !empty($what)) {
echo PMA_generate_common_hidden_inputs($_url_params);
?>
<fieldset class="confirmation">
<legend><?php echo ($what == 'drop_db' ? $strDropDatabaseStrongWarning . '&nbsp;' : '') . $strDoYouReally; ?>:</legend>
<legend><?php echo ($what == 'drop_db' ? __('You are about to DESTROY a complete database!') . '&nbsp;' : '') . __('Do you really want to '); ?>:</legend>
<tt><?php echo $full_query; ?></tt>
</fieldset>
<fieldset class="tblFooters">
<input type="submit" name="mult_btn" value="<?php echo $strYes; ?>" id="buttonYes" />
<input type="submit" name="mult_btn" value="<?php echo $strNo; ?>" id="buttonNo" />
<input type="submit" name="mult_btn" value="<?php echo __('Yes'); ?>" id="buttonYes" />
<input type="submit" name="mult_btn" value="<?php echo __('No'); ?>" id="buttonNo" />
</fieldset>
<?php
require_once './libraries/footer.inc.php';
@@ -270,7 +270,7 @@ if (!empty($submit_mult) && !empty($what)) {
/**
* Executes the query - dropping rows, columns/fields, tables or dbs
*/
elseif ($mult_btn == $strYes) {
elseif ($mult_btn == __('Yes')) {
if ($query_type == 'drop_db' || $query_type == 'drop_tbl' || $query_type == 'drop_fld') {
require_once './libraries/relation_cleanup.lib.php';

View File

@@ -51,11 +51,11 @@ if ($GLOBALS['cfg']['LeftDisplayLogo']) {
<div id="leftframelinks">
<?php
echo '<a href="main.php?' . $query_url . '"'
.' title="' . $strHome . '">'
.' title="' . __('Home') . '">'
.($GLOBALS['cfg']['MainPageIconic']
? '<img class="icon" src="' . $pmaThemeImage . 'b_home.png" width="16" '
.' height="16" alt="' . $strHome . '" />'
: $strHome)
.' height="16" alt="' . __('Home') . '" />'
: __('Home'))
.'</a>' . "\n";
// if we have chosen server
if ($server != 0) {
@@ -64,11 +64,11 @@ if ($GLOBALS['cfg']['LeftDisplayLogo']) {
echo ($GLOBALS['cfg']['MainPageIconic'] ? '' : ' - ');
echo '<a href="index.php?' . $query_url . '&amp;old_usr='
.urlencode($PHP_AUTH_USER) . '" target="_parent"'
.' title="' . $strLogout . '" >'
.' title="' . __('Log out') . '" >'
.($GLOBALS['cfg']['MainPageIconic']
? '<img class="icon" src="' . $pmaThemeImage . 's_loggoff.png" '
.' width="16" height="16" alt="' . $strLogout . '" />'
: $strLogout)
.' width="16" height="16" alt="' . __('Log out') . '" />'
: __('Log out'))
.'</a>' . "\n";
} // end if ($GLOBALS['cfg']['Server']['auth_type'] != 'config'
@@ -77,22 +77,22 @@ if ($GLOBALS['cfg']['LeftDisplayLogo']) {
if ($GLOBALS['cfg']['MainPageIconic']) {
$query_frame_link_text =
'<img class="icon" src="' . $pmaThemeImage . 'b_selboard.png"'
.' width="16" height="16" alt="' . $strQueryFrame . '" />';
.' width="16" height="16" alt="' . __('Query window') . '" />';
} else {
echo '<br />' . "\n";
$query_frame_link_text = $strQueryFrame;
$query_frame_link_text = __('Query window');
}
echo '<a href="' . $anchor . '&amp;no_js=true"'
.' title="' . $strQueryFrame . '"';
.' title="' . __('Query window') . '"';
echo ' onclick="javascript:if (window.parent.open_querywindow()) return false;"';
echo '>' . $query_frame_link_text . '</a>' . "\n";
} // end if ($server != 0)
if ($GLOBALS['cfg']['MainPageIconic']) {
echo ' <a href="Documentation.html" target="documentation"'
.' title="' . $strPmaDocumentation . '" >'
.' title="' . __('phpMyAdmin documentation') . '" >'
.'<img class="icon" src="' . $pmaThemeImage . 'b_docs.png" width="16" height="16"'
.' alt="' . $strPmaDocumentation . '" /></a>' . "\n";
.' alt="' . __('phpMyAdmin documentation') . '" /></a>' . "\n";
echo ' ' . PMA_showMySQLDocu('', '', TRUE) . "\n";
}
echo '</div>' . "\n";

View File

@@ -38,58 +38,58 @@ $tabs = array();
$tabs['databases']['icon'] = 's_db.png';
$tabs['databases']['link'] = 'server_databases.php';
$tabs['databases']['text'] = $strDatabases;
$tabs['databases']['text'] = __('Databases');
$tabs['sql']['icon'] = 'b_sql.png';
$tabs['sql']['link'] = 'server_sql.php';
$tabs['sql']['text'] = $strSQL;
$tabs['sql']['text'] = __('SQL');
$tabs['status']['icon'] = 's_status.png';
$tabs['status']['link'] = 'server_status.php';
$tabs['status']['text'] = $strStatus;
$tabs['status']['text'] = __('Status');
$tabs['vars']['icon'] = 's_vars.png';
$tabs['vars']['link'] = 'server_variables.php';
$tabs['vars']['text'] = $strServerTabVariables;
$tabs['vars']['text'] = __('Variables');
$tabs['charset']['icon'] = 's_asci.png';
$tabs['charset']['link'] = 'server_collations.php';
$tabs['charset']['text'] = $strCharsets;
$tabs['charset']['text'] = __('Charsets');
$tabs['engine']['icon'] = 'b_engine.png';
$tabs['engine']['link'] = 'server_engines.php';
$tabs['engine']['text'] = $strEngines;
$tabs['engine']['text'] = __('Engines');
if ($is_superuser) {
$tabs['rights']['icon'] = 's_rights.png';
$tabs['rights']['link'] = 'server_privileges.php';
$tabs['rights']['text'] = $strPrivileges;
$tabs['rights']['text'] = __('Privileges');
$tabs['replication']['icon'] = 's_replication.png';
$tabs['replication']['link'] = 'server_replication.php';
$tabs['replication']['text'] = $strReplication;
$tabs['replication']['text'] = __('Replication');
}
if (! empty($binary_logs)) {
$tabs['binlog']['icon'] = 's_tbl.png';
$tabs['binlog']['link'] = 'server_binlog.php';
$tabs['binlog']['text'] = $strBinaryLog;
$tabs['binlog']['text'] = __('Binary log');
}
$tabs['process']['icon'] = 's_process.png';
$tabs['process']['link'] = 'server_processlist.php';
$tabs['process']['text'] = $strProcesses;
$tabs['process']['text'] = __('Processes');
$tabs['export']['icon'] = 'b_export.png';
$tabs['export']['link'] = 'server_export.php';
$tabs['export']['text'] = $strExport;
$tabs['export']['text'] = __('Export');
$tabs['import']['icon'] = 'b_import.png';
$tabs['import']['link'] = 'server_import.php';
$tabs['import']['text'] = $strImport;
$tabs['import']['text'] = __('Import');
$tabs['synchronize']['icon'] = 's_sync.png';
$tabs['synchronize']['link'] = 'server_synchronize.php';
$tabs['synchronize']['text'] = $strSynchronize;
$tabs['synchronize']['text'] = __('Synchronize');
echo PMA_generate_html_tabs($tabs, array());
unset($tabs);

View File

@@ -47,39 +47,39 @@ require_once './libraries/header.inc.php';
$tabs = array();
$tabs['browse']['icon'] = 'b_browse.png';
$tabs['browse']['text'] = $strBrowse;
$tabs['browse']['text'] = __('Browse');
$tabs['browse']['link'] = 'sql.php';
$tabs['browse']['args']['pos'] = 0;
$tabs['structure']['icon'] = 'b_props.png';
$tabs['structure']['link'] = 'tbl_structure.php';
$tabs['structure']['text'] = $strStructure;
$tabs['structure']['text'] = __('Structure');
$tabs['sql']['icon'] = 'b_sql.png';
$tabs['sql']['link'] = 'tbl_sql.php';
$tabs['sql']['text'] = $strSQL;
$tabs['sql']['text'] = __('SQL');
$tabs['search']['icon'] = 'b_search.png';
$tabs['search']['text'] = $strSearch;
$tabs['search']['text'] = __('Search');
$tabs['search']['link'] = 'tbl_select.php';
if(PMA_Tracker::isActive())
{
$tabs['tracking']['icon'] = 'eye.png';
$tabs['tracking']['text'] = $strTracking;
$tabs['tracking']['text'] = __('Tracking');
$tabs['tracking']['link'] = 'tbl_tracking.php';
}
if (! (isset($db_is_information_schema) && $db_is_information_schema)) {
$tabs['insert']['icon'] = 'b_insrow.png';
$tabs['insert']['link'] = 'tbl_change.php';
$tabs['insert']['text'] = $strInsert;
$tabs['insert']['text'] = __('Insert');
}
$tabs['export']['icon'] = 'b_tblexport.png';
$tabs['export']['link'] = 'tbl_export.php';
$tabs['export']['args']['single_table'] = 'true';
$tabs['export']['text'] = $strExport;
$tabs['export']['text'] = __('Export');
/**
* Don't display "Import", "Operations" and "Empty"
@@ -88,23 +88,23 @@ $tabs['export']['text'] = $strExport;
if (! $tbl_is_view && ! (isset($db_is_information_schema) && $db_is_information_schema)) {
$tabs['import']['icon'] = 'b_tblimport.png';
$tabs['import']['link'] = 'tbl_import.php';
$tabs['import']['text'] = $strImport;
$tabs['import']['text'] = __('Import');
$tabs['operation']['icon'] = 'b_tblops.png';
$tabs['operation']['link'] = 'tbl_operations.php';
$tabs['operation']['text'] = $strOperations;
$tabs['operation']['text'] = __('Operations');
$tabs['empty']['link'] = 'sql.php';
$tabs['empty']['args']['reload'] = 1;
$tabs['empty']['args']['sql_query'] = 'TRUNCATE TABLE ' . PMA_backquote($table);
$tabs['empty']['args']['zero_rows'] = sprintf($strTableHasBeenEmptied, htmlspecialchars($table));
$tabs['empty']['args']['zero_rows'] = sprintf(__('Table %s has been emptied'), htmlspecialchars($table));
$tabs['empty']['attr'] = 'onclick="return confirmLink(this, \'TRUNCATE TABLE ' . PMA_jsFormat($table) . '\')"';
$tabs['empty']['args']['goto'] = 'tbl_structure.php';
$tabs['empty']['class'] = 'caution';
$tabs['empty']['icon'] = 'b_empty.png';
$tabs['empty']['text'] = $strEmpty;
$tabs['empty']['text'] = __('Empty');
if ($table_info_num_rows == 0) {
$tabs['empty']['warning'] = $strTableIsEmpty;
$tabs['empty']['warning'] = __('Table seems to be empty!');
}
}
@@ -114,7 +114,7 @@ if (! $tbl_is_view && ! (isset($db_is_information_schema) && $db_is_information_
if ($tbl_is_view && ! (isset($db_is_information_schema) && $db_is_information_schema)) {
$tabs['operation']['icon'] = 'b_tblops.png';
$tabs['operation']['link'] = 'view_operations.php';
$tabs['operation']['text'] = $strOperations;
$tabs['operation']['text'] = __('Operations');
}
/**
@@ -124,21 +124,21 @@ if (! (isset($db_is_information_schema) && $db_is_information_schema)) {
$tabs['drop']['icon'] = 'b_deltbl.png';
$tabs['drop']['link'] = 'sql.php';
$tabs['drop']['url_params'] = array('table' => NULL);
$tabs['drop']['text'] = $strDrop;
$tabs['drop']['text'] = __('Drop');
$tabs['drop']['args']['reload'] = 1;
$tabs['drop']['args']['purge'] = 1;
$drop_command = 'DROP ' . ($tbl_is_view ? 'VIEW' : 'TABLE');
$tabs['drop']['args']['sql_query'] = $drop_command . ' ' . PMA_backquote($table);
$tabs['drop']['args']['goto'] = 'db_structure.php';
$tabs['drop']['args']['zero_rows'] = sprintf(($tbl_is_view ? $strViewHasBeenDropped : $strTableHasBeenDropped), htmlspecialchars($table));
$tabs['drop']['args']['zero_rows'] = sprintf(($tbl_is_view ? __('View %s has been dropped') : __('Table %s has been dropped')), htmlspecialchars($table));
$tabs['drop']['attr'] = 'onclick="return confirmLink(this, \'' . $drop_command . ' ' . PMA_jsFormat($table) . '\')"';
unset($drop_command);
$tabs['drop']['class'] = 'caution';
}
if ($table_info_num_rows == 0 && !$tbl_is_view) {
$tabs['browse']['warning'] = $strTableIsEmpty;
$tabs['search']['warning'] = $strTableIsEmpty;
$tabs['browse']['warning'] = __('Table seems to be empty!');
$tabs['search']['warning'] = __('Table seems to be empty!');
}
echo PMA_generate_html_tabs($tabs, $url_params);
@@ -146,7 +146,7 @@ unset($tabs);
if(PMA_Tracker::isActive() and PMA_Tracker::isTracked($GLOBALS["db"], $GLOBALS["table"]))
{
$msg = PMA_Message::notice('<a href="tbl_tracking.php?'.$url_query.'">'.sprintf($strTrackingActivated, $GLOBALS["db"], $GLOBALS["table"]).'</a>');
$msg = PMA_Message::notice('<a href="tbl_tracking.php?'.$url_query.'">'.sprintf(__('Tracking of %s.%s is activated.'), $GLOBALS["db"], $GLOBALS["table"]).'</a>');
$msg->display();
}

View File

@@ -96,24 +96,24 @@ $is_backup = ($action != 'tbl_create.php' && $action != 'tbl_addfield.php');
$header_cells = array();
$content_cells = array();
$header_cells[] = $strField;
$header_cells[] = $strType
$header_cells[] = __('Field');
$header_cells[] = __('Type')
. ($GLOBALS['cfg']['ReplaceHelpImg']
? PMA_showMySQLDocu('SQL-Syntax', 'data-types')
: '<br /><span style="font-weight: normal">' . PMA_showMySQLDocu('SQL-Syntax', 'data-types')
. '</span>');
$header_cells[] = $strLengthSet . PMA_showHint($strSetEnumVal);
$header_cells[] = $strDefault . PMA_showHint($strDefaultValueHelp);
$header_cells[] = $strCollation;
$header_cells[] = $strAttr;
$header_cells[] = $strNull;
$header_cells[] = __('Length/Values') . PMA_showHint($strSetEnumVal);
$header_cells[] = __('Default') . PMA_showHint(__('For default values, please enter just a single value, without backslash escaping or quotes, using this format: a'));
$header_cells[] = __('Collation');
$header_cells[] = __('Attributes');
$header_cells[] = __('Null');
// We could remove this 'if' and let the key information be shown and
// editable. However, for this to work, tbl_alter must be modified to use the
// key fields, as tbl_addfield does.
if (!$is_backup) {
$header_cells[] = $strIndex;
$header_cells[] = __('Index');
}
$header_cells[] = '<abbr title="AUTO_INCREMENT">' . ($display_type == 'horizontal' ? 'A_I' : 'AUTO_INCREMENT') . '</abbr>';
@@ -127,23 +127,23 @@ $mime_map = array();
$available_mime = array();
$comments_map = PMA_getComments($db, $table);
$header_cells[] = $strComments;
$header_cells[] = __('Comments');
if ($cfgRelation['mimework'] && $cfg['BrowseMIME']) {
$mime_map = PMA_getMIME($db, $table);
$available_mime = PMA_getAvailableMIMEtypes();
$hint = '<br />' .
sprintf($strMIME_transformation_note,
sprintf(__('For a list of available transformation options and their MIME type transformations, click on %stransformation descriptions%s'),
'<a href="transformation_overview.php?'
. PMA_generate_common_url($db, $table) . '" target="_blank">',
'</a>');
$header_cells[] = $strMIME_MIMEtype;
$header_cells[] = $strMIME_transformation;
$header_cells[] = $strMIME_transformation_options
. PMA_showHint($strMIME_transformation_options_note . $hint);
$header_cells[] = __('MIME type');
$header_cells[] = __('Browser transformation');
$header_cells[] = __('Transformation options')
. PMA_showHint(__('Transformation options')_note . $hint);
}
// workaround for field_fulltext, because its submitted indizes contain
@@ -272,7 +272,7 @@ for ($i = 0; $i < $num_fields; $i++) {
// column name
$content_cells[$i][$ci] = '<input id="field_' . $i . '_' . ($ci - $ci_offset) . '"'
. ' type="text" name="field_name[' . $i . ']"'
. ' maxlength="64" class="textfield" title="' . $strField . '"'
. ' maxlength="64" class="textfield" title="' . __('Field') . '"'
. ' size="' . ($GLOBALS['cfg']['DefaultPropDisplay'] == 'horizontal' ? '10' : '30') . '"'
. ' value="' . (isset($row['Field']) ? htmlspecialchars($row['Field']) : '') . '"'
. ' />';
@@ -390,8 +390,8 @@ for ($i = 0; $i < $num_fields; $i++) {
// users would have problems if they forget to enter the default
// value (example, for an INT)
$default_options = array(
'NONE' => $strNoneDefault,
'USER_DEFINED' => $strAsDefined,
'NONE' => _pgettext('for default', 'None'),
'USER_DEFINED' => __('As defined:'),
'NULL' => 'NULL',
'CURRENT_TIMESTAMP' => 'CURRENT_TIMESTAMP',
);
@@ -510,25 +510,25 @@ for ($i = 0; $i < $num_fields; $i++) {
. ' id="field_' . $i . '_' . ($ci - $ci_offset) . '">';
$content_cells[$i][$ci] .= '<option value="none_' . $i . '">---</option>';
$content_cells[$i][$ci] .= '<option value="primary_' . $i . '" title="' . $strPrimary . '"';
$content_cells[$i][$ci] .= '<option value="primary_' . $i . '" title="' . __('Primary') . '"';
if (isset($row['Key']) && $row['Key'] == 'PRI') {
$content_cells[$i][$ci] .= ' selected="selected"';
}
$content_cells[$i][$ci] .= '>PRIMARY</option>';
$content_cells[$i][$ci] .= '<option value="unique_' . $i . '" title="' . $strUnique . '"';
$content_cells[$i][$ci] .= '<option value="unique_' . $i . '" title="' . __('Unique') . '"';
if (isset($row['Key']) && $row['Key'] == 'UNI') {
$content_cells[$i][$ci] .= ' selected="selected"';
}
$content_cells[$i][$ci] .= '>UNIQUE</option>';
$content_cells[$i][$ci] .= '<option value="index_' . $i . '" title="' . $strIndex . '"';
$content_cells[$i][$ci] .= '<option value="index_' . $i . '" title="' . __('Index') . '"';
if (isset($row['Key']) && $row['Key'] == 'MUL') {
$content_cells[$i][$ci] .= ' selected="selected"';
}
$content_cells[$i][$ci] .= '>INDEX</option>';
$content_cells[$i][$ci] .= '<option value="fulltext_' . $i . '" title="' . $strIdxFulltext . '"';
$content_cells[$i][$ci] .= '<option value="fulltext_' . $i . '" title="' . __('Fulltext') . '"';
if (isset($row['Key']) && $row['Key'] == 'FULLTEXT') {
$content_cells[$i][$ci] .= ' selected="selected"';
}
@@ -572,12 +572,12 @@ for ($i = 0; $i < $num_fields; $i++) {
$ci++;
$content_cells[$i][$ci] = '<select id="field_' . $i . '_' . ($ci - $ci_offset) . '" size="1" name="field_transformation[' . $i . ']">';
$content_cells[$i][$ci] .= ' <option value="" title="' . $strNone . '"></option>';
$content_cells[$i][$ci] .= ' <option value="" title="' . __('None') . '"></option>';
if (is_array($available_mime['transformation'])) {
foreach ($available_mime['transformation'] AS $mimekey => $transform) {
$checked = (isset($row['Field']) && isset($mime_map[$row['Field']]['transformation']) && (preg_match('@' . preg_quote($available_mime['transformation_file'][$mimekey]) . '3?@i', $mime_map[$row['Field']]['transformation'])) ? 'selected ' : '');
$tooltip = 'strTransformation_' . strtolower(str_replace('.inc.php', '', $available_mime['transformation_file'][$mimekey]));
$tooltip = isset($$tooltip) ? $$tooltip : sprintf(str_replace('<br />', ' ', $strMIME_nodescription), 'PMA_transformation_' . $tooltip . '()');
$tooltip = isset($$tooltip) ? $$tooltip : sprintf(str_replace('<br />', ' ', __('No description is available for this transformation.<br />Please ask the author what %s does.')), 'PMA_transformation_' . $tooltip . '()');
$content_cells[$i][$ci] .= '<option value="' . $available_mime['transformation_file'][$mimekey] . '" ' . $checked . ' title="' . htmlspecialchars($tooltip) . '">' . htmlspecialchars($transform) . '</option>';
}
}
@@ -615,7 +615,7 @@ if ($action == 'tbl_create.php') {
?>
<table>
<tr valign="top">
<th><?php echo $strTableName; ?>:&nbsp;</th>
<th><?php echo __('Table name'); ?>:&nbsp;</th>
</tr>
<tr><td><input type="text" name="table" size="40" maxlength="80"
value="<?php echo (isset($_REQUEST['table']) ? htmlspecialchars($_REQUEST['table']) : ''); ?>"
@@ -721,13 +721,13 @@ if ($action == 'tbl_create.php') {
?>
<table>
<tr valign="top">
<th><?php echo $strTableComments; ?>:&nbsp;</th>
<th><?php echo __('Table comments'); ?>:&nbsp;</th>
<td width="25">&nbsp;</td>
<th><?php echo $strStorageEngine; ?>:
<th><?php echo __('Storage Engine'); ?>:
<?php echo PMA_showMySQLDocu('Storage_engines', 'Storage_engines'); ?>
</th>
<td width="25">&nbsp;</td>
<th><?php echo $strCollation ;?>:&nbsp;</th>
<th><?php echo __('Collation') ;?>:&nbsp;</th>
</tr>
<tr><td><input type="text" name="comment" size="40" maxlength="80"
value="<?php echo (isset($_REQUEST['comment']) ? htmlspecialchars($_REQUEST['comment']) : ''); ?>"
@@ -752,7 +752,7 @@ if ($action == 'tbl_create.php') {
if (PMA_Partition::havePartitioning()) {
?>
<tr valign="top">
<th><?php echo $strPartitionDefinition; ?>:&nbsp;<?php echo PMA_showMySQLDocu('Partitioning', 'Partitioning'); ?>
<th><?php echo __('PARTITION definition'); ?>:&nbsp;<?php echo PMA_showMySQLDocu('Partitioning', 'Partitioning'); ?>
</th>
</tr>
<tr>
@@ -773,11 +773,11 @@ if ($action == 'tbl_create.php') {
?>
<fieldset class="tblFooters">
<input type="submit" name="do_save_data" value="<?php echo $strSave; ?>"
<input type="submit" name="do_save_data" value="<?php echo __('Save'); ?>"
onclick="return checkTableEditForm(this.form, <?php echo $num_fields; ?>)" />
<?php if ($action == 'tbl_create.php' || $action == 'tbl_addfield.php') { ?>
<?php echo $GLOBALS['strOr']; ?>
<?php echo sprintf($strAddFields, '<input type="text" id="added_fields" name="added_fields" size="2" value="1" onfocus="this.select()" />'); ?>
<?php echo sprintf(__('Add %s field(s)'), '<input type="text" id="added_fields" name="added_fields" size="2" value="1" onfocus="this.select()" />'); ?>
<input type="submit" name="submit_num_fields"
value="<?php echo $GLOBALS['strGo']; ?>"
<?php /* onclick="if (addField()) return false;" */ ?>

View File

@@ -16,7 +16,7 @@ $triggers = PMA_DBI_get_triggers($db, $table);
if ($triggers) {
echo '<div id="tabletriggers">' . "\n";
echo '<table class="data">' . "\n";
echo ' <caption class="tblHeaders">' . $strTriggers . '</caption>' . "\n";
echo ' <caption class="tblHeaders">' . __('Triggers') . '</caption>' . "\n";
echo sprintf('<tr>
<th>%s</th>
<th>&nbsp;</th>
@@ -24,9 +24,9 @@ if ($triggers) {
<th>%s</th>
<th>%s</th>
</tr>',
$strName,
$strTime,
$strEvent);
__('Name'),
__('Time'),
__('Event'));
$ct=0;
$delimiter = '//';
foreach ($triggers as $trigger) {

View File

@@ -65,7 +65,7 @@ echo '<div id="main_pane_left">';
if ($server > 0
|| (! $cfg['LeftDisplayServers'] && count($cfg['Servers']) > 1)) {
echo '<div class="group">';
echo '<h2>' . $strActions . '</h2>';
echo '<h2>' . __('Actions') . '</h2>';
echo '<ul>';
/**
@@ -88,7 +88,7 @@ if ($server > 0
// Logout for advanced authentication
if ($cfg['Server']['auth_type'] != 'config') {
if ($cfg['ShowChgPassword']) {
PMA_printListItem($strChangePassword, 'li_change_password',
PMA_printListItem(__('Change password'), 'li_change_password',
'./user_password.php?' . $common_url_query);
}
@@ -96,7 +96,7 @@ if ($server > 0
? '<a href="./Documentation.html#login_bug" target="documentation">'
. ($cfg['ReplaceHelpImg'] ? '<img class="icon" src="' . $pmaThemeImage . 'b_info.png" width="11" height="11" alt="Info" />' : '(*)') . '</a>'
: '';
PMA_printListItem('<strong>' . $strLogout . '</strong> ' . $http_logout,
PMA_printListItem('<strong>' . __('Log out') . '</strong> ' . $http_logout,
'li_log_out',
'./index.php?' . $common_url_query . '&amp;old_usr=' . urlencode($PHP_AUTH_USER), null, '_parent');
} // end if
@@ -122,10 +122,10 @@ if ($server > 0) {
echo ' <form method="post" action="index.php" target="_parent">' . "\n"
. PMA_generate_common_hidden_inputs(null, null, 4, 'collation_connection')
. ' <label for="select_collation_connection">' . "\n"
. ' ' . $strMySQLConnectionCollation . ': ' . "\n"
. ' ' . __('MySQL connection collation') . ': ' . "\n"
. ' </label>' . "\n"
. PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_COLLATION, 'collation_connection', 'select_collation_connection', $collation_connection, true, 4, true)
. ' <noscript><input type="submit" value="' . $strGo . '" /></noscript>' . "\n"
. ' <noscript><input type="submit" value="' . __('Go') . '" /></noscript>' . "\n"
// put the doc link in the form so that it appears on the same line
. PMA_showMySQLDocu('MySQL_Database_Administration', 'Charset-connection') . "\n"
. ' </form>' . "\n"
@@ -136,7 +136,7 @@ if ($server > 0) {
}
echo '<div class="group">';
echo '<h2>' . $strInterface . '</h2>';
echo '<h2>' . __('Interface') . '</h2>';
echo ' <ul>';
// Displays language selection combo
@@ -156,11 +156,11 @@ if ($GLOBALS['cfg']['ThemeManager']) {
// see js/main_custom_color.js
echo '<li id="li_custom_color" class="hide">';
echo PMA_escapeJsString($strCustomColor) . ': ';
echo PMA_escapeJsString(__('Custom color')) . ': ';
echo '<form name="colorform" id="colorform" method="post" action="index.php" target="_parent">';
echo PMA_generate_common_hidden_inputs();
echo '<input type="hidden" id="custom_color" name="custom_color" value="" />';
echo '<input type="submit" name="custom_color_reset" value="' . $strReset . '" />';
echo '<input type="submit" name="custom_color_reset" value="' . __('Reset') . '" />';
echo '</form>';
echo '<div id="colorSelector">';
echo '</div>';
@@ -182,15 +182,15 @@ if ($server > 0 && $GLOBALS['cfg']['ShowServerInfo']) {
echo '<div class="group">';
echo '<h2>MySQL</h2>';
echo '<ul>' . "\n";
PMA_printListItem($strServer . ': ' . $server_info, 'li_server_info');
PMA_printListItem($strServerVersion . ': ' . PMA_MYSQL_STR_VERSION, 'li_server_version');
PMA_printListItem($strProtocolVersion . ': ' . PMA_DBI_get_proto_info(),
PMA_printListItem(__('Server') . ': ' . $server_info, 'li_server_info');
PMA_printListItem(__('Server version') . ': ' . PMA_MYSQL_STR_VERSION, 'li_server_version');
PMA_printListItem(__('Protocol version') . ': ' . PMA_DBI_get_proto_info(),
'li_mysql_proto');
PMA_printListItem($strUser . ': ' . htmlspecialchars($mysql_cur_user_and_host),
PMA_printListItem(__('User') . ': ' . htmlspecialchars($mysql_cur_user_and_host),
'li_user_info');
echo ' <li id="li_select_mysql_charset">';
echo ' ' . $strMySQLCharset . ': '
echo ' ' . __('MySQL charset') . ': '
. ' <span xml:lang="en" dir="ltr">'
. ' ' . $mysql_charsets_descriptions[$mysql_charset_map[strtolower($charset)]] . "\n"
. ' (' . $mysql_charset_map[strtolower($charset)] . ')' . "\n"
@@ -202,21 +202,21 @@ if ($server > 0 && $GLOBALS['cfg']['ShowServerInfo']) {
if ($GLOBALS['cfg']['ShowServerInfo'] || $GLOBALS['cfg']['ShowPhpInfo']) {
echo '<div class="group">';
echo '<h2>' . $strWebServer . '</h2>';
echo '<h2>' . __('Web server') . '</h2>';
echo '<ul>';
if ($GLOBALS['cfg']['ShowServerInfo']) {
PMA_printListItem($_SERVER['SERVER_SOFTWARE'], 'li_web_server_software');
if ($server > 0) {
PMA_printListItem($strMysqlClientVersion . ': ' . PMA_DBI_get_client_info(),
PMA_printListItem(__('MySQL client version') . ': ' . PMA_DBI_get_client_info(),
'li_mysql_client_version');
PMA_printListItem($strPHPExtension . ': ' . $GLOBALS['cfg']['Server']['extension'],
PMA_printListItem(__('PHP extension') . ': ' . $GLOBALS['cfg']['Server']['extension'],
'li_used_php_extension');
}
}
if ($cfg['ShowPhpInfo']) {
PMA_printListItem($strShowPHPInfo, 'li_phpinfo', './phpinfo.php?' . $common_url_query);
PMA_printListItem(__('Show PHP information'), 'li_phpinfo', './phpinfo.php?' . $common_url_query);
}
echo ' </ul>';
echo ' </div>';
@@ -225,12 +225,12 @@ if ($GLOBALS['cfg']['ShowServerInfo'] || $GLOBALS['cfg']['ShowPhpInfo']) {
echo '<div class="group">';
echo '<h2>phpMyAdmin</h2>';
echo '<ul>';
PMA_printListItem($strVersionInformation . ': ' . PMA_VERSION, 'li_pma_version');
PMA_printListItem($strDocu, 'li_pma_docs', 'Documentation.html', null, '_blank');
PMA_printListItem($strWiki, 'li_pma_wiki', 'http://wiki.phpmyadmin.net', null, '_blank');
PMA_printListItem(__('Version information') . ': ' . PMA_VERSION, 'li_pma_version');
PMA_printListItem(__('Documentation'), 'li_pma_docs', 'Documentation.html', null, '_blank');
PMA_printListItem(__('Wiki'), 'li_pma_wiki', 'http://wiki.phpmyadmin.net', null, '_blank');
// does not work if no target specified, don't know why
PMA_printListItem($strHomepageOfficial, 'li_pma_homepage', 'http://www.phpMyAdmin.net/', null, '_blank');
PMA_printListItem(__('Official Homepage'), 'li_pma_homepage', 'http://www.phpMyAdmin.net/', null, '_blank');
?>
<li><bdo xml:lang="en" dir="ltr">
[<a href="changelog.php" target="_blank">ChangeLog</a>]
@@ -263,7 +263,7 @@ PMA_printListItem($strHomepageOfficial, 'li_pma_homepage', 'http://www.phpMyAdmi
if ($server != 0
&& $cfg['Server']['user'] == 'root'
&& $cfg['Server']['password'] == '') {
trigger_error($strInsecureMySQL, E_USER_WARNING);
trigger_error(__('Your configuration file contains settings (root with no password) that correspond to the default MySQL privileged account. Your MySQL server is running with this default, is open to intrusion, and you really should fix this security hole by setting a password for user \'root\'.'), E_USER_WARNING);
}
/**
@@ -271,7 +271,7 @@ if ($server != 0
* break it, see bug 1063821.
*/
if (@extension_loaded('mbstring') && @ini_get('mbstring.func_overload') > 1) {
trigger_error($strMbOverloadWarning, E_USER_WARNING);
trigger_error(__('You have enabled mbstring.func_overload in your PHP configuration. This option is incompatible with phpMyAdmin and might cause some data to be corrupted!'), E_USER_WARNING);
}
/**
@@ -279,7 +279,7 @@ if (@extension_loaded('mbstring') && @ini_get('mbstring.func_overload') > 1) {
* to tell user something might be broken without it, see bug #1063149.
*/
if (! @extension_loaded('mbstring')) {
trigger_error($strMbExtensionMissing, E_USER_WARNING);
trigger_error(__('The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.'), E_USER_WARNING);
}
/**
@@ -287,7 +287,7 @@ if (! @extension_loaded('mbstring')) {
*/
$gc_time = (int)@ini_get('session.gc_maxlifetime');
if ($gc_time < $GLOBALS['cfg']['LoginCookieValidity'] ) {
trigger_error(PMA_Message::decodeBB($strSessionGCWarning), E_USER_WARNING);
trigger_error(PMA_Message::decodeBB(__('Your PHP parameter [a@http://php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime@]session.gc_maxlifetime[/a] is lower that cookie validity configured in phpMyAdmin, because of this, your login will expire sooner than configured in phpMyAdmin.')), E_USER_WARNING);
}
/**
@@ -295,7 +295,7 @@ if ($gc_time < $GLOBALS['cfg']['LoginCookieValidity'] ) {
*/
if (!empty($_SESSION['auto_blowfish_secret']) &&
empty($GLOBALS['cfg']['blowfish_secret'])) {
trigger_error($strSecretRequired, E_USER_WARNING);
trigger_error(__('The configuration file now needs a secret passphrase (blowfish_secret).'), E_USER_WARNING);
}
/**
@@ -303,7 +303,7 @@ if (!empty($_SESSION['auto_blowfish_secret']) &&
* production environment.
*/
if (file_exists('./config')) {
trigger_error($strConfigDirectoryWarning, E_USER_WARNING);
trigger_error(__('Directory [code]config[/code], which is used by the setup script, still exists in your phpMyAdmin directory. You should remove it once phpMyAdmin has been configured.'), E_USER_WARNING);
}
/**
@@ -343,7 +343,7 @@ echo '</noscript>';
if (function_exists('PMA_DBI_get_client_info')) {
$_client_info = PMA_DBI_get_client_info();
if ($server > 0 && strpos($_client_info, 'mysqlnd') === false && substr(PMA_MYSQL_CLIENT_API, 0, 3) != substr(PMA_MYSQL_INT_VERSION, 0, 3)) {
trigger_error(PMA_sanitize(sprintf($strMysqlLibDiffersServerVersion,
trigger_error(PMA_sanitize(sprintf(__('Your PHP MySQL library version %s differs from your MySQL server version %s. This may cause unpredictable behavior.'),
$_client_info,
substr(PMA_MYSQL_STR_VERSION, 0, strpos(PMA_MYSQL_STR_VERSION . '-', '-')))),
E_USER_NOTICE);
@@ -355,7 +355,7 @@ if (function_exists('PMA_DBI_get_client_info')) {
* Warning about Suhosin
*/
if ($cfg['SuhosinDisableWarning'] == false && @ini_get('suhosin.request.max_value_length')) {
trigger_error(PMA_sanitize(sprintf($strSuhosin, '[a@./Documentation.html#faq1_38@_blank]', '[/a]')), E_USER_WARNING);
trigger_error(PMA_sanitize(sprintf(__('Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'), '[a@./Documentation.html#faq1_38@_blank]', '[/a]')), E_USER_WARNING);
}
/**

View File

@@ -347,8 +347,8 @@ if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) {
}
unset($table_list);
echo '<ul id="newtable"><li><a target="frame_content" href="tbl_create.php' . PMA_generate_common_url(array('db' => $GLOBALS['db'])) . '">'
.'<img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 'b_snewtbl.png" id="icon_newtable" width="10" height="10" alt="' . $strCreateTableShort . '" />'
. $strCreateTableShort . '</a></li></ul>';
.'<img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 'b_snewtbl.png" id="icon_newtable" width="10" height="10" alt="' . _pgettext('short form', 'Create table') . '" />'
. _pgettext('short form', 'Create table') . '</a></li></ul>';
} elseif ($GLOBALS['cfg']['LeftFrameLight']) {
echo '<p>' . $GLOBALS['strSelectADb'] . '</p>';
} else {

View File

@@ -33,25 +33,25 @@ $query_default_option = PMA_DBI_QUERY_STORE;
* complain ;-)
*/
if (!$cfgRelation['relwork']) {
echo sprintf($strNotSet, 'relation', 'config.inc.php') . '<br />' . "\n"
. '<a href="./Documentation.html#relation" target="documentation">' . $strDocu . '</a>' . "\n";
echo sprintf(__('<b>%s</b> table not found or not set in %s'), 'relation', 'config.inc.php') . '<br />' . "\n"
. '<a href="./Documentation.html#relation" target="documentation">' . __('Documentation') . '</a>' . "\n";
require_once './libraries/footer.inc.php';
}
if (!$cfgRelation['displaywork']) {
echo sprintf($strNotSet, 'table_info', 'config.inc.php') . '<br />' . "\n"
. '<a href="./Documentation.html#table_info" target="documentation">' . $strDocu . '</a>' . "\n";
echo sprintf(__('<b>%s</b> table not found or not set in %s'), 'table_info', 'config.inc.php') . '<br />' . "\n"
. '<a href="./Documentation.html#table_info" target="documentation">' . __('Documentation') . '</a>' . "\n";
require_once './libraries/footer.inc.php';
}
if (!isset($cfgRelation['table_coords'])){
echo sprintf($strNotSet, 'table_coords', 'config.inc.php') . '<br />' . "\n"
. '<a href="./Documentation.html#table_coords" target="documentation">' . $strDocu . '</a>' . "\n";
echo sprintf(__('<b>%s</b> table not found or not set in %s'), 'table_coords', 'config.inc.php') . '<br />' . "\n"
. '<a href="./Documentation.html#table_coords" target="documentation">' . __('Documentation') . '</a>' . "\n";
exit();
}
if (!isset($cfgRelation['pdf_pages'])) {
echo sprintf($strNotSet, 'pdf_page', 'config.inc.php') . '<br />' . "\n"
. '<a href="./Documentation.html#pdf_pages" target="documentation">' . $strDocu . '</a>' . "\n";
echo sprintf(__('<b>%s</b> table not found or not set in %s'), 'pdf_page', 'config.inc.php') . '<br />' . "\n"
. '<a href="./Documentation.html#pdf_pages" target="documentation">' . __('Documentation') . '</a>' . "\n";
exit();
}
@@ -258,7 +258,7 @@ if ($cfgRelation['pdfwork']) {
<form method="get" action="pdf_pages.php" name="selpage">
<fieldset>
<legend>
<?php echo $strChoosePage . "\n"; ?>
<?php echo __('Please choose a page to edit') . "\n"; ?>
</legend>
<?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
<input type="hidden" name="do" value="choosepage" />
@@ -277,12 +277,12 @@ if ($cfgRelation['pdfwork']) {
</select>
<?php
$choices = array(
'0' => $strEdit,
'1' => $strDelete);
'0' => __('Edit'),
'1' => __('Delete'));
PMA_display_html_radio('action_choose', $choices, '0', false);
unset($choices);
?>
<input type="submit" value="<?php echo $strGo; ?>" /><br />
<input type="submit" value="<?php echo __('Go'); ?>" /><br />
</fieldset>
</form>
<?php
@@ -294,19 +294,19 @@ if ($cfgRelation['pdfwork']) {
<form method="post" action="pdf_pages.php" name="crpage">
<fieldset>
<legend>
<?php echo $strCreatePage . "\n"; ?>
<?php echo __('Create a page') . "\n"; ?>
</legend>
<?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
<input type="hidden" name="do" value="createpage" />
<input type="text" name="newpage" size="20" maxlength="50" />
<input type="checkbox" name="auto_layout_internal" />
<?php echo '(' . $strAutomaticLayout . ' / ' . $strInternalRelations . ')';
<?php echo '(' . __('Automatic layout') . ' / ' . __('Internal relations') . ')';
if (PMA_StorageEngine::isValid('InnoDB') || PMA_StorageEngine::isValid('PBXT')) {
echo '<input type="checkbox" name="auto_layout_foreign" />'
. '(' . $strAutomaticLayout . ' / FOREIGN KEY)';
. '(' . __('Automatic layout') . ' / FOREIGN KEY)';
}
?>
<input type="submit" value="<?php echo $strGo; ?>" />
<input type="submit" value="<?php echo __('Go'); ?>" />
</fieldset>
</form>
<?php
@@ -317,7 +317,7 @@ if ($cfgRelation['pdfwork']) {
?>
<hr />
<h2><?php echo $strSelectTables ;?></h2>
<h2><?php echo __('Select Tables') ;?></h2>
<?php
$page_query = 'SELECT * FROM ' . PMA_backquote($GLOBALS['cfgRelation']['db']) . '.' . PMA_backquote($cfgRelation['table_coords'])
@@ -340,8 +340,8 @@ if ($cfg['WYSIWYG-PDF']) {
?>
<script type="text/javascript" src="./js/dom-drag.js"></script>
<form method="post" action="pdf_pages.php" name="dragdrop">
<input type="button" name="dragdrop" value="<?php echo $strToggleScratchboard; ?>" onclick="ToggleDragDrop('pdflayout');" />
<input type="button" name="dragdropreset" value="<?php echo $strReset; ?>" onclick="resetDrag();" />
<input type="button" name="dragdrop" value="<?php echo __('Toggle scratchboard'); ?>" onclick="ToggleDragDrop('pdflayout');" />
<input type="button" name="dragdropreset" value="<?php echo __('Reset'); ?>" onclick="resetDrag();" />
</form>
<div id="pdflayout" class="pdflayout" style="visibility: hidden;">
<?php
@@ -402,8 +402,8 @@ function resetDrag() {
<input type="hidden" name="do" value="edcoord" />
<table border="0">
<tr>
<th><?php echo $strTable; ?></th>
<th><?php echo $strDelete; ?></th>
<th><?php echo __('Table'); ?></th>
<th><?php echo __('Delete'); ?></th>
<th>X</th>
<th>Y</th>
</tr>
@@ -439,7 +439,7 @@ function resetDrag() {
echo "\n" . ' </select>'
. "\n" . ' </td>';
echo "\n" . ' <td>'
. "\n" . ' <input type="checkbox" name="c_table_' . $i . '[delete]" value="y" />' . $strDelete;
. "\n" . ' <input type="checkbox" name="c_table_' . $i . '[delete]" value="y" />' . __('Delete');
echo "\n" . ' </td>';
echo "\n" . ' <td>'
. "\n" . ' <input type="text" ' . ($cfg['WYSIWYG-PDF'] ? 'onchange="dragPlace(' . $i . ', \'x\', this.value)"' : '') . ' name="c_table_' . $i . '[x]" value="' . $sh_page['x'] . '" />';
@@ -467,7 +467,7 @@ function resetDrag() {
echo "\n" . ' </select>'
. "\n" . ' </td>';
echo "\n" . ' <td>'
. "\n" . ' <input type="checkbox" name="c_table_' . $i . '[delete]" value="y" />' . $strDelete;
. "\n" . ' <input type="checkbox" name="c_table_' . $i . '[delete]" value="y" />' . __('Delete');
echo "\n" . ' </td>';
echo "\n" . ' <td>'
. "\n" . ' <input type="text" name="c_table_' . $i . '[x]" value="' . (isset($sh_page['x'])?$sh_page['x']:'') . '" />';
@@ -480,8 +480,8 @@ function resetDrag() {
echo "\n" . ' <input type="hidden" name="c_table_rows" value="' . ($i + 1) . '" />';
echo ($cfg['WYSIWYG-PDF'] ? "\n" . ' <input type="hidden" id="showwysiwyg" name="showwysiwyg" value="' . ((isset($showwysiwyg) && $showwysiwyg == '1') ? '1' : '0') . '" />' : '');
echo "\n" . ' <input type="checkbox" name="with_field_names" ' . (isset($with_field_names) ? 'checked="checked"' : ''). ' />' . $strColumnNames . '<br />';
echo "\n" . ' <input type="submit" value="' . $strSave . '" />';
echo "\n" . ' <input type="checkbox" name="with_field_names" ' . (isset($with_field_names) ? 'checked="checked"' : ''). ' />' . __('Column names') . '<br />';
echo "\n" . ' <input type="submit" value="' . __('Save') . '" />';
echo "\n" . '</form>' . "\n\n";
} // end if
@@ -503,12 +503,12 @@ function resetDrag() {
. PMA_generate_common_hidden_inputs($db, $table)
. '<input type="hidden" name="do" value="deleteCrap" />' . "\n"
. '<input type="hidden" name="chpage" value="' . htmlspecialchars($chpage) . '" />' . "\n"
. $strDelOld
. __('The current page has references to tables that no longer exist. Would you like to delete those references?')
. '<ul>' . "\n"
. $_strname
. '</ul>' . "\n"
. $_strtrans
. '<input type="submit" value="' . $strGo . '" />' . "\n"
. '<input type="submit" value="' . __('Go') . '" />' . "\n"
. '</form>';
}
}
@@ -525,20 +525,20 @@ function resetDrag() {
<?php echo PMA_generate_common_hidden_inputs($db); ?>
<input type="hidden" name="pdf_page_number" value="<?php echo htmlspecialchars($chpage); ?>" />
<?php echo '<br /><strong>' . $strDisplayPDF . '</strong>'; ?>:&nbsp;<br />
<input type="checkbox" name="show_grid" id="show_grid_opt" /><label for="show_grid_opt"><?php echo $strShowGrid; ?></label><br />
<input type="checkbox" name="show_color" id="show_color_opt" checked="checked" /><label for="show_color_opt"><?php echo $strShowColor; ?></label><br />
<input type="checkbox" name="show_table_dimension" id="show_table_dim_opt" /><label for="show_table_dim_opt"><?php echo $strShowTableDimension; ?></label><br />
<input type="checkbox" name="all_tab_same_wide" id="all_tab_same_wide" /><label for="all_tab_same_wide"><?php echo $strAllTableSameWidth; ?></label><br />
<input type="checkbox" name="with_doc" id="with_doc" checked="checked" /><label for="with_doc"><?php echo $strDataDict; ?></label><br />
<input type="checkbox" name="show_keys" id="show_keys" /><label for="show_keys"><?php echo $strShowKeys; ?></label><br />
<label for="orientation_opt"><?php echo $strShowDatadictAs; ?></label>
<?php echo '<br /><strong>' . __('Display PDF schema') . '</strong>'; ?>:&nbsp;<br />
<input type="checkbox" name="show_grid" id="show_grid_opt" /><label for="show_grid_opt"><?php echo __('Show grid'); ?></label><br />
<input type="checkbox" name="show_color" id="show_color_opt" checked="checked" /><label for="show_color_opt"><?php echo __('Show color'); ?></label><br />
<input type="checkbox" name="show_table_dimension" id="show_table_dim_opt" /><label for="show_table_dim_opt"><?php echo __('Show dimension of tables'); ?></label><br />
<input type="checkbox" name="all_tab_same_wide" id="all_tab_same_wide" /><label for="all_tab_same_wide"><?php echo __('Display all tables with the same width'); ?></label><br />
<input type="checkbox" name="with_doc" id="with_doc" checked="checked" /><label for="with_doc"><?php echo __('Data Dictionary'); ?></label><br />
<input type="checkbox" name="show_keys" id="show_keys" /><label for="show_keys"><?php echo __('Only show keys'); ?></label><br />
<label for="orientation_opt"><?php echo __('Data Dictionary Format'); ?></label>
<select id="orientation_opt" name="orientation" <?php echo ($cfg['WYSIWYG-PDF'] ? 'onchange="refreshDragOption(\'pdflayout\');"' : ''); ?>>
<option value="L"><?php echo $strLandscape;?></option>
<option value="P"><?php echo $strPortrait;?></option>
<option value="L"><?php echo __('Landscape');?></option>
<option value="P"><?php echo __('Portrait');?></option>
</select><br />
<label for="paper_opt"><?php echo $strPaperSize; ?></label>
<label for="paper_opt"><?php echo __('Paper size'); ?></label>
<select id="paper_opt" name="paper" <?php echo ($cfg['WYSIWYG-PDF'] ? 'onchange="refreshDragOption(\'pdflayout\');"' : ''); ?>>
<?php
foreach ($cfg['PDFPageSizes'] AS $key => $val) {
@@ -550,7 +550,7 @@ function resetDrag() {
}
?>
</select><br />
&nbsp;&nbsp;<input type="submit" value="<?php echo $strGo; ?>" />
&nbsp;&nbsp;<input type="submit" value="<?php echo __('Go'); ?>" />
</form>
<?php
if ((isset($showwysiwyg) && $showwysiwyg == '1')) {

View File

@@ -29,9 +29,9 @@ $cfgRelation = PMA_getRelationsParam();
* complain ;-)
*/
if (!$cfgRelation['pdfwork']) {
echo '<font color="red">' . $strError . '</font><br />' . "\n";
echo '<font color="red">' . __('Error') . '</font><br />' . "\n";
$url_to_goto = '<a href="' . $cfg['PmaAbsoluteUri'] . 'chk_rel.php?' . $url_query . '">';
echo sprintf($strRelationNotWorking, $url_to_goto, '</a>') . "\n";
echo sprintf(__('The additional features for working with linked tables have been deactivated. To find out why click %shere%s.'), $url_to_goto, '</a>') . "\n";
}
/**
@@ -225,7 +225,7 @@ class PMA_PDF extends TCPDF {
{
global $cfg;
global $server, $lang, $convcharset, $db;
global $charset, $text_dir, $strRunning, $strDatabase;
global $charset, $text_dir;
require_once './libraries/header.inc.php';
@@ -1319,15 +1319,15 @@ function PMA_RT_DOC($alltables)
$unsigned = stristr($row['Type'], 'UNSIGNED');
$zerofill = stristr($row['Type'], 'ZEROFILL');
}
$strAttribute = ' ';
$attribute = ' ';
if ($binary) {
$strAttribute = 'BINARY';
$attribute = 'BINARY';
}
if ($unsigned) {
$strAttribute = 'UNSIGNED';
$attribute = 'UNSIGNED';
}
if ($zerofill) {
$strAttribute = 'UNSIGNED ZEROFILL';
$attribute = 'UNSIGNED ZEROFILL';
}
if (!isset($row['Default'])) {
if ($row['Null'] != '' && $row['Null'] != 'NO') {
@@ -1341,7 +1341,7 @@ function PMA_RT_DOC($alltables)
$pdf->SetLink($pdf->PMA_links['doc'][$table][$field_name], -1);
$pdf_row = array($field_name,
$type,
$strAttribute,
$attribute,
($row['Null'] == '' || $row['Null'] == 'NO') ? $GLOBALS['strNo'] : $GLOBALS['strYes'],
((isset($row['Default'])) ? $row['Default'] : ''),
$row['Extra'],
@@ -1365,7 +1365,7 @@ function PMA_RT_DOC($alltables)
//echo ' ' . $field_name . '&nbsp;' . "\n";
}
$pdf->Cell(20, 8, $type, 1, 0, 'L');
$pdf->Cell(20, 8, $strAttribute, 1, 0, 'L');
$pdf->Cell(20, 8, $attribute, 1, 0, 'L');
$pdf->Cell(15, 8, , 1, 0, 'L');
$pdf->Cell(15, 8, ((isset($row['Default'])) ? $row['Default'] : ''),1,0,'L');
$pdf->Cell(15, 8, $row['Extra'], 1, 0, 'L');

View File

@@ -61,51 +61,51 @@ echo $script_tabs . $script_contr . $script_display_field;
<div class="header" id="top_menu">
<a href="javascript:Show_left_menu(document.getElementById('key_Show_left_menu'));"
onmousedown="return false;" class="M_butt first" target="_self">
<img id='key_Show_left_menu' title="<?php echo $strShowHideLeftMenu; ?>"
<img id='key_Show_left_menu' title="<?php echo __('Show/Hide left menu'); ?>"
alt="v" src="pmd/images/downarrow2_m.png" /></a>
<a href="javascript:Save2();" onmousedown="return false;"
class="M_butt" target="_self"
><img title="<?php echo $strSavePosition ?>" src="pmd/images/save.png" alt=""
><img title="<?php echo __('Save position') ?>" src="pmd/images/save.png" alt=""
/></a><a href="javascript:Start_table_new();" onmousedown="return false;"
class="M_butt" target="_self"
><img title="<?php echo $strCreateTable ?>" src="pmd/images/table.png" alt=""
><img title="<?php echo __('Create table')?>" src="pmd/images/table.png" alt=""
/></a><a href="javascript:Start_relation();" onmousedown="return false;"
class="M_butt" id="rel_button" target="_self"
><img title="<?php echo $strCreateRelation ?>" src="pmd/images/relation.png" alt=""
><img title="<?php echo __('Create relation') ?>" src="pmd/images/relation.png" alt=""
/></a><a href="javascript:Start_display_field();" onmousedown="return false;"
class="M_butt" id="display_field_button" target="_self"
><img title="<?php echo $strChangeDisplay ?>" src="pmd/images/display_field.png" alt=""
><img title="<?php echo __('Choose field to display') ?>" src="pmd/images/display_field.png" alt=""
/></a><a href="javascript:location.reload();" onmousedown="return false;"
class="M_butt" target="_self"
><img title="<?php echo $strReload; ?>" src="pmd/images/reload.png" alt=""
><img title="<?php echo __('Reload'); ?>" src="pmd/images/reload.png" alt=""
/></a><a href="javascript:Help();" onmousedown="return false;"
class="M_butt" target="_self"
><img title="<?php echo $strHelp; ?>" src="pmd/images/help.png" alt=""
><img title="<?php echo __('Help'); ?>" src="pmd/images/help.png" alt=""
/></a><img class="M_bord" src="pmd/images/bord.png" alt=""
/><a href="javascript:Angular_direct();" onmousedown="return false;"
class="M_butt" id="angular_direct_button" target="_self"
><img title="<?php echo $strAngularLinks . ' / ' . $strDirectLinks; ?>"
><img title="<?php echo __('Angular links') . ' / ' . __('Direct links'); ?>"
src="pmd/images/ang_direct.png" alt=""
/></a><a href="javascript:Grid();" onmousedown="return false;"
class="M_butt" id="grid_button" target="_self"
><img title="<?php echo $strSnapToGrid ?>" src="pmd/images/grid.png" alt=""
><img title="<?php echo __('Snap to grid') ?>" src="pmd/images/grid.png" alt=""
/></a><img class="M_bord" src="pmd/images/bord.png" alt=""
/><a href="javascript:Small_tab_all(document.getElementById('key_SB_all'));"
onmousedown="return false;" class="M_butt" target="_self"
><img id='key_SB_all' title="<?php echo $strSmallBigAll; ?>" alt="v"
><img id='key_SB_all' title="<?php echo __('Small/Big All'); ?>" alt="v"
src="pmd/images/downarrow1.png"
/></a><a href="javascript:Small_tab_invert();" onmousedown="return false;"
class="M_butt" target="_self"
><img title="<?php echo $strToggleSmallBig; ?>" alt="key" src="pmd/images/bottom.png"
><img title="<?php echo __('Toggle small/big'); ?>" alt="key" src="pmd/images/bottom.png"
/></a><img class="M_bord" src="pmd/images/bord.png" alt=""
/><a href="javascript:PDF_save();" onmousedown="return false;"
class="M_butt" target="_self"
><img src="pmd/images/pdf.png" alt="key" width="20" height="20"
title="<?php echo $strImportExportCoords; ?>" /></a>
title="<?php echo __('Import/Export coordinates for PDF schema'); ?>" /></a>
<a href="javascript:Top_menu_right(document.getElementById('key_Left_Right'));"
onmousedown="return false;" class="M_butt last" target="_self">
<img src="pmd/images/2rightarrow_m.png" id="key_Left_Right" alt=">"
title="<?php echo $strMoveMenu; ?>" /></a>
title="<?php echo __('Move Menu'); ?>" /></a>
</div>
<div id="osn_tab">
@@ -117,11 +117,11 @@ echo $script_tabs . $script_contr . $script_display_field;
<div align="center" style="padding-top:5px;">
<a href="javascript:Hide_tab_all(document.getElementById('key_HS_all'));"
onmousedown="return false;" class="M_butt" target="_self">
<img title="<?php echo $strHideShowAll; ?>" alt="v"
<img title="<?php echo __('Hide/Show all'); ?>" alt="v"
src="pmd/images/downarrow1.png" id='key_HS_all' /></a>
<a href="javascript:No_have_constr(document.getElementById('key_HS'));"
onmousedown="return false;" class="M_butt" target="_self">
<img title="<?php echo $strHideShowNoRelation; ?>" alt="v"
<img title="<?php echo __('Hide/Show Tables with no relation'); ?>" alt="v"
src="pmd/images/downarrow2.png" id='key_HS' /></a>
</div>
@@ -131,7 +131,7 @@ echo $script_tabs . $script_contr . $script_display_field;
$name_cnt = count($GLOBALS['PMD']['TABLE_NAME']);
for ($i = 0; $i < $name_cnt; $i++) {
?>
<tr><td title="<?php echo $strStructure; ?>" width="1px"
<tr><td title="<?php echo __('Structure'); ?>" width="1px"
onmouseover="this.className='L_butt2_2'"
onmouseout="this.className='L_butt2_1'">
<img onclick="Start_tab_upd('<?php echo $GLOBALS['PMD_URL']["TABLE_NAME_SMALL"][$i]; ?>');"
@@ -161,7 +161,7 @@ for ($i = 0; $i < $name_cnt; $i++) {
</div>
<div align="center">
<?php echo $strNumberOfTables . ': ' . $name_cnt; ?>
<?php echo __('Number of tables') . ': ' . $name_cnt; ?>
</div>
<div align="right">
<div id="layer_menu_sizer" onmousedown="layer_menu_cur_click=1">
@@ -303,7 +303,7 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
<table width="168" border="0" align="center" cellpadding="2" cellspacing="0">
<thead>
<tr>
<td colspan="2" align="center" nowrap="nowrap"><strong><?php echo $strCreateRelation; ?></strong></td>
<td colspan="2" align="center" nowrap="nowrap"><strong><?php echo __('Create relation'); ?></strong></td>
</tr>
</thead>
<tbody id="foreign_relation">
@@ -337,9 +337,9 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
<tr>
<td colspan="2" align="center" nowrap="nowrap">
<input type="button" class="butt" name="Button"
value="<?php echo $strOK; ?>" onclick="New_relation()" />
value="<?php echo __('OK'); ?>" onclick="New_relation()" />
<input type="button" class="butt" name="Button"
value="<?php echo $strCancel; ?>"
value="<?php echo __('Cancel'); ?>"
onclick="document.getElementById('layer_new_relation').style.visibility = 'hidden';" />
</td>
</tr>
@@ -369,14 +369,14 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
<td class="input_tab">
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>
<td colspan="3" align="center" nowrap="nowrap"><strong><?php echo $strDeleteRelation; ?></strong></td>
<td colspan="3" align="center" nowrap="nowrap"><strong><?php echo __('Delete relation'); ?></strong></td>
</tr>
<tr>
<td colspan="3" align="center" nowrap="nowrap">
<input name="Button" type="button" class="butt"
onclick="Upd_relation()" value="<?php echo $strDelete; ?>" />
onclick="Upd_relation()" value="<?php echo __('Delete'); ?>" />
<input type="button" class="butt" name="Button"
value="<?php echo $strCancel; ?>"
value="<?php echo __('Cancel'); ?>"
onclick="document.getElementById('layer_upd_relation').style.visibility = 'hidden'; Re_load();" />
</td>
</tr>

View File

@@ -49,7 +49,7 @@ if (isset($scale) && ! isset($createpage)) {
AND pdf_page_number = ' . $pdf_page_number_q . ';', TRUE, PMA_DBI_QUERY_STORE);
}
die("<script>alert('$strModifications');history.go(-2);</script>");
die("<script>alert('__('Modifications have been saved')');history.go(-2);</script>");
}
if (isset($createpage)) {
@@ -82,16 +82,16 @@ require_once './libraries/header_meta_style.inc.php';
<?php echo PMA_generate_common_hidden_inputs($db); ?>
<div>
<fieldset><legend><?php echo $GLOBALS['strExport'] . '/' . $GLOBALS['strImport']; ?></legend>
<p><?php echo $strExportImportToScale; ?>:
<p><?php echo __('Export/Import to scale'); ?>:
<select name="scale">
<option value="1">1:1</option>
<option value="2">1:2</option>
<option value="3" selected>1:3 (<?php echo $strRecommended; ?>)</option>
<option value="3" selected>1:3 (<?php echo __('recommended'); ?>)</option>
<option value="4">1:4</option>
<option value="5">1:5</option>
</select>
</p>
<p><?php echo $strToFromPage; ?>:
<p><?php echo __('to/from page'); ?>:
<select name="pdf_page_number">
<?php
@@ -106,14 +106,14 @@ require_once './libraries/header_meta_style.inc.php';
}
?>
</select>
<input type="submit" name="exp" value="<?php echo $strExport; ?>">
<input type="submit" name="imp" value="<?php echo $strImport; ?>">
<input type="submit" name="exp" value="<?php echo __('Export'); ?>">
<input type="submit" name="imp" value="<?php echo __('Import'); ?>">
</fieldset>
</div>
<div>
<fieldset><legend><?php echo $GLOBALS['strCreatePage']; ?></legend>
<input type="text" name="newpage" />
<input type="submit" name="createpage" value="<?php echo $strGo; ?>">
<input type="submit" name="createpage" value="<?php echo __('Go'); ?>">
</fieldset>
</div>
</form>

2387
po/af.po

File diff suppressed because it is too large Load Diff

2367
po/ar.po

File diff suppressed because it is too large Load Diff

2390
po/az.po

File diff suppressed because it is too large Load Diff

2421
po/be.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

2393
po/bg.po

File diff suppressed because it is too large Load Diff

2411
po/bn.po

File diff suppressed because it is too large Load Diff

2391
po/bs.po

File diff suppressed because it is too large Load Diff

2412
po/ca.po

File diff suppressed because it is too large Load Diff

2415
po/cs.po

File diff suppressed because it is too large Load Diff

2389
po/da.po

File diff suppressed because it is too large Load Diff

2408
po/de.po

File diff suppressed because it is too large Load Diff

2421
po/el.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

2423
po/es.po

File diff suppressed because it is too large Load Diff

2407
po/et.po

File diff suppressed because it is too large Load Diff

2396
po/eu.po

File diff suppressed because it is too large Load Diff

2380
po/fa.po

File diff suppressed because it is too large Load Diff

2405
po/fi.po

File diff suppressed because it is too large Load Diff

2417
po/fr.po

File diff suppressed because it is too large Load Diff

2415
po/gl.po

File diff suppressed because it is too large Load Diff

2372
po/he.po

File diff suppressed because it is too large Load Diff

2334
po/hi.po

File diff suppressed because it is too large Load Diff

2417
po/hr.po

File diff suppressed because it is too large Load Diff

2425
po/hu.po

File diff suppressed because it is too large Load Diff

2377
po/id.po

File diff suppressed because it is too large Load Diff

2431
po/it.po

File diff suppressed because it is too large Load Diff

2384
po/ja.po

File diff suppressed because it is too large Load Diff

2409
po/ka.po

File diff suppressed because it is too large Load Diff

2377
po/ko.po

File diff suppressed because it is too large Load Diff

2395
po/lt.po

File diff suppressed because it is too large Load Diff

2389
po/lv.po

File diff suppressed because it is too large Load Diff

2388
po/mk.po

File diff suppressed because it is too large Load Diff

2378
po/mn.po

File diff suppressed because it is too large Load Diff

2381
po/ms.po

File diff suppressed because it is too large Load Diff

2400
po/nb.po

File diff suppressed because it is too large Load Diff

2409
po/nl.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

2415
po/pl.po

File diff suppressed because it is too large Load Diff

2402
po/pt.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

2409
po/ro.po

File diff suppressed because it is too large Load Diff

2411
po/ru.po

File diff suppressed because it is too large Load Diff

2409
po/si.po

File diff suppressed because it is too large Load Diff

2419
po/sk.po

File diff suppressed because it is too large Load Diff

2390
po/sl.po

File diff suppressed because it is too large Load Diff

2391
po/sq.po

File diff suppressed because it is too large Load Diff

2411
po/sr.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

2423
po/sv.po

File diff suppressed because it is too large Load Diff

2310
po/ta.po

File diff suppressed because it is too large Load Diff

2343
po/te.po

File diff suppressed because it is too large Load Diff

2376
po/th.po

File diff suppressed because it is too large Load Diff

2417
po/tr.po

File diff suppressed because it is too large Load Diff

2397
po/tt.po

File diff suppressed because it is too large Load Diff

2369
po/uk.po

File diff suppressed because it is too large Load Diff

2310
po/ur.po

File diff suppressed because it is too large Load Diff

2417
po/uz.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More