Setup script: move language strings to global variables, prefix them with "$strSetup"

This commit is contained in:
Piotr Przybylski
2008-10-14 10:31:07 +00:00
parent f1d78aa718
commit cd9da66ffb
11 changed files with 410 additions and 403 deletions

View File

@@ -20,7 +20,7 @@ $config_writable = false;
$config_exists = false; $config_exists = false;
check_config_rw($config_readable, $config_writable, $config_exists); check_config_rw($config_readable, $config_writable, $config_exists);
?> ?>
<h2><?php echo $GLOBALS['str']['ConfigurationFile'] ?></h2> <h2><?php echo $GLOBALS['strSetupConfigurationFile'] ?></h2>
<?php display_form_top('config.php?type=post'); ?> <?php display_form_top('config.php?type=post'); ?>
<input type="hidden" name="eol" value="<?php echo htmlspecialchars(PMA_ifSetOr($_GET['eol'], 'unix')) ?>" /> <input type="hidden" name="eol" value="<?php echo htmlspecialchars(PMA_ifSetOr($_GET['eol'], 'unix')) ?>" />
<?php display_fieldset_top('', '', null, array('class' => 'simple')); ?> <?php display_fieldset_top('', '', null, array('class' => 'simple')); ?>
@@ -33,7 +33,7 @@ check_config_rw($config_readable, $config_writable, $config_exists);
</tr> </tr>
<tr> <tr>
<td class="lastrow" style="text-align: left"> <td class="lastrow" style="text-align: left">
<input type="submit" name="submit_download" value="<?php echo $GLOBALS['str']['Download'] ?>" class="green" /> <input type="submit" name="submit_download" value="<?php echo $GLOBALS['strSetupDownload'] ?>" class="green" />
<input type="submit" name="submit_save" value="<?php echo $GLOBALS['strSave'] ?>"<?php if (!$config_writable) echo ' disabled="disabled"' ?> /> <input type="submit" name="submit_save" value="<?php echo $GLOBALS['strSave'] ?>"<?php if (!$config_writable) echo ' disabled="disabled"' ?> />
&nbsp; &nbsp; &nbsp; &nbsp;
<input type="reset" value="<?php echo $GLOBALS['strReset'] ?>" /> <input type="reset" value="<?php echo $GLOBALS['strReset'] ?>" />

View File

@@ -36,8 +36,8 @@ if (!isset($formsets[$formset_id])) {
} }
$formset = $formsets[$formset_id]; $formset = $formsets[$formset_id];
if (isset($GLOBALS['str']['Formset_' . $formset_id])) { if (isset($GLOBALS['strSetupFormset_' . $formset_id])) {
echo '<h2>' . $GLOBALS['str']['Formset_' . $formset_id] . '</h2>'; echo '<h2>' . $GLOBALS['strSetupFormset_' . $formset_id] . '</h2>';
} }
$form_display = new FormDisplay(); $form_display = new FormDisplay();
foreach ($formset['forms'] as $form_name) { foreach ($formset['forms'] as $form_name) {

View File

@@ -53,7 +53,7 @@ if (!$config_writable || !$config_readable) {
// //
$is_https = !empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on'; $is_https = !empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on';
if (!$is_https) { if (!$is_https) {
$text = $GLOBALS['str']['InsecureConnectionMsg1']; $text = $GLOBALS['strSetupInsecureConnectionMsg1'];
if (!empty($_SERVER['REQUEST_URI']) && !empty($_SERVER['HTTP_HOST'])) { if (!empty($_SERVER['REQUEST_URI']) && !empty($_SERVER['HTTP_HOST'])) {
$text .= ' ' . PMA_lang('InsecureConnectionMsg2', $text .= ' ' . PMA_lang('InsecureConnectionMsg2',
'https://' . htmlspecialchars($_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'])); 'https://' . htmlspecialchars($_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']));
@@ -91,7 +91,7 @@ if (!$is_https) {
</select> </select>
</form> </form>
<h2><?php echo $GLOBALS['str']['Overview'] ?></h2> <h2><?php echo $GLOBALS['strSetupOverview'] ?></h2>
<?php <?php
// message handling // message handling
@@ -99,7 +99,7 @@ messages_end();
messages_show_html(); messages_show_html();
?> ?>
<a href="#" id="show_hidden_messages" style="display:none"><?php echo $str['ShowHiddenMessages'] ?></a> <a href="#" id="show_hidden_messages" style="display:none"><?php echo $GLOBALS['strSetupShowHiddenMessages'] ?></a>
<h3><?php echo $GLOBALS['strServers'] ?></h3> <h3><?php echo $GLOBALS['strServers'] ?></h3>
<?php <?php
@@ -139,7 +139,7 @@ display_form_top('index.php', 'get', array(
<table width="100%"> <table width="100%">
<tr> <tr>
<td> <td>
<i><?php echo $GLOBALS['str']['NoServers'] ?></i> <i><?php echo $GLOBALS['strSetupNoServers'] ?></i>
</td> </td>
</tr> </tr>
</table> </table>
@@ -147,7 +147,7 @@ display_form_top('index.php', 'get', array(
<table width="100%"> <table width="100%">
<tr> <tr>
<td class="lastrow" style="text-align: left"> <td class="lastrow" style="text-align: left">
<input type="submit" name="submit" value="<?php echo $GLOBALS['str']['NewServer'] ?>" /> <input type="submit" name="submit" value="<?php echo $GLOBALS['strSetupNewServer'] ?>" />
</td> </td>
</tr> </tr>
</table> </table>
@@ -156,7 +156,7 @@ display_form_top('index.php', 'get', array(
display_form_bottom(); display_form_bottom();
?> ?>
<h3><?php echo $GLOBALS['str']['ConfigurationFile'] ?></h3> <h3><?php echo $GLOBALS['strSetupConfigurationFile'] ?></h3>
<?php <?php
// //
// Display config file settings and load/save form // Display config file settings and load/save form
@@ -183,7 +183,7 @@ foreach ($all_languages as $each_lang_key => $each_lang) {
} }
$opts['values'][$each_lang_key] = $lang_name; $opts['values'][$each_lang_key] = $lang_name;
} }
display_input('DefaultLang', $GLOBALS['str']['DefaultLanguage'], '', 'select', display_input('DefaultLang', $GLOBALS['strSetupDefaultLanguage'], '', 'select',
$cf->getValue('DefaultLang'), true, $opts); $cf->getValue('DefaultLang'), true, $opts);
// Display server list // Display server list
@@ -193,7 +193,7 @@ $opts = array(
'values' => array(), 'values' => array(),
'values_disabled' => array()); 'values_disabled' => array());
if ($cf->getServerCount() > 0) { if ($cf->getServerCount() > 0) {
$opts['values']['0'] = $GLOBALS['str']['LetUserChoose']; $opts['values']['0'] = $GLOBALS['strSetupLetUserChoose'];
$opts['values']['-'] = '------------------------------'; $opts['values']['-'] = '------------------------------';
if ($cf->getServerCount() == 1) { if ($cf->getServerCount() == 1) {
$opts['values_disabled'][] = '0'; $opts['values_disabled'][] = '0';
@@ -204,10 +204,10 @@ if ($cf->getServerCount() > 0) {
$opts['values'][(string)$id] = $cf->getServerName($id) . " [$id]"; $opts['values'][(string)$id] = $cf->getServerName($id) . " [$id]";
} }
} else { } else {
$opts['values']['1'] = $GLOBALS['str']['-none-']; $opts['values']['1'] = $GLOBALS['strSetupOptionNone'];
$opts['values_escaped'] = true; $opts['values_escaped'] = true;
} }
display_input('ServerDefault', $GLOBALS['str']['DefaultServer'], '', 'select', display_input('ServerDefault', $GLOBALS['strSetupDefaultServer'], '', 'select',
$cf->getValue('ServerDefault'), true, $opts); $cf->getValue('ServerDefault'), true, $opts);
// Display EOL list // Display EOL list
@@ -217,19 +217,19 @@ $opts = array(
'win' => 'Windows (\r\n)'), 'win' => 'Windows (\r\n)'),
'values_escaped' => true); 'values_escaped' => true);
$eol = PMA_ifSetOr($_SESSION['eol'], (PMA_IS_WINDOWS ? 'win' : 'unix')); $eol = PMA_ifSetOr($_SESSION['eol'], (PMA_IS_WINDOWS ? 'win' : 'unix'));
display_input('eol', $GLOBALS['str']['EndOfLine'], '', 'select', display_input('eol', $GLOBALS['strSetupEndOfLine'], '', 'select',
$eol, true, $opts); $eol, true, $opts);
?> ?>
<tr> <tr>
<td colspan="2" class="lastrow" style="text-align: left"> <td colspan="2" class="lastrow" style="text-align: left">
<input type="submit" name="submit_display" value="<?php echo $GLOBALS['str']['Display'] ?>" /> <input type="submit" name="submit_display" value="<?php echo $GLOBALS['strSetupDisplay'] ?>" />
<input type="submit" name="submit_download" value="<?php echo $GLOBALS['str']['Download'] ?>" /> <input type="submit" name="submit_download" value="<?php echo $GLOBALS['strSetupDownload'] ?>" />
&nbsp; &nbsp; &nbsp; &nbsp;
<input type="submit" name="submit_save" value="<?php echo $GLOBALS['strSave'] ?>"<?php if (!$config_writable) echo ' disabled="disabled"' ?> /> <input type="submit" name="submit_save" value="<?php echo $GLOBALS['strSave'] ?>"<?php if (!$config_writable) echo ' disabled="disabled"' ?> />
<input type="submit" name="submit_load" value="<?php echo $GLOBALS['str']['Load'] ?>"<?php if (!$config_exists) echo ' disabled="disabled"' ?> /> <input type="submit" name="submit_load" value="<?php echo $GLOBALS['strSetupLoad'] ?>"<?php if (!$config_exists) echo ' disabled="disabled"' ?> />
<input type="submit" name="submit_delete" value="<?php echo $GLOBALS['strDelete'] ?>"<?php if (!$config_exists || !$config_writable) echo ' disabled="disabled"' ?> /> <input type="submit" name="submit_delete" value="<?php echo $GLOBALS['strDelete'] ?>"<?php if (!$config_exists || !$config_writable) echo ' disabled="disabled"' ?> />
&nbsp; &nbsp; &nbsp; &nbsp;
<input type="submit" name="submit_clear" value="<?php echo $GLOBALS['str']['Clear'] ?>" class="red" /> <input type="submit" name="submit_clear" value="<?php echo $GLOBALS['strSetupClear'] ?>" class="red" />
</td> </td>
</tr> </tr>
<?php <?php
@@ -237,7 +237,7 @@ display_fieldset_bottom_simple();
display_form_bottom(); display_form_bottom();
?> ?>
<div id="footer"> <div id="footer">
<a href="http://phpmyadmin.net"><?php echo $GLOBALS['str']['HomepageLink'] ?></a> <a href="http://phpmyadmin.net"><?php echo $GLOBALS['strSetupHomepageLink'] ?></a>
<a href="http://sourceforge.net/donate/index.php?group_id=23067"><?php echo $GLOBALS['str']['DonateLink'] ?></a> <a href="http://sourceforge.net/donate/index.php?group_id=23067"><?php echo $GLOBALS['strSetupDonateLink'] ?></a>
<a href="?version_check=1<?php echo "{$separator}token=" . $_SESSION[' PMA_token '] ?>"><?php echo $GLOBALS['str']['VersionCheckLink'] ?></a> <a href="?version_check=1<?php echo "{$separator}token=" . $_SESSION[' PMA_token '] ?>"><?php echo $GLOBALS['strSetupVersionCheckLink'] ?></a>
</div> </div>

View File

@@ -15,10 +15,10 @@ if (!defined('PHPMYADMIN')) {
$separator = PMA_get_arg_separator('html'); $separator = PMA_get_arg_separator('html');
?> ?>
<ul> <ul>
<li><a href="index.php"><?php echo $GLOBALS['str']['Overview'] ?></a></li> <li><a href="index.php"><?php echo $GLOBALS['strSetupOverview'] ?></a></li>
<li><a href="?page=form<?php echo $separator ?>formset=features"><?php echo $GLOBALS['str']['Formset_features'] ?></a></li> <li><a href="?page=form<?php echo $separator ?>formset=features"><?php echo $GLOBALS['strSetupFormset_features'] ?></a></li>
<li><a href="?page=form<?php echo $separator ?>formset=left_frame"><?php echo $GLOBALS['str']['Form_Left_frame'] ?></a></li> <li><a href="?page=form<?php echo $separator ?>formset=left_frame"><?php echo $GLOBALS['strSetupForm_Left_frame'] ?></a></li>
<li><a href="?page=form<?php echo $separator ?>formset=main_frame"><?php echo $GLOBALS['str']['Form_Main_frame'] ?></a></li> <li><a href="?page=form<?php echo $separator ?>formset=main_frame"><?php echo $GLOBALS['strSetupForm_Main_frame'] ?></a></li>
<li><a href="?page=form<?php echo $separator ?>formset=import"><?php echo $GLOBALS['strImport'] ?></a></li> <li><a href="?page=form<?php echo $separator ?>formset=import"><?php echo $GLOBALS['strImport'] ?></a></li>
<li><a href="?page=form<?php echo $separator ?>formset=export"><?php echo $GLOBALS['strExport'] ?></a></li> <li><a href="?page=form<?php echo $separator ?>formset=export"><?php echo $GLOBALS['strExport'] ?></a></li>
</ul> </ul>

View File

@@ -23,7 +23,7 @@ $cf = ConfigFile::getInstance();
$server_exists = !empty($id) && $cf->get("Servers/$id") !== null; $server_exists = !empty($id) && $cf->get("Servers/$id") !== null;
if ($mode == 'edit' && $server_exists) { if ($mode == 'edit' && $server_exists) {
$page_title = $GLOBALS['str']['ServersEdit'] $page_title = $GLOBALS['strSetupServersEdit']
. ' ' . $id . ' <small>(' . $cf->getServerDSN($id) . ')</small>'; . ' ' . $id . ' <small>(' . $cf->getServerDSN($id) . ')</small>';
} elseif ($mode == 'remove' && $server_exists) { } elseif ($mode == 'remove' && $server_exists) {
$cf->removeServer($id); $cf->removeServer($id);
@@ -32,7 +32,7 @@ if ($mode == 'edit' && $server_exists) {
} elseif ($mode == 'revert' && $server_exists) { } elseif ($mode == 'revert' && $server_exists) {
// handled by process_formset() // handled by process_formset()
} else { } else {
$page_title = $GLOBALS['str']['ServersAdd']; $page_title = $GLOBALS['strSetupServersAdd'];
$id = 0; $id = 0;
} }
?> ?>

View File

@@ -10,402 +10,402 @@
*/ */
// page titles // page titles
$str['ServersAdd'] = 'Add a new server'; $strSetupServersAdd = 'Add a new server';
$str['ServersEdit'] = 'Edit server'; $strSetupServersEdit = 'Edit server';
$str['Formset_features'] = 'Features'; $strSetupFormset_features = 'Features';
$str['Formset_left_frame'] = 'Customize navigation frame'; $strSetupFormset_left_frame = 'Customize navigation frame';
$str['Formset_main_frame'] = 'Customize main frame'; $strSetupFormset_main_frame = 'Customize main frame';
$str['Formset_import'] = 'Customize import defaults'; $strSetupFormset_import = 'Customize import defaults';
$str['Formset_export'] = 'Customize export options'; $strSetupFormset_export = 'Customize export options';
$str['Formset_customization'] = 'Customization'; $strSetupFormset_customization = 'Customization';
// forms // forms
$str['true'] = 'yes'; $strSetupTrue = 'yes';
$str['false'] = 'no'; $strSetupFalse = 'no';
$str['Display'] = 'Display'; $strSetupDisplay = 'Display';
$str['Download'] = 'Download'; $strSetupDownload = 'Download';
$str['Clear'] = 'Clear'; $strSetupClear = 'Clear';
$str['Load'] = 'Load'; $strSetupLoad = 'Load';
$str['RestoreDefaultValue'] = 'Restore default value'; $strSetupRestoreDefaultValue = 'Restore default value';
$str['SetValue'] = 'Set value: %s'; $strSetupSetValue = 'Set value: %s';
$str['Warning'] = 'Warning'; $strSetupWarning = 'Warning';
$str['IgnoreErrors'] = 'Ignore errors'; $strSetupIgnoreErrors = 'Ignore errors';
$str['RevertErroneousFields'] = 'Try to revert erroneous fields to their default values'; $strSetupRevertErroneousFields = 'Try to revert erroneous fields to their default values';
$str['ShowForm'] = 'Show form'; $strSetupShowForm = 'Show form';
// main page // main page
$str['Overview'] = 'Overview'; $strSetupOverview = 'Overview';
$str['ShowHiddenMessages'] = 'Show hidden messages (#MSG_COUNT)'; $strSetupShowHiddenMessages = 'Show hidden messages (#MSG_COUNT)';
$str['NoServers'] = 'There are no configured servers'; $strSetupNoServers = 'There are no configured servers';
$str['NewServer'] = 'New server'; $strSetupNewServer = 'New server';
$str['DefaultLanguage'] = 'Default language'; $strSetupDefaultLanguage = 'Default language';
$str['DefaultServer'] = 'Default server'; $strSetupDefaultServer = 'Default server';
$str['LetUserChoose'] = 'let the user choose'; $strSetupLetUserChoose = 'let the user choose';
$str['-none-'] = '- none -'; $strSetupOptionNone = '- none -';
$str['EndOfLine'] = 'End of line'; $strSetupEndOfLine = 'End of line';
$str['ConfigurationFile'] = 'Configuration file'; $strSetupConfigurationFile = 'Configuration file';
$str['HomepageLink'] = 'phpMyAdmin homepage'; $strSetupHomepageLink = 'phpMyAdmin homepage';
$str['DonateLink'] = 'Donate'; $strSetupDonateLink = 'Donate';
$str['VersionCheckLink'] = 'Check for latest version'; $strSetupVersionCheckLink = 'Check for latest version';
// main page messages // main page messages
$str['CannotLoadConfig'] = 'Cannot load or save configuration'; $strSetupCannotLoadConfig = 'Cannot load or save configuration';
$str['CannotLoadConfigMsg'] = 'Please create web server writable folder [em]config[/em] in phpMyAdmin top level directory as described in [a@../Documentation.html#setup_script]documentation[/a]. Otherwise you will be only able to download or display it.'; $strSetupCannotLoadConfigMsg = 'Please create web server writable folder [em]config[/em] in phpMyAdmin top level directory as described in [a@../Documentation.html#setup_script]documentation[/a]. Otherwise you will be only able to download or display it.';
$str['InsecureConnection'] = 'Insecure connection'; $strSetupInsecureConnection = 'Insecure connection';
$str['InsecureConnectionMsg1'] = 'You are not using a secure connection, all data (including sensitive, like passwords) is transferred unencrypted!'; $strSetupInsecureConnectionMsg1 = 'You are not using a secure connection, all data (including sensitive, like passwords) is transferred unencrypted!';
$str['InsecureConnectionMsg2'] = 'If your server is also configured to accept HTTPS requests follow [a@%s]this link[/a] to use a secure connection.'; $strSetupInsecureConnectionMsg2 = 'If your server is also configured to accept HTTPS requests follow [a@%s]this link[/a] to use a secure connection.';
$str['VersionCheck'] = 'Version check'; $strSetupVersionCheck = 'Version check';
$str['VersionCheckWrapperError'] = 'Neither URL wrapper nor CURL is available. Version check is not possible.'; $strSetupVersionCheckWrapperError = 'Neither URL wrapper nor CURL is available. Version check is not possible.';
$str['VersionCheckDataError'] = 'Reading of version failed. Maybe you\'re offline or the upgrade server does not respond.'; $strSetupVersionCheckDataError = 'Reading of version failed. Maybe you\'re offline or the upgrade server does not respond.';
$str['VersionCheckInvalid'] = 'Got invalid version string from server'; $strSetupVersionCheckInvalid = 'Got invalid version string from server';
$str['VersionCheckUnparsable'] = 'Unparsable version string'; $strSetupVersionCheckUnparsable = 'Unparsable version string';
$str['VersionCheckNewAvailable'] = 'New version of phpMyAdmin is available, you should consider upgrade. New version is %s, released on %s.'; $strSetupVersionCheckNewAvailable = 'New version of phpMyAdmin is available, you should consider upgrade. New version is %s, released on %s.';
$str['VersionCheckNewAvailableSvn'] = 'You are using subversion version, run [kbd]svn update[/kbd] :-)[br]The latest stable version is %s, released on %s.'; $strSetupVersionCheckNewAvailableSvn = 'You are using subversion version, run [kbd]svn update[/kbd] :-)[br]The latest stable version is %s, released on %s.';
$str['VersionCheckNone'] = 'No newer stable version is available'; $strSetupVersionCheckNone = 'No newer stable version is available';
$str['ServerSecurityInfoMsg'] = 'If you feel this is necessary, use additional protection settings - [a@?page=servers&amp;mode=edit&amp;id=%1$d#tab_Server_config]host authentication[/a] settings and [a@?page=form&amp;formset=features#tab_Security]trusted proxies list[/a]. However, IP-based protection may not be reliable if your IP belongs to an ISP where thousands of users, including you, are connected to.'; $strSetupServerSecurityInfoMsg = 'If you feel this is necessary, use additional protection settings - [a@?page=servers&amp;mode=edit&amp;id=%1$d#tab_Server_config]host authentication[/a] settings and [a@?page=form&amp;formset=features#tab_Security]trusted proxies list[/a]. However, IP-based protection may not be reliable if your IP belongs to an ISP where thousands of users, including you, are connected to.';
$str['ServerSslMsg'] = 'You should use SSL connections if your web server supports it'; $strSetupServerSslMsg = 'You should use SSL connections if your web server supports it';
$str['ServerExtensionMsg'] = 'You should use mysqli for performance reasons'; $strSetupServerExtensionMsg = 'You should use mysqli for performance reasons';
$str['ServerAuthConfigMsg'] = 'You set [kbd]config[/kbd] authentication type and included username and password for auto-login, which is not a desirable option for live hosts. Anyone who knows phpMyAdmin URL can directly access your phpMyAdmin panel. Set [a@?page=servers&amp;mode=edit&amp;id=%1$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http[/kbd].'; $strSetupServerAuthConfigMsg = 'You set [kbd]config[/kbd] authentication type and included username and password for auto-login, which is not a desirable option for live hosts. Anyone who knows phpMyAdmin URL can directly access your phpMyAdmin panel. Set [a@?page=servers&amp;mode=edit&amp;id=%1$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http[/kbd].';
$str['ServerNoPasswordRootMsg'] = 'You allow for connecting to the server as root without a passowrd.'; $strSetupServerNoPasswordRootMsg = 'You allow for connecting to the server as root without a passowrd.';
$str['BlowfishSecretMsg'] = 'You didn\'t have blowfish secret set and enabled cookie authentication so the key was generated for you. It is used to encrypt cookies.'; $strSetupBlowfishSecretMsg = 'You didn\'t have blowfish secret set and enabled cookie authentication so the key was generated for you. It is used to encrypt cookies.';
$str['BlowfishSecretLengthMsg'] = 'Key is too short, it should have at least 8 characters'; $strSetupBlowfishSecretLengthMsg = 'Key is too short, it should have at least 8 characters';
$str['BlowfishSecretCharsMsg'] = 'Key should contain alphanumerics, letters [em]and[/em] special characters'; $strSetupBlowfishSecretCharsMsg = 'Key should contain alphanumerics, letters [em]and[/em] special characters';
$str['ForceSSLMsg'] = 'This [a@?page=form&amp;formset=features#tab_Security]option[/a] should be enabled if your web server supports it'; $strSetupForceSSLMsg = 'This [a@?page=form&amp;formset=features#tab_Security]option[/a] should be enabled if your web server supports it';
$str['AllowArbitraryServerMsg'] = 'This [a@?page=form&amp;formset=features#tab_Security]option[/a] should be disabled as it allows attackers to bruteforce login to any MySQL server. If you feel this is necessary, use [a@?page=form&amp;formset=features#tab_Security]trusted proxies list[/a]. However, IP-based protection may not be reliable if your IP belongs to an ISP where thousands of users, including you, are connected to.'; $strSetupAllowArbitraryServerMsg = 'This [a@?page=form&amp;formset=features#tab_Security]option[/a] should be disabled as it allows attackers to bruteforce login to any MySQL server. If you feel this is necessary, use [a@?page=form&amp;formset=features#tab_Security]trusted proxies list[/a]. However, IP-based protection may not be reliable if your IP belongs to an ISP where thousands of users, including you, are connected to.';
$str['LoginCookieValidityMsg'] = '[a@?page=form&formset=features#tab_Security]Login cookie validity[/a] should be should be set to 1800 seconds (30 minutes) at most. Values larger than 1800 may pose a security risk such as impersonation.'; $strSetupLoginCookieValidityMsg = '[a@?page=form&formset=features#tab_Security]Login cookie validity[/a] should be should be set to 1800 seconds (30 minutes) at most. Values larger than 1800 may pose a security risk such as impersonation.';
$str['DirectoryNotice'] = 'This value should be double checked to ensure that this directory is neither world accessible nor readable or writable by other users on your server.'; $strSetupDirectoryNotice = 'This value should be double checked to ensure that this directory is neither world accessible nor readable or writable by other users on your server.';
$str['GZipDumpWarning'] = '[a@?page=form&amp;formset=features#tab_Import_export]GZip compression and decompression[/a] requires functions (%s) which are unavailable on this system.'; $strSetupGZipDumpWarning = '[a@?page=form&amp;formset=features#tab_Import_export]GZip compression and decompression[/a] requires functions (%s) which are unavailable on this system.';
$str['BZipDumpWarning'] = '[a@?page=form&amp;formset=features#tab_Import_export]Bzip2 compression and decompression[/a] requires functions (%s) which are unavailable on this system.'; $strSetupBZipDumpWarning = '[a@?page=form&amp;formset=features#tab_Import_export]Bzip2 compression and decompression[/a] requires functions (%s) which are unavailable on this system.';
$str['ZipDumpImportWarning'] = '[a@?page=form&amp;formset=features#tab_Import_export]Zip decompression[/a] requires functions (%s) which are unavailable on this system.'; $strSetupZipDumpImportWarning = '[a@?page=form&amp;formset=features#tab_Import_export]Zip decompression[/a] requires functions (%s) which are unavailable on this system.';
$str['ZipDumpExportWarning'] = '[a@?page=form&amp;formset=features#tab_Import_export]Zip compression[/a] requires functions (%s) which are unavailable on this system.'; $strSetupZipDumpExportWarning = '[a@?page=form&amp;formset=features#tab_Import_export]Zip compression[/a] requires functions (%s) which are unavailable on this system.';
// form errors // form errors
$str['error_form'] = 'Submitted form contains errors'; $strSetuperror_form = 'Submitted form contains errors';
$str['error_missing_field_data'] = 'Missing data for %s'; $strSetuperror_missing_field_data = 'Missing data for %s';
$str['error_incorrect_port'] = 'Not a valid port number'; $strSetuperror_incorrect_port = 'Not a valid port number';
$str['error_incorrect_value'] = 'Incorrect value'; $strSetuperror_incorrect_value = 'Incorrect value';
$str['error_incorrect_ip_address'] = 'Incorrect IP address: %s'; $strSetuperror_incorrect_ip_address = 'Incorrect IP address: %s';
$str['error_nan_p'] = 'Not a positive number'; $strSetuperror_nan_p = 'Not a positive number';
$str['error_nan_nneg'] = 'Not a non-negative number'; $strSetuperror_nan_nneg = 'Not a non-negative number';
$str['error_empty_pmadb_user'] = 'Empty phpMyAdmin control user while using pmadb'; $strSetuperror_empty_pmadb_user = 'Empty phpMyAdmin control user while using pmadb';
$str['error_empty_pmadb_password'] = 'Empty phpMyAdmin control user password while using pmadb'; $strSetuperror_empty_pmadb_password = 'Empty phpMyAdmin control user password while using pmadb';
$str['error_empty_user_for_config_auth'] = 'Empty username while using config authentication method'; $strSetuperror_empty_user_for_config_auth = 'Empty username while using config authentication method';
$str['error_empty_signon_session'] = 'Empty signon session name while using signon authentication method'; $strSetuperror_empty_signon_session = 'Empty signon session name while using signon authentication method';
$str['error_empty_signon_url'] = 'Empty signon URL while using signon authentication method'; $strSetuperror_empty_signon_url = 'Empty signon URL while using signon authentication method';
$str['error_connection'] = 'Could not connect to MySQL server'; $strSetuperror_connection = 'Could not connect to MySQL server';
// form names // form names
$str['Form_Server'] = 'Basic settings'; $strSetupForm_Server = 'Basic settings';
$str['Form_Server_desc'] = 'Enter server connection parameters'; $strSetupForm_Server_desc = 'Enter server connection parameters';
$str['Form_Server_login_options'] = 'Signon login options'; $strSetupForm_Server_login_options = 'Signon login options';
$str['Form_Server_login_options_desc'] = 'Enter login options for signon authentication'; $strSetupForm_Server_login_options_desc = 'Enter login options for signon authentication';
$str['Form_Server_config'] = 'Server configuration'; $strSetupForm_Server_config = 'Server configuration';
$str['Form_Server_config_desc'] = 'Advanced server configuration, do not change these options unless you know what they are for'; $strSetupForm_Server_config_desc = 'Advanced server configuration, do not change these options unless you know what they are for';
$str['Form_Server_pmadb'] = 'PMA database'; $strSetupForm_Server_pmadb = 'PMA database';
$str['Form_Server_pmadb_desc'] = 'Configure phpMyAdmin database to gain access to additional features, see [a@../Documentation.html#linked-tables]linked-tables infrastructure[/a] in documentation'; $strSetupForm_Server_pmadb_desc = 'Configure phpMyAdmin database to gain access to additional features, see [a@../Documentation.html#linked-tables]linked-tables infrastructure[/a] in documentation';
$str['Form_Import_export'] = 'Import / export'; $strSetupForm_Import_export = 'Import / export';
$str['Form_Import_export_desc'] = 'Set import and export directories and compression options'; $strSetupForm_Import_export_desc = 'Set import and export directories and compression options';
$str['Form_Security'] = 'Security'; $strSetupForm_Security = 'Security';
$str['Form_Security_desc'] = 'Please note that phpMyAdmin is just a user interface and its features do not limit MySQL'; $strSetupForm_Security_desc = 'Please note that phpMyAdmin is just a user interface and its features do not limit MySQL';
$str['Form_Sql_queries'] = 'SQL queries'; $strSetupForm_Sql_queries = 'SQL queries';
$str['Form_Sql_queries_desc'] = 'SQL queries settings, for SQL Query box options see [a@?page=form&amp;formset=main_frame#tab_Sql_box]Navigation frame[/a] settings'; $strSetupForm_Sql_queries_desc = 'SQL queries settings, for SQL Query box options see [a@?page=form&amp;formset=main_frame#tab_Sql_box]Navigation frame[/a] settings';
$str['Form_Other_core_settings'] = 'Other core settings'; $strSetupForm_Other_core_settings = 'Other core settings';
$str['Form_Other_core_settings_desc'] = 'Settings that didn\'t fit enywhere else'; $strSetupForm_Other_core_settings_desc = 'Settings that didn\'t fit enywhere else';
$str['Form_Left_frame'] = 'Navigation frame'; $strSetupForm_Left_frame = 'Navigation frame';
$str['Form_Left_frame_desc'] = 'Customize appearance of the navigation frame'; $strSetupForm_Left_frame_desc = 'Customize appearance of the navigation frame';
$str['Form_Left_servers'] = 'Servers'; $strSetupForm_Left_servers = 'Servers';
$str['Form_Left_servers_desc'] = 'Servers display options'; $strSetupForm_Left_servers_desc = 'Servers display options';
$str['Form_Left_databases'] = 'Databases'; $strSetupForm_Left_databases = 'Databases';
$str['Form_Left_databases_desc'] = 'Databases display options'; $strSetupForm_Left_databases_desc = 'Databases display options';
$str['Form_Left_tables'] = 'Tables'; $strSetupForm_Left_tables = 'Tables';
$str['Form_Left_tables_desc'] = 'Tables display options'; $strSetupForm_Left_tables_desc = 'Tables display options';
$str['Form_Main_frame'] = 'Main frame'; $strSetupForm_Main_frame = 'Main frame';
$str['Form_Startup'] = 'Startup'; $strSetupForm_Startup = 'Startup';
$str['Form_Startup_desc'] = 'Customize startup page'; $strSetupForm_Startup_desc = 'Customize startup page';
$str['Form_Browse'] = 'Browse mode'; $strSetupForm_Browse = 'Browse mode';
$str['Form_Browse_desc'] = 'Customize browse mode'; $strSetupForm_Browse_desc = 'Customize browse mode';
$str['Form_Edit'] = 'Edit mode'; $strSetupForm_Edit = 'Edit mode';
$str['Form_Edit_desc'] = 'Customize edit mode'; $strSetupForm_Edit_desc = 'Customize edit mode';
$str['Form_Tabs'] = 'Tabs'; $strSetupForm_Tabs = 'Tabs';
$str['Form_Tabs_desc'] = 'Choose how you want tabs to work'; $strSetupForm_Tabs_desc = 'Choose how you want tabs to work';
$str['Form_Sql_box'] = 'SQL Query box'; $strSetupForm_Sql_box = 'SQL Query box';
$str['Form_Sql_box_desc'] = 'Customize links shown in SQL Query boxes'; $strSetupForm_Sql_box_desc = 'Customize links shown in SQL Query boxes';
$str['Form_Import_defaults'] = 'Import defaults'; $strSetupForm_Import_defaults = 'Import defaults';
$str['Form_Import_defaults_desc'] = 'Customize default common import options'; $strSetupForm_Import_defaults_desc = 'Customize default common import options';
$str['Form_Export_defaults'] = 'Export defaults'; $strSetupForm_Export_defaults = 'Export defaults';
$str['Form_Export_defaults_desc'] = 'Customize default export options'; $strSetupForm_Export_defaults_desc = 'Customize default export options';
$str['Form_Query_window'] = 'Query window'; $strSetupForm_Query_window = 'Query window';
$str['Form_Query_window_desc'] = 'Customize query window options'; $strSetupForm_Query_window_desc = 'Customize query window options';
// Form: Server // Form: Server
$str['Servers/verbose_name'] = 'Verbose name of this server'; $strSetupServers_verbose_name = 'Verbose name of this server';
$str['Servers/verbose_desc'] = 'Hostname where MySQL server is running'; $strSetupServers_verbose_desc = 'Hostname where MySQL server is running';
$str['Servers/host_name'] = 'Server hostname'; $strSetupServers_host_name = 'Server hostname';
$str['Servers/host_desc'] = ''; $strSetupServers_host_desc = '';
$str['Servers/port_name'] = 'Server port'; $strSetupServers_port_name = 'Server port';
$str['Servers/port_desc'] = 'Port on which MySQL server is listening, leave empty for default'; $strSetupServers_port_desc = 'Port on which MySQL server is listening, leave empty for default';
$str['Servers/socket_name'] = 'Server socket'; $strSetupServers_socket_name = 'Server socket';
$str['Servers/socket_desc'] = 'Socket on which MySQL server is listening, leave empty for default'; $strSetupServers_socket_desc = 'Socket on which MySQL server is listening, leave empty for default';
$str['Servers/ssl_name'] = 'Use SSL'; $strSetupServers_ssl_name = 'Use SSL';
$str['Servers/ssl_desc'] = ''; $strSetupServers_ssl_desc = '';
$str['Servers/connect_type_name'] = 'Connection type'; $strSetupServers_connect_type_name = 'Connection type';
$str['Servers/connect_type_desc'] = 'How to connect to server, keep tcp if unsure'; $strSetupServers_connect_type_desc = 'How to connect to server, keep tcp if unsure';
$str['Servers/extension_name'] = 'PHP extension to use'; $strSetupServers_extension_name = 'PHP extension to use';
$str['Servers/extension_desc'] = 'What PHP extension to use, use mysqli if supported'; $strSetupServers_extension_desc = 'What PHP extension to use, use mysqli if supported';
$str['Servers/compress_name'] = 'Compress connection'; $strSetupServers_compress_name = 'Compress connection';
$str['Servers/compress_desc'] = 'Compress connection to MySQL server'; $strSetupServers_compress_desc = 'Compress connection to MySQL server';
$str['Servers/auth_type_name'] = 'Authentication type'; $strSetupServers_auth_type_name = 'Authentication type';
$str['Servers/auth_type_desc'] = 'Authentication method to use'; $strSetupServers_auth_type_desc = 'Authentication method to use';
$str['Servers/user_name'] = 'User for config auth'; $strSetupServers_user_name = 'User for config auth';
$str['Servers/user_desc'] = 'Leave empty if not using config auth'; $strSetupServers_user_desc = 'Leave empty if not using config auth';
$str['Servers/password_name'] = 'Password for config auth'; $strSetupServers_password_name = 'Password for config auth';
$str['Servers/password_desc'] = 'Leave empty if not using config auth'; $strSetupServers_password_desc = 'Leave empty if not using config auth';
$str['Servers/nopassword_name'] = 'Connect without password'; $strSetupServers_nopassword_name = 'Connect without password';
$str['Servers/nopassword_desc'] = 'Try to connect without password'; $strSetupServers_nopassword_desc = 'Try to connect without password';
// Form: Server_login_options // Form: Server_login_options
$str['Servers/SignonSession_name'] = 'Signon session name'; $strSetupServers_SignonSession_name = 'Signon session name';
$str['Servers/SignonSession_desc'] = 'See [a@http://wiki.cihar.com/pma/auth_types#signon]authentication types[/a] for an example'; $strSetupServers_SignonSession_desc = 'See [a@http://wiki.cihar.com/pma/auth_types#signon]authentication types[/a] for an example';
$str['Servers/SignonURL_name'] = 'Signon URL'; $strSetupServers_SignonURL_name = 'Signon URL';
$str['Servers/LogoutURL_name'] = 'Logout URL'; $strSetupServers_LogoutURL_name = 'Logout URL';
$str['Servers/auth_swekey_config_name'] = 'SweKey config file'; $strSetupServers_auth_swekey_config_name = 'SweKey config file';
$str['Servers/auth_swekey_config_desc'] = 'Config file for [a@http://swekey.com]SweKey hardware authentication[/a], relative to phpMyAdmin root directory, eg. ./swekey.conf'; $strSetupServers_auth_swekey_config_desc = 'Config file for [a@http://swekey.com]SweKey hardware authentication[/a], relative to phpMyAdmin root directory, eg. ./swekey.conf';
// Form: Server_config // Form: Server_config
$str['Servers/only_db_name'] = 'Show only listed databases'; $strSetupServers_only_db_name = 'Show only listed databases';
$str['Servers/only_db_desc'] = 'You can use MySQL wildcard characters (% and _), escape them if you want to use their literal instances, i.e. use \'my\_db\' and not \'my_db\''; $strSetupServers_only_db_desc = 'You can use MySQL wildcard characters (% and _), escape them if you want to use their literal instances, i.e. use \'my\_db\' and not \'my_db\'';
$str['Servers/hide_db_name'] = 'Hide databases'; $strSetupServers_hide_db_name = 'Hide databases';
$str['Servers/hide_db_desc'] = 'Hide databases matching regular expression (PCRE)'; $strSetupServers_hide_db_desc = 'Hide databases matching regular expression (PCRE)';
$str['Servers/AllowRoot_name'] = 'Allow root login'; $strSetupServers_AllowRoot_name = 'Allow root login';
$str['Servers/AllowNoPasswordRoot_name'] = 'Allow root without password'; $strSetupServers_AllowNoPasswordRoot_name = 'Allow root without password';
$str['Servers/DisableIS_name'] = 'Disable use of INFORMATION_SCHEMA'; $strSetupServers_DisableIS_name = 'Disable use of INFORMATION_SCHEMA';
$str['Servers/DisableIS_desc'] = 'More information on [a@http://sf.net/support/tracker.php?aid=1849494]PMA bug tracker[/a] and [a@http://bugs.mysql.com/19588]MySQL Bugs[/a]'; $strSetupServers_DisableIS_desc = 'More information on [a@http://sf.net/support/tracker.php?aid=1849494]PMA bug tracker[/a] and [a@http://bugs.mysql.com/19588]MySQL Bugs[/a]';
$str['Servers/AllowDeny/order_name'] = 'Host authentication order'; $strSetupServers_AllowDeny_order_name = 'Host authentication order';
$str['Servers/AllowDeny/order_desc'] = 'Leave blank if not used'; $strSetupServers_AllowDeny_order_desc = 'Leave blank if not used';
$str['Servers/AllowDeny/rules_name'] = 'Host authentication rules'; $strSetupServers_AllowDeny_rules_name = 'Host authentication rules';
$str['Servers/AllowDeny/rules_desc'] = 'Leave blank for defaults'; $strSetupServers_AllowDeny_rules_desc = 'Leave blank for defaults';
$str['Servers/ShowDatabasesCommand_name'] = 'SHOW DATABASES command'; $strSetupServers_ShowDatabasesCommand_name = 'SHOW DATABASES command';
$str['Servers/ShowDatabasesCommand_desc'] = 'SQL command to fetch available databases'; $strSetupServers_ShowDatabasesCommand_desc = 'SQL command to fetch available databases';
$str['Servers/CountTables_name'] = 'Count tables'; $strSetupServers_CountTables_name = 'Count tables';
$str['Servers/CountTables_desc'] = 'Count tables when showing database list'; $strSetupServers_CountTables_desc = 'Count tables when showing database list';
// Form: Server_pmadb // Form: Server_pmadb
$str['Servers/pmadb_name'] = 'PMA database'; $strSetupServers_pmadb_name = 'PMA database';
$str['Servers/pmadb_desc'] = 'Database used for relations, bookmarks, and PDF features. See [a@http://wiki.cihar.com/pma/pmadb]pmadb[/a] for complete information. Leave blank for no support. Default: [kbd]phpmyadmin[/kbd]'; $strSetupServers_pmadb_desc = 'Database used for relations, bookmarks, and PDF features. See [a@http://wiki.cihar.com/pma/pmadb]pmadb[/a] for complete information. Leave blank for no support. Default: [kbd]phpmyadmin[/kbd]';
$str['Servers/controluser_name'] = 'Control user'; $strSetupServers_controluser_name = 'Control user';
$str['Servers/controluser_desc'] = 'A special MySQL user configured with limited permissions, more information available on [a@http://wiki.cihar.com/pma/controluser]wiki[/a]'; $strSetupServers_controluser_desc = 'A special MySQL user configured with limited permissions, more information available on [a@http://wiki.cihar.com/pma/controluser]wiki[/a]';
$str['Servers/controlpass_name'] = 'Control user password'; $strSetupServers_controlpass_name = 'Control user password';
$str['Servers/verbose_check_name'] = 'Verbose check'; $strSetupServers_verbose_check_name = 'Verbose check';
$str['Servers/verbose_check_desc'] = 'Disable if you know that your pma_* tables are up to date. This prevents compatibility checks and thereby increases performance'; $strSetupServers_verbose_check_desc = 'Disable if you know that your pma_* tables are up to date. This prevents compatibility checks and thereby increases performance';
$str['Servers/bookmarktable_name'] = 'Bookmark table'; $strSetupServers_bookmarktable_name = 'Bookmark table';
$str['Servers/bookmarktable_desc'] = 'Leave blank for no [a@http://wiki.cihar.com/pma/bookmark]bookmark[/a] support, default: [kbd]pma_bookmark[/kbd]'; $strSetupServers_bookmarktable_desc = 'Leave blank for no [a@http://wiki.cihar.com/pma/bookmark]bookmark[/a] support, default: [kbd]pma_bookmark[/kbd]';
$str['Servers/relation_name'] = 'Relation table'; $strSetupServers_relation_name = 'Relation table';
$str['Servers/relation_desc'] = 'Leave blank for no [a@http://wiki.cihar.com/pma/relation]relation-links[/a] support, default: [kbd]pma_relation[/kbd]'; $strSetupServers_relation_desc = 'Leave blank for no [a@http://wiki.cihar.com/pma/relation]relation-links[/a] support, default: [kbd]pma_relation[/kbd]';
$str['Servers/table_info_name'] = 'Display fields table'; $strSetupServers_table_info_name = 'Display fields table';
$str['Servers/table_info_desc'] = 'Table to describe the display fields, leave blank for no support; default: [kbd]pma_table_info[/kbd]'; $strSetupServers_table_info_desc = 'Table to describe the display fields, leave blank for no support; default: [kbd]pma_table_info[/kbd]';
$str['Servers/table_coords_name'] = 'PDF schema: table coordinates'; $strSetupServers_table_coords_name = 'PDF schema: table coordinates';
$str['Servers/table_coords_desc'] = 'Leave blank for no PDF schema support, default: [kbd]pma_table_coords[/kbd]'; $strSetupServers_table_coords_desc = 'Leave blank for no PDF schema support, default: [kbd]pma_table_coords[/kbd]';
$str['Servers/pdf_pages_name'] = 'PDF schema: pages table'; $strSetupServers_pdf_pages_name = 'PDF schema: pages table';
$str['Servers/pdf_pages_desc'] = 'Leave blank for no PDF schema support, default: [kbd]pma_pdf_pages[/kbd]'; $strSetupServers_pdf_pages_desc = 'Leave blank for no PDF schema support, default: [kbd]pma_pdf_pages[/kbd]';
$str['Servers/column_info_name'] = 'Column information table'; $strSetupServers_column_info_name = 'Column information table';
$str['Servers/column_info_desc'] = 'Leave blank for no column comments/mime types, default: [kbd]pma_column_info[/kbd]'; $strSetupServers_column_info_desc = 'Leave blank for no column comments/mime types, default: [kbd]pma_column_info[/kbd]';
$str['Servers/history_name'] = 'SQL query history table'; $strSetupServers_history_name = 'SQL query history table';
$str['Servers/history_desc'] = 'Leave blank for no SQL query history support, default: [kbd]pma_history[/kbd]'; $strSetupServers_history_desc = 'Leave blank for no SQL query history support, default: [kbd]pma_history[/kbd]';
$str['Servers/designer_coords_name'] = 'Designer table'; $strSetupServers_designer_coords_name = 'Designer table';
$str['Servers/designer_coords_desc'] = 'Leave blank for no Designer support, default: [kbd]designer_coords[/kbd]'; $strSetupServers_designer_coords_desc = 'Leave blank for no Designer support, default: [kbd]designer_coords[/kbd]';
// Form: Import_export // Form: Import_export
$str['UploadDir_name'] = 'Upload directory'; $strSetupUploadDir_name = 'Upload directory';
$str['UploadDir_desc'] = 'Directory on server where you can upload files for import'; $strSetupUploadDir_desc = 'Directory on server where you can upload files for import';
$str['SaveDir_name'] = 'Save directory'; $strSetupSaveDir_name = 'Save directory';
$str['SaveDir_desc'] = 'Directory where exports can be saved on server'; $strSetupSaveDir_desc = 'Directory where exports can be saved on server';
$str['AllowAnywhereRecoding_name'] = 'Allow character set conversion'; $strSetupAllowAnywhereRecoding_name = 'Allow character set conversion';
$str['DefaultCharset_name'] = 'Default character set'; $strSetupDefaultCharset_name = 'Default character set';
$str['DefaultCharset_desc'] = 'Default character set used for conversions'; $strSetupDefaultCharset_desc = 'Default character set used for conversions';
$str['RecodingEngine_name'] = 'Recoding engine'; $strSetupRecodingEngine_name = 'Recoding engine';
$str['RecodingEngine_desc'] = 'Select which functions will be used for character set conversion'; $strSetupRecodingEngine_desc = 'Select which functions will be used for character set conversion';
$str['IconvExtraParams_name'] = 'Extra parameters for iconv'; $strSetupIconvExtraParams_name = 'Extra parameters for iconv';
$str['ZipDump_name'] = 'ZIP'; $strSetupZipDump_name = 'ZIP';
$str['ZipDump_desc'] = 'Enable [a@http://en.wikipedia.org/wiki/ZIP_(file_format)]ZIP[/a] compression for import and export operations'; $strSetupZipDump_desc = 'Enable [a@http://en.wikipedia.org/wiki/ZIP_(file_format)]ZIP[/a] compression for import and export operations';
$str['GZipDump_name'] = 'GZip'; $strSetupGZipDump_name = 'GZip';
$str['GZipDump_desc'] = 'Enable [a@http://en.wikipedia.org/wiki/Gzip]gzip[/a] compression for import and export operations'; $strSetupGZipDump_desc = 'Enable [a@http://en.wikipedia.org/wiki/Gzip]gzip[/a] compression for import and export operations';
$str['BZipDump_name'] = 'Bzip2'; $strSetupBZipDump_name = 'Bzip2';
$str['BZipDump_desc'] = 'Enable [a@http://en.wikipedia.org/wiki/Bzip2]bzip2[/a] compression for import and export operations'; $strSetupBZipDump_desc = 'Enable [a@http://en.wikipedia.org/wiki/Bzip2]bzip2[/a] compression for import and export operations';
$str['CompressOnFly_name'] = 'Compress on the fly'; $strSetupCompressOnFly_name = 'Compress on the fly';
$str['CompressOnFly_desc'] = 'Compress gzip/bzip2 exports on the fly without the need for much memory; if you encounter problems with created gzip/bzip2 files disable this feature'; $strSetupCompressOnFly_desc = 'Compress gzip/bzip2 exports on the fly without the need for much memory; if you encounter problems with created gzip/bzip2 files disable this feature';
// Form: Security // Form: Security
$str['blowfish_secret_name'] = 'Blowfish secret'; $strSetupblowfish_secret_name = 'Blowfish secret';
$str['blowfish_secret_desc'] = 'Secret passphrase used for encrypting cookies in [kbd]cookie[/kbd] authentication'; $strSetupblowfish_secret_desc = 'Secret passphrase used for encrypting cookies in [kbd]cookie[/kbd] authentication';
$str['ForceSSL_name'] = 'Force SSL connection'; $strSetupForceSSL_name = 'Force SSL connection';
$str['ForceSSL_desc'] = 'Force secured connection while using phpMyAdmin'; $strSetupForceSSL_desc = 'Force secured connection while using phpMyAdmin';
$str['CheckConfigurationPermissions_name'] = 'Check config file permissions'; $strSetupCheckConfigurationPermissions_name = 'Check config file permissions';
$str['TrustedProxies_name'] = 'List of trusted proxies for IP allow/deny'; $strSetupTrustedProxies_name = 'List of trusted proxies for IP allow/deny';
$str['TrustedProxies_desc'] = 'Input proxies as [kbd]IP: trusted HTTP header[/kbd]. The following example specifies that phpMyAdmin should trust a HTTP_X_FORWARDED_FOR (X-Forwarded-For) header coming from the proxy 1.2.3.4:[br][kbd]1.2.3.4: HTTP_X_FORWARDED_FOR[/kbd]'; $strSetupTrustedProxies_desc = 'Input proxies as [kbd]IP: trusted HTTP header[/kbd]. The following example specifies that phpMyAdmin should trust a HTTP_X_FORWARDED_FOR (X-Forwarded-For) header coming from the proxy 1.2.3.4:[br][kbd]1.2.3.4: HTTP_X_FORWARDED_FOR[/kbd]';
$str['AllowUserDropDatabase_name'] = 'Show &quot;Drop database&quot; link to normal users'; $strSetupAllowUserDropDatabase_name = 'Show &quot;Drop database&quot; link to normal users';
$str['AllowArbitraryServer_name'] = 'Allow login to any MySQL server'; $strSetupAllowArbitraryServer_name = 'Allow login to any MySQL server';
$str['AllowArbitraryServer_desc'] = 'If enabled user can enter any MySQL server in login form for cookie auth'; $strSetupAllowArbitraryServer_desc = 'If enabled user can enter any MySQL server in login form for cookie auth';
$str['LoginCookieRecall_name'] = 'Recall user name'; $strSetupLoginCookieRecall_name = 'Recall user name';
$str['LoginCookieRecall_desc'] = 'Define whether the previous login should be recalled or not in cookie authentication mode'; $strSetupLoginCookieRecall_desc = 'Define whether the previous login should be recalled or not in cookie authentication mode';
$str['LoginCookieValidity_name'] = 'Login cookie validity'; $strSetupLoginCookieValidity_name = 'Login cookie validity';
$str['LoginCookieValidity_desc'] = 'Define how long (in seconds) a login cookie is valid'; $strSetupLoginCookieValidity_desc = 'Define how long (in seconds) a login cookie is valid';
$str['LoginCookieStore_name'] = 'Login cookie store'; $strSetupLoginCookieStore_name = 'Login cookie store';
$str['LoginCookieStore_desc'] = 'Define how long (in seconds) a login cookie should be stored in browser. Default 0 means that it will be kept for existing session only, that is it will be deleted as soon as you close the browser window. This is recommended for non-trusted environments.'; $strSetupLoginCookieStore_desc = 'Define how long (in seconds) a login cookie should be stored in browser. Default 0 means that it will be kept for existing session only, that is it will be deleted as soon as you close the browser window. This is recommended for non-trusted environments.';
$str['LoginCookieDeleteAll_name'] = 'Delete all cookies on logout'; $strSetupLoginCookieDeleteAll_name = 'Delete all cookies on logout';
$str['LoginCookieDeleteAll_desc'] = 'If enabled logout deletes cookies for all servers, otherwise only for current one. Setting this to FALSE makes it easy to forget to log out from other server, when you are using more of them.'; $strSetupLoginCookieDeleteAll_desc = 'If enabled logout deletes cookies for all servers, otherwise only for current one. Setting this to FALSE makes it easy to forget to log out from other server, when you are using more of them.';
// Form: Sql_queries // Form: Sql_queries
$str['ShowSQL_name'] = 'Show SQL queries'; $strSetupShowSQL_name = 'Show SQL queries';
$str['ShowSQL_desc'] = 'Defines whether SQL queries generated by phpMyAdmin should be displayed'; $strSetupShowSQL_desc = 'Defines whether SQL queries generated by phpMyAdmin should be displayed';
$str['Confirm_name'] = 'Confirm DROP queries'; $strSetupConfirm_name = 'Confirm DROP queries';
$str['Confirm_desc'] = 'Whether a warning (&quot;Are your really sure...&quot;) should be displayed when you\'re about to lose data'; $strSetupConfirm_desc = 'Whether a warning (&quot;Are your really sure...&quot;) should be displayed when you\'re about to lose data';
$str['QueryHistoryDB_name'] = 'Permanent query history'; $strSetupQueryHistoryDB_name = 'Permanent query history';
$str['QueryHistoryDB_desc'] = 'Enable if you want DB-based query history (requires pmadb). If disabled, this utilizes JS-routines to display query history (lost by window close).'; $strSetupQueryHistoryDB_desc = 'Enable if you want DB-based query history (requires pmadb). If disabled, this utilizes JS-routines to display query history (lost by window close).';
$str['QueryHistoryMax_name'] = 'Query history length'; $strSetupQueryHistoryMax_name = 'Query history length';
$str['QueryHistoryMax_desc'] = 'How many queries are kept in history'; $strSetupQueryHistoryMax_desc = 'How many queries are kept in history';
$str['IgnoreMultiSubmitErrors_name'] = 'Ignore multiple statement errors'; $strSetupIgnoreMultiSubmitErrors_name = 'Ignore multiple statement errors';
$str['IgnoreMultiSubmitErrors_desc'] = 'If enabled PMA continues computing multiple-statement queries even if one of the queries failed'; $strSetupIgnoreMultiSubmitErrors_desc = 'If enabled PMA continues computing multiple-statement queries even if one of the queries failed';
$str['VerboseMultiSubmit_name'] = 'Verbose multiple statements'; $strSetupVerboseMultiSubmit_name = 'Verbose multiple statements';
$str['VerboseMultiSubmit_desc'] = 'Show affected rows of each statement on multiple-statement queries. See libraries/import.lib.php for defaults on how many queries a statement may contain.'; $strSetupVerboseMultiSubmit_desc = 'Show affected rows of each statement on multiple-statement queries. See libraries/import.lib.php for defaults on how many queries a statement may contain.';
// Form: Other_core_options // Form: Other_core_options
$str['MaxDbList_name'] = 'Maximum databases'; $strSetupMaxDbList_name = 'Maximum databases';
$str['MaxDbList_desc'] = 'Maximum number of databases displayed in left frame and database list'; $strSetupMaxDbList_desc = 'Maximum number of databases displayed in left frame and database list';
$str['MaxTableList_name'] = 'Maximum tables'; $strSetupMaxTableList_name = 'Maximum tables';
$str['MaxTableList_desc'] = 'Maximum number of tables displayed in table list'; $strSetupMaxTableList_desc = 'Maximum number of tables displayed in table list';
$str['MaxCharactersInDisplayedSQL_name'] = 'Maximum displayed SQL length'; $strSetupMaxCharactersInDisplayedSQL_name = 'Maximum displayed SQL length';
$str['MaxCharactersInDisplayedSQL_desc'] = 'Maximum number of characters used when a SQL query is displayed'; $strSetupMaxCharactersInDisplayedSQL_desc = 'Maximum number of characters used when a SQL query is displayed';
$str['OBGzip_name'] = 'GZip output buffering'; $strSetupOBGzip_name = 'GZip output buffering';
$str['OBGzip_desc'] = 'use GZip output buffering for increased speed in HTTP transfers'; $strSetupOBGzip_desc = 'use GZip output buffering for increased speed in HTTP transfers';
$str['PersistentConnections_name'] = 'Persistent connections'; $strSetupPersistentConnections_name = 'Persistent connections';
$str['PersistentConnections_desc'] = 'Use persistent connections to MySQL databases'; $strSetupPersistentConnections_desc = 'Use persistent connections to MySQL databases';
$str['ExecTimeLimit_name'] = 'Maximum execution time'; $strSetupExecTimeLimit_name = 'Maximum execution time';
$str['ExecTimeLimit_desc'] = 'Set the number of seconds a script is allowed to run ([kbd]0[/kbd] for no limit)'; $strSetupExecTimeLimit_desc = 'Set the number of seconds a script is allowed to run ([kbd]0[/kbd] for no limit)';
$str['MemoryLimit_name'] = 'Memory limit'; $strSetupMemoryLimit_name = 'Memory limit';
$str['MemoryLimit_desc'] = 'The number of bytes a script is allowed to allocate, eg. [kbd]32M[/kbd] ([kbd]0[/kbd] for no limit)'; $strSetupMemoryLimit_desc = 'The number of bytes a script is allowed to allocate, eg. [kbd]32M[/kbd] ([kbd]0[/kbd] for no limit)';
$str['SkipLockedTables_name'] = 'Skip locked tables'; $strSetupSkipLockedTables_name = 'Skip locked tables';
$str['SkipLockedTables_desc'] = 'Mark used tables and make it possible to show databases with locked tables'; $strSetupSkipLockedTables_desc = 'Mark used tables and make it possible to show databases with locked tables';
$str['UseDbSearch_name'] = 'Use database search'; $strSetupUseDbSearch_name = 'Use database search';
$str['UseDbSearch_desc'] = 'Allow for searching inside the entire database'; $strSetupUseDbSearch_desc = 'Allow for searching inside the entire database';
// Form: Left_frame // Form: Left_frame
$str['LeftFrameLight_name'] = 'Use light version'; $strSetupLeftFrameLight_name = 'Use light version';
$str['LeftFrameLight_desc'] = 'Disable this if you want to see all databases at once'; $strSetupLeftFrameLight_desc = 'Disable this if you want to see all databases at once';
$str['LeftDisplayLogo_name'] = 'Display logo'; $strSetupLeftDisplayLogo_name = 'Display logo';
$str['LeftDisplayLogo_desc'] = 'Show logo in left frame'; $strSetupLeftDisplayLogo_desc = 'Show logo in left frame';
$str['LeftLogoLink_name'] = 'Logo link URL'; $strSetupLeftLogoLink_name = 'Logo link URL';
$str['LeftLogoLinkWindow_name'] = 'Logo link target'; $strSetupLeftLogoLinkWindow_name = 'Logo link target';
$str['LeftLogoLinkWindow_desc'] = 'Open the linked page in the main window ([kbd]main[/kbd]) or in a new one ([kbd]new[/kbd])'; $strSetupLeftLogoLinkWindow_desc = 'Open the linked page in the main window ([kbd]main[/kbd]) or in a new one ([kbd]new[/kbd])';
$str['LeftDefaultTabTable_name'] = 'Target for quick access icon'; $strSetupLeftDefaultTabTable_name = 'Target for quick access icon';
$str['LeftPointerEnable_name'] = 'Enable highlighting'; $strSetupLeftPointerEnable_name = 'Enable highlighting';
$str['LeftPointerEnable_desc'] = 'Highlight server under the mouse cursor'; $strSetupLeftPointerEnable_desc = 'Highlight server under the mouse cursor';
// Form: Left_servers // Form: Left_servers
$str['LeftDisplayServers_name'] = 'Display servers selection'; $strSetupLeftDisplayServers_name = 'Display servers selection';
$str['LeftDisplayServers_desc'] = 'Display server choice at the top of the left frame'; $strSetupLeftDisplayServers_desc = 'Display server choice at the top of the left frame';
$str['DisplayServersList_name'] = 'Display servers as a list'; $strSetupDisplayServersList_name = 'Display servers as a list';
$str['DisplayServersList_desc'] = 'Show server listing as a list instead of a drop down'; $strSetupDisplayServersList_desc = 'Show server listing as a list instead of a drop down';
// Form: Left_databases // Form: Left_databases
$str['DisplayDatabasesList_name'] = 'Display databases as a list'; $strSetupDisplayDatabasesList_name = 'Display databases as a list';
$str['DisplayDatabasesList_desc'] = 'Show database listing as a list instead of a drop down'; $strSetupDisplayDatabasesList_desc = 'Show database listing as a list instead of a drop down';
$str['LeftFrameDBTree_name'] = 'Display databases in a tree'; $strSetupLeftFrameDBTree_name = 'Display databases in a tree';
$str['LeftFrameDBTree_desc'] = 'Only light version; display databases in a tree (determined by the separator defined below)'; $strSetupLeftFrameDBTree_desc = 'Only light version; display databases in a tree (determined by the separator defined below)';
$str['LeftFrameDBSeparator_name'] = 'Database tree separator'; $strSetupLeftFrameDBSeparator_name = 'Database tree separator';
$str['LeftFrameDBSeparator_desc'] = 'String that separates databases into different tree levels'; $strSetupLeftFrameDBSeparator_desc = 'String that separates databases into different tree levels';
$str['ShowTooltipAliasDB_name'] = 'Display database comment instead of its name'; $strSetupShowTooltipAliasDB_name = 'Display database comment instead of its name';
$str['ShowTooltipAliasDB_desc'] = 'If tooltips are enabled and a database comment is set, this will flip the comment and the real name'; $strSetupShowTooltipAliasDB_desc = 'If tooltips are enabled and a database comment is set, this will flip the comment and the real name';
// Form: Left_tables // Form: Left_tables
$str['LeftFrameTableSeparator_name'] = 'Table tree separator'; $strSetupLeftFrameTableSeparator_name = 'Table tree separator';
$str['LeftFrameTableSeparator_desc'] = 'String that separates tables into different tree levels'; $strSetupLeftFrameTableSeparator_desc = 'String that separates tables into different tree levels';
$str['LeftFrameTableLevel_name'] = 'Maximum table tree depth'; $strSetupLeftFrameTableLevel_name = 'Maximum table tree depth';
$str['ShowTooltip_name'] = 'Display table comments in tooltips'; $strSetupShowTooltip_name = 'Display table comments in tooltips';
$str['ShowTooltipAliasTB_name'] = 'Display table comment instead of its name'; $strSetupShowTooltipAliasTB_name = 'Display table comment instead of its name';
$str['ShowTooltipAliasTB_desc'] = 'When setting this to [kbd]nested[/kbd], the alias of the table name is only used to split/nest the tables according to the $cfg[\'LeftFrameTableSeparator\'] directive, so only the folder is called like the alias, the table name itself stays unchanged'; $strSetupShowTooltipAliasTB_desc = 'When setting this to [kbd]nested[/kbd], the alias of the table name is only used to split/nest the tables according to the $cfg[\'LeftFrameTableSeparator\'] directive, so only the folder is called like the alias, the table name itself stays unchanged';
// Form: Startup // Form: Startup
$str['ShowStats_name'] = 'Show statistics'; $strSetupShowStats_name = 'Show statistics';
$str['ShowStats_desc'] = 'Allow to display database and table statistics (eg. space usage)'; $strSetupShowStats_desc = 'Allow to display database and table statistics (eg. space usage)';
$str['ShowPhpInfo_name'] = 'Show phpinfo() link'; $strSetupShowPhpInfo_name = 'Show phpinfo() link';
$str['ShowPhpInfo_desc'] = 'Shows link to [a@http://php.net/manual/function.phpinfo.php]phpinfo()[/a] output'; $strSetupShowPhpInfo_desc = 'Shows link to [a@http://php.net/manual/function.phpinfo.php]phpinfo()[/a] output';
$str['ShowServerInfo_name'] = 'Show detailed MySQL server information'; $strSetupShowServerInfo_name = 'Show detailed MySQL server information';
$str['ShowChgPassword_name'] = 'Show password change form'; $strSetupShowChgPassword_name = 'Show password change form';
$str['ShowChgPassword_desc'] = 'Please note that enabling this has no effect with [kbd]config[/kbd] authentication mode because the password is hard coded in the configuration file; this does not limit the ability to execute the same command directly'; $strSetupShowChgPassword_desc = 'Please note that enabling this has no effect with [kbd]config[/kbd] authentication mode because the password is hard coded in the configuration file; this does not limit the ability to execute the same command directly';
$str['ShowCreateDb_name'] = 'Show create database form'; $strSetupShowCreateDb_name = 'Show create database form';
$str['SuggestDBName_name'] = 'Suggest new database name'; $strSetupSuggestDBName_name = 'Suggest new database name';
$str['SuggestDBName_desc'] = 'Suggest a database name on the &quot;Create Database&quot; form (if possible) or keep the text field empty'; $strSetupSuggestDBName_desc = 'Suggest a database name on the &quot;Create Database&quot; form (if possible) or keep the text field empty';
// Form: Browse // Form: Browse
$str['NavigationBarIconic_name'] = 'Iconic navigation bar'; $strSetupNavigationBarIconic_name = 'Iconic navigation bar';
$str['NavigationBarIconic_desc'] = 'Use only icons, only text or both'; $strSetupNavigationBarIconic_desc = 'Use only icons, only text or both';
$str['ShowAll_name'] = 'Allow to display all the rows'; $strSetupShowAll_name = 'Allow to display all the rows';
$str['ShowAll_desc'] = 'Whether a user should be displayed a &quot;show all (records)&quot; button'; $strSetupShowAll_desc = 'Whether a user should be displayed a &quot;show all (records)&quot; button';
$str['MaxRows_name'] = 'Maximum number of rows to display'; $strSetupMaxRows_name = 'Maximum number of rows to display';
$str['MaxRows_desc'] = 'Number of rows displayed when browsing a result set. If the result set contains more rows, &quot;Previous&quot; and &quot;Next&quot; links will be shown.'; $strSetupMaxRows_desc = 'Number of rows displayed when browsing a result set. If the result set contains more rows, &quot;Previous&quot; and &quot;Next&quot; links will be shown.';
$str['Order_name'] = 'Default sorting order'; $strSetupOrder_name = 'Default sorting order';
$str['Order_desc'] = '[kbd]SMART[/kbd] - i.e. descending order for fields of type TIME, DATE, DATETIME and TIMESTAMP, ascending order otherwise'; $strSetupOrder_desc = '[kbd]SMART[/kbd] - i.e. descending order for fields of type TIME, DATE, DATETIME and TIMESTAMP, ascending order otherwise';
$str['BrowsePointerEnable_name'] = 'Highlight pointer'; $strSetupBrowsePointerEnable_name = 'Highlight pointer';
$str['BrowsePointerEnable_desc'] = 'Highlight row pointed by the mouse cursor'; $strSetupBrowsePointerEnable_desc = 'Highlight row pointed by the mouse cursor';
$str['BrowseMarkerEnable_name'] = 'Row marker'; $strSetupBrowseMarkerEnable_name = 'Row marker';
$str['BrowseMarkerEnable_desc'] = 'Highlight selected rows'; $strSetupBrowseMarkerEnable_desc = 'Highlight selected rows';
// Form: Edit // Form: Edit
$str['ProtectBinary_name'] = 'Protect binary fields'; $strSetupProtectBinary_name = 'Protect binary fields';
$str['ProtectBinary_desc'] = 'Disallow BLOB or BLOB and BINARY fields from editing'; $strSetupProtectBinary_desc = 'Disallow BLOB or BLOB and BINARY fields from editing';
$str['ShowFunctionFields_name'] = 'Show function fields'; $strSetupShowFunctionFields_name = 'Show function fields';
$str['ShowFunctionFields_desc'] = 'Display the function fields in edit/insert mode'; $strSetupShowFunctionFields_desc = 'Display the function fields in edit/insert mode';
$str['CharEditing_name'] = 'CHAR fields editing'; $strSetupCharEditing_name = 'CHAR fields editing';
$str['CharEditing_desc'] = 'Defines which type of editing controls should be used for CHAR and VARCHAR fields; [kbd]input[/kbd] - allows limiting of input length, [kbd]textarea[/kbd] - allows newlines in fields'; $strSetupCharEditing_desc = 'Defines which type of editing controls should be used for CHAR and VARCHAR fields; [kbd]input[/kbd] - allows limiting of input length, [kbd]textarea[/kbd] - allows newlines in fields';
$str['CharTextareaCols_name'] = 'CHAR textarea columns'; $strSetupCharTextareaCols_name = 'CHAR textarea columns';
$str['CharTextareaCols_desc'] = 'Number of columns for CHAR/VARCHAR textareas'; $strSetupCharTextareaCols_desc = 'Number of columns for CHAR/VARCHAR textareas';
$str['CharTextareaRows_name'] = 'CHAR textarea rows'; $strSetupCharTextareaRows_name = 'CHAR textarea rows';
$str['CharTextareaRows_desc'] = 'Number of rows for CHAR/VARCHAR textareas'; $strSetupCharTextareaRows_desc = 'Number of rows for CHAR/VARCHAR textareas';
$str['InsertRows_name'] = 'Number of inserted rows'; $strSetupInsertRows_name = 'Number of inserted rows';
$str['InsertRows_desc'] = 'How many rows can be inserted at one time'; $strSetupInsertRows_desc = 'How many rows can be inserted at one time';
$str['ForeignKeyDropdownOrder_name'] = 'Foreign key dropdown order'; $strSetupForeignKeyDropdownOrder_name = 'Foreign key dropdown order';
$str['ForeignKeyDropdownOrder_desc'] = 'Sort order for items in a foreign-key dropdown box; [kbd]content[/kbd] is the referenced data, [kbd]id[/kbd] is the key value'; $strSetupForeignKeyDropdownOrder_desc = 'Sort order for items in a foreign-key dropdown box; [kbd]content[/kbd] is the referenced data, [kbd]id[/kbd] is the key value';
$str['ForeignKeyMaxLimit_name'] = 'Foreign key limit'; $strSetupForeignKeyMaxLimit_name = 'Foreign key limit';
$str['ForeignKeyMaxLimit_desc'] = 'A dropdown will be used if fewer items are present'; $strSetupForeignKeyMaxLimit_desc = 'A dropdown will be used if fewer items are present';
// Form: Tabs // Form: Tabs
$str['LightTabs_name'] = 'Light tabs'; $strSetupLightTabs_name = 'Light tabs';
$str['LightTabs_desc'] = 'Use less graphically intense tabs'; $strSetupLightTabs_desc = 'Use less graphically intense tabs';
$str['PropertiesIconic_name'] = 'Iconic table operations'; $strSetupPropertiesIconic_name = 'Iconic table operations';
$str['PropertiesIconic_desc'] = 'Use only icons, only text or both'; $strSetupPropertiesIconic_desc = 'Use only icons, only text or both';
$str['DefaultTabServer_name'] = 'Default server tab'; $strSetupDefaultTabServer_name = 'Default server tab';
$str['DefaultTabServer_desc'] = 'Tab that is displayed when entering a server'; $strSetupDefaultTabServer_desc = 'Tab that is displayed when entering a server';
$str['DefaultTabDatabase_name'] = 'Default database tab'; $strSetupDefaultTabDatabase_name = 'Default database tab';
$str['DefaultTabDatabase_desc'] = 'Tab that is displayed when entering a database'; $strSetupDefaultTabDatabase_desc = 'Tab that is displayed when entering a database';
$str['DefaultTabTable_name'] = 'Default table tab'; $strSetupDefaultTabTable_name = 'Default table tab';
$str['DefaultTabTable_desc'] = 'Tab that is displayed when entering a table'; $strSetupDefaultTabTable_desc = 'Tab that is displayed when entering a table';
$str['QueryWindowDefTab_name'] = 'Default query window tab'; $strSetupQueryWindowDefTab_name = 'Default query window tab';
$str['QueryWindowDefTab_desc'] = 'Tab displayed when opening a new query window'; $strSetupQueryWindowDefTab_desc = 'Tab displayed when opening a new query window';
// Form: Sql_Box // Form: Sql_Box
$str['SQLQuery/Edit_name'] = 'Edit'; $strSetupSQLQuery_Edit_name = 'Edit';
$str['SQLQuery/Explain_name'] = 'Explain SQL'; $strSetupSQLQuery_Explain_name = 'Explain SQL';
$str['SQLQuery/ShowAsPHP_name'] = 'Create PHP Code'; $strSetupSQLQuery_ShowAsPHP_name = 'Create PHP Code';
$str['SQLQuery/Validate_name'] = 'Validate SQL'; $strSetupSQLQuery_Validate_name = 'Validate SQL';
$str['SQLQuery/Refresh_name'] = 'Refresh'; $strSetupSQLQuery_Refresh_name = 'Refresh';
// Form: Import_defaults // Form: Import_defaults
$str['Import/format_name'] = 'Format of imported file'; $strSetupImport_format_name = 'Format of imported file';
$str['Import/format_desc'] = 'Default format, mind that this list depends on location (database, table) and only SQL is always avaiable'; $strSetupImport_format_desc = 'Default format, mind that this list depends on location (database, table) and only SQL is always avaiable';
$str['Import/allow_interrupt_name'] = 'Partial import: allow interrupt'; $strSetupImport_allow_interrupt_name = 'Partial import: allow interrupt';
$str['Import/allow_interrupt_desc'] = 'Allow interrupt of import in case script detects it is close to time limit. This might be good way to import large files, however it can break transactions.'; $strSetupImport_allow_interrupt_desc = 'Allow interrupt of import in case script detects it is close to time limit. This might be good way to import large files, however it can break transactions.';
$str['Import/skip_queries_name'] = 'Partial import: skip queries'; $strSetupImport_skip_queries_name = 'Partial import: skip queries';
$str['Import/skip_queries_desc'] = 'Number of records (queries) to skip from start'; $strSetupImport_skip_queries_desc = 'Number of records (queries) to skip from start';
// Form: Export_defaults // Form: Export_defaults
$str['Export/format_name'] = 'Format'; $strSetupExport_format_name = 'Format';
$str['Export/compression_name'] = 'Compression'; $strSetupExport_compression_name = 'Compression';
$str['Export/asfile_name'] = 'Save as file'; $strSetupExport_asfile_name = 'Save as file';
$str['Export/charset_name'] = 'Character set of the file'; $strSetupExport_charset_name = 'Character set of the file';
$str['Export/onserver_name'] = 'Save on server'; $strSetupExport_onserver_name = 'Save on server';
$str['Export/onserver_overwrite_name'] = 'Overwrite existing file(s)'; $strSetupExport_onserver_overwrite_name = 'Overwrite existing file(s)';
$str['Export/remember_file_template_name'] = 'Remember file name template'; $strSetupExport_remember_file_template_name = 'Remember file name template';
$str['Export/file_template_table_name'] = 'Table name template'; $strSetupExport_file_template_table_name = 'Table name template';
$str['Export/file_template_database_name'] = 'Database name template'; $strSetupExport_file_template_database_name = 'Database name template';
$str['Export/file_template_server_name'] = 'Server name template'; $strSetupExport_file_template_server_name = 'Server name template';
?> ?>

View File

@@ -52,6 +52,7 @@ class FormDisplay
/** /**
* Language strings which will be sent to PMA_messages JS variable * Language strings which will be sent to PMA_messages JS variable
* Will be looked up in $GLOBALS: str{value} or strSetup{value}
* @var array * @var array
*/ */
private $js_lang_strings = array('error_nan_p', 'error_nan_nneg', private $js_lang_strings = array('error_nan_p', 'error_nan_nneg',
@@ -186,7 +187,7 @@ class FormDisplay
// display forms // display forms
foreach ($this->forms as $form) { foreach ($this->forms as $form) {
/* @var $form Form */ /* @var $form Form */
$form_desc = isset($GLOBALS['str']["Form_{$form->name}_desc"]) $form_desc = isset($GLOBALS["strSetupForm_{$form->name}_desc"])
? PMA_lang("Form_{$form->name}_desc") ? PMA_lang("Form_{$form->name}_desc")
: ''; : '';
$form_errors = isset($this->errors[$form->name]) $form_errors = isset($this->errors[$form->name])
@@ -218,9 +219,9 @@ class FormDisplay
$js_lang_sent = true; $js_lang_sent = true;
$js_lang = array(); $js_lang = array();
foreach ($this->js_lang_strings as $str) { foreach ($this->js_lang_strings as $str) {
$lang = isset($GLOBALS['str'][$str]) $lang = isset($GLOBALS["strSetup$str"])
? $GLOBALS['str'][$str] ? $GLOBALS["strSetup$str"]
: filter_input($GLOBALS["str$str"]); : filter_input($GLOBALS["str$str"]); // null if not set
$js_lang[] = "'$str': '" . PMA_jsFormat($lang, false) . '\''; $js_lang[] = "'$str': '" . PMA_jsFormat($lang, false) . '\'';
} }
$js[] = '$extend(PMA_messages, {' . implode(",\n\t", $js_lang) . '})'; $js[] = '$extend(PMA_messages, {' . implode(",\n\t", $js_lang) . '})';
@@ -347,7 +348,7 @@ class FormDisplay
$path = $this->system_paths[$system_path]; $path = $this->system_paths[$system_path];
$name = PMA_lang_name($system_path); $name = PMA_lang_name($system_path);
} else { } else {
$name = $GLOBALS['str']["Form_$path"]; $name = $GLOBALS["strstrSetupForm_$path"];
} }
display_errors($name, $error_list); display_errors($name, $error_list);
} }
@@ -451,7 +452,7 @@ class FormDisplay
break; break;
case 'select': case 'select':
if (!$this->_validateSelect($_POST[$key], $form->getOptionValueList($system_path))) { if (!$this->_validateSelect($_POST[$key], $form->getOptionValueList($system_path))) {
$this->errors[$work_path][] = $GLOBALS['str']['error_incorrect_value']; $this->errors[$work_path][] = $GLOBALS["strstrSetuperror_incorrect_value"];
$result = false; $result = false;
continue; continue;
} }

View File

@@ -28,15 +28,15 @@ function display_form_top($action = null, $method = 'post', $hidden_fields = nul
?> ?>
<form method="<?php echo $method ?>" action="<?php echo htmlspecialchars($action) ?>"> <form method="<?php echo $method ?>" action="<?php echo htmlspecialchars($action) ?>">
<?php <?php
// we do validation on page refresh when browser remembers field values, // we do validation on page refresh when browser remembers field values,
// add a field with known value which will be used for checks // add a field with known value which will be used for checks
if (!$has_check_page_refresh) { if (!$has_check_page_refresh) {
$has_check_page_refresh = true; $has_check_page_refresh = true;
echo '<input type="hidden" name="check_page_refresh" id="check_page_refresh"' echo '<input type="hidden" name="check_page_refresh" id="check_page_refresh"'
. ' value="" />' . "\n"; . ' value="" />' . "\n";
} }
echo PMA_generate_common_hidden_inputs() . "\n"; echo PMA_generate_common_hidden_inputs() . "\n";
echo PMA_getHiddenFields((array)$hidden_fields); echo PMA_getHiddenFields((array)$hidden_fields);
} }
/** /**
@@ -149,7 +149,7 @@ function display_input($path, $name, $description = '', $type, $value, $value_is
foreach ($opts['values'] as $opt_value => $opt_name) { foreach ($opts['values'] as $opt_value => $opt_name) {
// set names for boolean values // set names for boolean values
if (is_bool($opt_name)) { if (is_bool($opt_name)) {
$opt_name = $GLOBALS['str'][$opt_value ? 'true' : 'false']; $opt_name = $GLOBALS['strSetup' . ($opt_value ? 'True' : 'False')];
} }
// cast boolean values to integers // cast boolean values to integers
$display_value = is_bool($opt_value) ? (int) $opt_value : $opt_value; $display_value = is_bool($opt_value) ? (int) $opt_value : $opt_value;
@@ -180,12 +180,12 @@ function display_input($path, $name, $description = '', $type, $value, $value_is
} }
if (isset($opts['setvalue']) && $opts['setvalue']) { if (isset($opts['setvalue']) && $opts['setvalue']) {
?> ?>
<a class="set-value" href="#<?php echo "$path={$opts['setvalue']}" ?>" title="<?php echo sprintf($GLOBALS['str']['SetVsalue'], htmlspecialchars($opts['setvalue'])) ?>" style="display:none"><img alt="set-value" src="../<?php echo $GLOBALS['cfg']['ThemePath'] ?>/original/img/b_edit.png" width="16" height="16" /></a> <a class="set-value" href="#<?php echo "$path={$opts['setvalue']}" ?>" title="<?php echo sprintf($GLOBALS['strSetupSetValue'], htmlspecialchars($opts['setvalue'])) ?>" style="display:none"><img alt="set-value" src="../<?php echo $GLOBALS['cfg']['ThemePath'] ?>/original/img/b_edit.png" width="16" height="16" /></a>
<?php <?php
} }
if (isset($opts['show_restore_default']) && $opts['show_restore_default']) { if (isset($opts['show_restore_default']) && $opts['show_restore_default']) {
?> ?>
<a class="restore-default" href="#<?php echo $path ?>" title="<?php echo $GLOBALS['str']['RestoreDefaultValue'] ?>" style="display:none"><img alt="restore-default" src="../<?php echo $GLOBALS['cfg']['ThemePath'] ?>/original/img/s_reload.png" width="16" height="16" /></a> <a class="restore-default" href="#<?php echo $path ?>" title="<?php echo $GLOBALS['strSetupRestoreDefaultValue'] ?>" style="display:none"><img alt="restore-default" src="../<?php echo $GLOBALS['cfg']['ThemePath'] ?>/original/img/s_reload.png" width="16" height="16" /></a>
<?php <?php
} }
// this must match with displayErrors() in scripts.js // this must match with displayErrors() in scripts.js

View File

@@ -129,7 +129,7 @@ function array_remove($path, &$array)
* for formatting. Takes variable number of arguments. * for formatting. Takes variable number of arguments.
* Based on PMA_sanitize from sanitize.lib.php. * Based on PMA_sanitize from sanitize.lib.php.
* *
* @param string $lang_key * @param string $lang_key key in $GLOBALS WITHOUT 'strSetup' prefix
* @param mixed $args arguments for sprintf * @param mixed $args arguments for sprintf
* @return string * @return string
*/ */
@@ -156,10 +156,10 @@ function PMA_lang($lang_key)
$search = array_keys($replace_pairs); $search = array_keys($replace_pairs);
$replace = array_values($replace_pairs); $replace = array_values($replace_pairs);
} }
if (!isset($GLOBALS['str'][$lang_key])) { if (!isset($GLOBALS["strSetup$lang_key"])) {
return $lang_key; return $lang_key;
} }
$message = str_replace($search, $replace, $GLOBALS['str'][$lang_key]); $message = str_replace($search, $replace, $GLOBALS["strSetup$lang_key"]);
// replace [a@"$1"]$2[/a] with <a href="$1">$2</a> // replace [a@"$1"]$2[/a] with <a href="$1">$2</a>
$message = preg_replace('#\[a@("?)([^\]]+)\1\]([^\[]+)\[/a\]#e', $message = preg_replace('#\[a@("?)([^\]]+)\1\]([^\[]+)\[/a\]#e',
"PMA_lang_link_replace('$2', '$3')", $message); "PMA_lang_link_replace('$2', '$3')", $message);
@@ -181,9 +181,12 @@ function PMA_lang($lang_key)
*/ */
function PMA_lang_name($canonical_path) function PMA_lang_name($canonical_path)
{ {
$lang_key = str_replace('Servers/1/', 'Servers/', $canonical_path) . '_name'; $lang_key = str_replace(
return isset($GLOBALS['str'][$lang_key]) array('Servers/1/', '/'),
? $GLOBALS['str'][$lang_key] array('Servers/', '_'),
$canonical_path) . '_name';
return isset($GLOBALS["strSetup$lang_key"])
? $GLOBALS["strSetup$lang_key"]
: $lang_key; : $lang_key;
} }
@@ -195,8 +198,11 @@ function PMA_lang_name($canonical_path)
*/ */
function PMA_lang_desc($canonical_path) function PMA_lang_desc($canonical_path)
{ {
$lang_key = str_replace('Servers/1/', 'Servers/', $canonical_path) . '_desc'; $lang_key = str_replace(
return isset($GLOBALS['str'][$lang_key]) array('Servers/1/', '/'),
array('Servers/', '_'),
$canonical_path) . '_desc';
return isset($GLOBALS["strSetup$lang_key"])
? PMA_lang($lang_key) ? PMA_lang($lang_key)
: ''; : '';
} }

View File

@@ -41,7 +41,7 @@ function process_formset(FormDisplay $form_display) {
$id = $id ? "{$separator}id=$id" : ''; $id = $id ? "{$separator}id=$id" : '';
?> ?>
<div class="warning"> <div class="warning">
<h4><?php echo $GLOBALS['str']['Warning'] ?></h4> <h4><?php echo $GLOBALS['strSetupWarning'] ?></h4>
<?php echo PMA_lang('error_form') ?><br /> <?php echo PMA_lang('error_form') ?><br />
<a href="?page=<?php echo $page . $formset . $id . $separator ?>mode=revert"><?php echo PMA_lang('RevertErroneousFields') ?></a> <a href="?page=<?php echo $page . $formset . $id . $separator ?>mode=revert"><?php echo PMA_lang('RevertErroneousFields') ?></a>
</div> </div>

View File

@@ -308,7 +308,7 @@ function validate_trusted_proxies($path, $values)
* @param bool $allow_neg allow negative values * @param bool $allow_neg allow negative values
* @param bool $allow_zero allow zero * @param bool $allow_zero allow zero
* @param int $max_value max allowed value * @param int $max_value max allowed value
* @param string $error_lang_key error message key in $str * @param string $error_lang_key error message key: $GLOBALS["strSetup$error_lang_key"]
* @return string empty string if test is successful * @return string empty string if test is successful
*/ */
function test_number($path, $values, $allow_neg, $allow_zero, $max_value, $error_lang_key) function test_number($path, $values, $allow_neg, $allow_zero, $max_value, $error_lang_key)