Merge remote-tracking branch 'origin' into rte

This commit is contained in:
Rouslan Placella 2011-05-31 10:58:55 +01:00
commit 77c8f4c624
8 changed files with 81 additions and 85 deletions

View File

@ -23,6 +23,7 @@
- bug #3276001 [core] Avoid caching of index.php.
- bug #3306958 [interface] Unnecessary Details slider
- bug #3308476 [interface] "Show all" not persistent after a sort
- bug #3308072 [auth] Version disclosure to anonymous visitors
3.4.1.0 (2011-05-20)
- bug #3301108 [interface] Synchronize and already configured host

View File

@ -241,11 +241,11 @@ $(document).ready(function() {
$("#reload_privileges_anchor.ajax").live("click", function(event) {
event.preventDefault();
PMA_ajaxShowMessage(PMA_messages['strReloadingPrivileges']);
var $msgbox = PMA_ajaxShowMessage(PMA_messages['strReloadingPrivileges']);
$.get($(this).attr("href"), {'ajax_request': true}, function(data) {
if(data.success == true) {
PMA_ajaxShowMessage(data.message);
PMA_ajaxRemoveMessage($msgbox);
}
else {
PMA_ajaxShowMessage(data.error);

View File

@ -169,6 +169,7 @@ function PMA_auth()
/* HTML header; do not show here the PMA version to improve security */
$page_title = 'phpMyAdmin ';
require './libraries/header_meta_style.inc.php';
// if $page_title is set, this script uses it as the title:
require './libraries/header_scripts.inc.php';
?>
<script type="text/javascript">

View File

@ -445,7 +445,7 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $
global $sql_query, $num_rows;
global $vertical_display, $highlight_columns;
// required to generate sort links that will remember whether the
// required to generate sort links that will remember whether the
// "Show all" button has been clicked
$sql_md5 = md5($GLOBALS['sql_query']);
$session_max_rows = $_SESSION['tmp_user_values']['query'][$sql_md5]['max_rows'];
@ -2387,7 +2387,7 @@ function PMA_handle_non_printable_contents($category, $content, $transform_funct
} elseif (isset($content)) {
$size = strlen($content);
$display_size = PMA_formatByteDown($size, 3, 1);
$result .= ' - '. $display_size[0] . '&nbsp;' . $display_size[1];
$result .= ' - '. $display_size[0] . ' ' . $display_size[1];
}
$result .= ']';

View File

@ -18,13 +18,17 @@ require_once './libraries/common.inc.php';
if ( false === $GLOBALS['cfg']['AllowThirdPartyFraming']) {
echo PMA_includeJS('cross_framing_protection.js');
}
// generate title
$title = PMA_expandUserString(
// generate title (unless we already have $page_title, from cookie auth)
if (! isset($page_title)) {
$title = PMA_expandUserString(
!empty($GLOBALS['table']) ? $GLOBALS['cfg']['TitleTable'] :
(!empty($GLOBALS['db']) ? $GLOBALS['cfg']['TitleDatabase'] :
(!empty($GLOBALS['cfg']['Server']['host']) ? $GLOBALS['cfg']['TitleServer'] :
$GLOBALS['cfg']['TitleDefault']))
);
);
} else {
$title = $page_title;
}
// here, the function does not exist with this configuration: $cfg['ServerDefault'] = 0;
$is_superuser = function_exists('PMA_isSuperuser') && PMA_isSuperuser();

View File

@ -4,7 +4,7 @@ msgstr ""
"Project-Id-Version: phpMyAdmin 3.5.0-dev\n"
"Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n"
"POT-Creation-Date: 2011-05-18 07:46-0400\n"
"PO-Revision-Date: 2011-05-30 10:55+0200\n"
"PO-Revision-Date: 2011-05-30 13:03+0200\n"
"Last-Translator: Martin Lacina <martin@whistler.sk>\n"
"Language-Team: slovak <sk@li.org>\n"
"Language: sk\n"
@ -958,7 +958,7 @@ msgstr "Kliknite pre zrušenie vyberu"
#: js/messages.php:27 libraries/import.lib.php:103 sql.php:195
msgid "\"DROP DATABASE\" statements are disabled."
msgstr "Príkaz \"DROP DATABASE\" je vypnutý."
msgstr "Príkaz \"DROP DATABASE\" je zakázaný."
#: js/messages.php:30 libraries/mult_submits.inc.php:277 sql.php:293
msgid "Do you really want to "
@ -1626,12 +1626,12 @@ msgstr ""
#: libraries/StorageEngine.class.php:354
#, php-format
msgid "%s is available on this MySQL server."
msgstr "Úložný systém %s je na tomto MySQL serveri dostupný."
msgstr "Úložný systém %s je dostupný na tomto MySQL serveri."
#: libraries/StorageEngine.class.php:357
#, php-format
msgid "%s has been disabled for this MySQL server."
msgstr "Úložný systém %s na tomto MySQL serveri bol vypnutý."
msgstr "Úložný systém %s bol zakázaný na tomto MySQL serveri."
#: libraries/StorageEngine.class.php:361
#, php-format
@ -3412,8 +3412,8 @@ msgid ""
"shown."
msgstr ""
"Počet zobrazených riadkov pri prechádzaní sady výsledkov. Ak sada výsledkov "
"obsahuje viac riadkov, zobrazia sa odkazy &quot;Predchádzajúci&quot; a &quot;"
"Ďalší&quot;"
"obsahuje viac riadkov, zobrazia sa odkazy &quot;Predchádzajúci&quot; a "
"&quot;Ďalší&quot;."
#: libraries/config/messages.inc.php:306
msgid "Maximum number of rows to display"
@ -4001,8 +4001,7 @@ msgid ""
"Whether the tracking mechanism creates versions for tables and views "
"automatically."
msgstr ""
"Či má sledovací mechanizmus automaticky vytvárať verzie tabuliek a "
"pohľadov.."
"Či má sledovací mechanizmus automaticky vytvárať verzie tabuliek a pohľadov."
#: libraries/config/messages.inc.php:429
msgid "Automatically create versions"
@ -4030,7 +4029,7 @@ msgid ""
"compatibility checks and thereby increases performance"
msgstr ""
"Vypnite, pokiaľ viete, že vaše pma_* tabuľky sú aktuálne. Tým zabránite "
"kontrolám kompatibility a urýchlite zabrazovanie stránok."
"kontrolám kompatibility a urýchlite zabrazovanie stránok"
#: libraries/config/messages.inc.php:435
msgid "Verbose check"
@ -4078,6 +4077,8 @@ msgid ""
"Defines whether or not type fields should be initially displayed in edit/"
"insert mode"
msgstr ""
"Definuje, či sa majú alebo nemajú zobrazovať typové polia v móde "
"úprav/vkladania"
#: libraries/config/messages.inc.php:444
msgid "Show field types"
@ -4109,7 +4110,7 @@ msgstr "Zobraziť podrobné informácie o MySQL serveri"
#: libraries/config/messages.inc.php:450
msgid "Defines whether SQL queries generated by phpMyAdmin should be displayed"
msgstr ""
msgstr "Určuje, či sa budú zobrazovať SQL dopyty generované phpMyAdminom"
#: libraries/config/messages.inc.php:451
msgid "Show SQL queries"
@ -4148,7 +4149,7 @@ msgstr "Zobraziť komentár k tabuľke namiesto mena"
#: libraries/config/messages.inc.php:458
msgid "Display table comments in tooltips"
msgstr ""
msgstr "Zobraziť komentáre tabuľky vo vyskakovacom okne nápovedy"
#: libraries/config/messages.inc.php:459
msgid ""
@ -4161,7 +4162,7 @@ msgstr "Preskočiť zamknuté tabuľky"
#: libraries/config/messages.inc.php:465
msgid "Requires SQL Validator to be enabled"
msgstr ""
msgstr "Vyžaduje povolené kontrolovanie SQL"
#: libraries/config/messages.inc.php:467
#: libraries/display_change_password.lib.php:40
@ -4190,6 +4191,8 @@ msgid ""
"If you have a custom username, specify it here (defaults to [kbd]anonymous[/"
"kbd])"
msgstr ""
"Pokiaľ máte vlastné užívateľské meno, zadajte ho tu (východzie "
"[kbd]anonymous[/kbd])"
#: libraries/config/messages.inc.php:471 tbl_tracking.php:454
#: tbl_tracking.php:511
@ -5444,7 +5447,7 @@ msgstr "Hostiteľ"
#: libraries/export/latex.php:144 libraries/export/sql.php:342
#: libraries/export/xml.php:110 libraries/header_printview.inc.php:58
msgid "Generation Time"
msgstr "Vygenerované:"
msgstr "Vygenerované"
#: libraries/export/latex.php:145 libraries/export/sql.php:344
#: libraries/export/xml.php:111 main.php:162
@ -5752,7 +5755,7 @@ msgstr ""
#: libraries/import/sql.php:32
msgid "SQL compatibility mode:"
msgstr "Režim kompatibility SQL"
msgstr "Režim kompatibility SQL:"
#: libraries/import/sql.php:42
msgid "Do not use <code>AUTO_INCREMENT</code> for zero values"
@ -6292,7 +6295,7 @@ msgstr "Zobraziť rozmery tabuliek"
#: libraries/schema/User_Schema.class.php:384
msgid "Display all tables with the same width"
msgstr "zobraziť všetky tabuľky s rovnakou šírkou?"
msgstr "Zobraziť všetky tabuľky s rovnakou šírkou"
#: libraries/schema/User_Schema.class.php:389
msgid "Only show keys"
@ -6674,7 +6677,7 @@ msgid ""
"in pixels. The original aspect ratio is preserved."
msgstr ""
"Zobrazí náhľad obrázku s odkazom na obrázok; parametre šírka a výška v "
"bodoch (pomer strán obrázku zostane zachovaný)"
"bodoch. Pomer strán obrázku zostane zachovaný."
#: libraries/transformations/image_jpeg__link.inc.php:9
msgid "Displays a link to download this image."
@ -6707,13 +6710,14 @@ msgid ""
msgstr ""
"LEN PRE LINUX: Spustí externú aplikáciu a na štandardný vstup pošle pole a "
"zobrazí výstup programu. Predvolený program je Tidy, ktorý pekne sformátuje "
"HTML. Z bezpečnostných dôvodov musíte ručne upraviť obsah súboru libraries/"
"transformations/text_plain__external.inc.php a pridať do neho povolené "
"aplikácie. Prvý parameter je číslo aplikácie, ktorú chcete použiť a druhý "
"parametre sú parametre tejto aplikácie. Ak je tretí parameter nastavený na "
"1, výstup bude skonvertovaný funkciou htmlspecialchars() (predvolený je 1). "
"Štvrtý parameter v prípade, že je nastavený na 1 pridá k výstupnému textu "
"parameter NOWRAP, čím zabezpečí zachovanie formátovania (predvolený je 1)"
"HTML. Z bezpečnostných dôvodov musíte ručne upraviť obsah súboru "
"libraries/transformations/text_plain__external.inc.php a pridať do neho "
"povolené aplikácie. Prvý parameter je číslo aplikácie, ktorú chcete použiť a "
"druhý parametre sú parametre tejto aplikácie. Ak je tretí parameter "
"nastavený na 1, výstup bude skonvertovaný funkciou htmlspecialchars() "
"(predvolený je 1). Štvrtý parameter v prípade, že je nastavený na 1 pridá k "
"výstupnému textu parameter NOWRAP, čím zabezpečí zachovanie formátovania "
"(predvolený je 1)."
#: libraries/transformations/text_plain__formatted.inc.php:9
msgid ""
@ -7304,7 +7308,7 @@ msgstr "Neboli vybrané žiadne databázy."
#: server_databases.php:75
#, php-format
msgid "%s databases have been dropped successfully."
msgstr "Úspešne zrušených databáz: %s."
msgstr "%s databáz bolo úspešne zrušených."
#: server_databases.php:100
msgid "Databases statistics"
@ -7517,9 +7521,8 @@ msgstr ""
#: server_privileges.php:65 server_privileges.php:211
#: server_privileges.php:549
#, fuzzy
msgid "Allows creating and dropping triggers"
msgstr "Povolí vytváranie a mazanie indexov."
msgstr "Povolí vytváranie a mazanie spúšťačov"
#: server_privileges.php:66 server_privileges.php:192
#: server_privileges.php:457 server_privileges.php:519
@ -7543,7 +7546,7 @@ msgstr "Oprávnenia pre jednotlivé tabuľky"
#: server_privileges.php:444 server_privileges.php:588
#: server_privileges.php:1610
msgid " Note: MySQL privilege names are expressed in English "
msgstr " Poznámka: názvy MySQL oprávnení sú uvádzané v angličtine. "
msgstr " Poznámka: názvy MySQL oprávnení sú uvádzané po anglicky "
#: server_privileges.php:513
msgid "Administration"
@ -7705,7 +7708,7 @@ msgstr "Zmeniť informácie o používateľovi / Kopírovať používateľa"
#: server_privileges.php:2086
msgid "Create a new user with the same privileges and ..."
msgstr "Vytvoriť používateľa s rovnakými právami a..."
msgstr "Vytvoriť nového používateľa s rovnakými právami a ..."
#: server_privileges.php:2088
msgid "... keep the old one."
@ -8480,7 +8483,7 @@ msgid ""
msgstr ""
"Počet spojení bez kľúčov, ktoré kontrolovali použitie kľúča na každom riadku "
"(ak táto hodnota nie je 0, mali by ste starostlivo skontrolovať indexy "
"vašich tabuliek)."
"vašich tabuliek.)"
#: server_status.php:136
msgid ""
@ -8488,7 +8491,7 @@ msgid ""
"critical even if this is big.)"
msgstr ""
"Počet spojení, ktoré na prvej tabuľke využili intervalové vyhľadávanie (táto "
"hodnota nie je kritická ani v prípade, že je vysoká)."
"hodnota nie je kritická ani v prípade, že je vysoká.)"
#: server_status.php:137
msgid "The number of joins that did a full scan of the first table."
@ -8588,7 +8591,7 @@ msgid ""
msgstr ""
"Počet vlákien vytvorených na zaobchádzanie so spojeniami. Ak je hodnota "
"Threads_created vysoká, mohli by ste zvýšiť hodnotu thread_cache_size (to "
"však nespôsobí žiadnu citeľnú zmenu ak máte vlákna dobre implementované)."
"však nespôsobí žiadnu citeľnú zmenu ak máte vlákna dobre implementované.)"
#: server_status.php:152
msgid "The number of threads that are not sleeping."

View File

@ -4,13 +4,13 @@ msgstr ""
"Project-Id-Version: phpMyAdmin 3.5.0-dev\n"
"Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n"
"POT-Creation-Date: 2011-05-18 07:46-0400\n"
"PO-Revision-Date: 2011-02-16 21:42+0200\n"
"Last-Translator: <stefan@inkopsforum.se>\n"
"PO-Revision-Date: 2011-05-30 20:24+0200\n"
"Last-Translator: <stefan@inkopsforum.se>\n"
"Language-Team: swedish <sv@li.org>\n"
"Language: sv\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: sv\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Pootle 2.0.5\n"
@ -705,22 +705,19 @@ msgid "Analyze table"
msgstr "Analysera tabell"
#: db_structure.php:521
#, fuzzy
#| msgid "Go to table"
msgid "Add prefix to table"
msgstr "Gå till tabell"
msgstr "Lägg till prefix till tabellen"
#: db_structure.php:523 libraries/mult_submits.inc.php:246
#, fuzzy
#| msgid "Replace table data with file"
msgid "Replace table prefix"
msgstr "Ersätt tabelldata med fil"
msgstr "Ersätt tabellprefix"
#: db_structure.php:525 libraries/mult_submits.inc.php:246
#, fuzzy
#| msgid "Replace table data with file"
msgid "Copy table with prefix"
msgstr "Ersätt tabelldata med fil"
msgstr "Kopiera tabell med prefix"
#: db_structure.php:574 libraries/schema/User_Schema.class.php:387
msgid "Data Dictionary"
@ -967,16 +964,14 @@ msgid "You are about to DESTROY a complete database!"
msgstr "Du håller på att FÖRSTÖRA en hel databas!"
#: js/messages.php:32
#, fuzzy
#| msgid "You are about to DESTROY a complete database!"
msgid "You are about to DESTROY a complete table!"
msgstr "Du håller på att FÖRSTÖRA en hel databas!"
msgstr "Du håller på att TA BORT en hel tabell!"
#: js/messages.php:33
#, fuzzy
#| msgid "You are about to DESTROY a complete database!"
msgid "You are about to TRUNCATE a complete table!"
msgstr "Du håller på att FÖRSTÖRA en hel databas!"
msgstr "Du håller på att TRUNKERA en hel tabell!"
#: js/messages.php:34
msgid "Dropping Event"
@ -1113,33 +1108,30 @@ msgid "Searching"
msgstr "Söker"
#: js/messages.php:84
#, fuzzy
#| msgid "Hide search criteria"
msgid "Hide search results"
msgstr "Dölj sökkriterier"
msgstr "Dölj sökresultat"
#: js/messages.php:85
#, fuzzy
#| msgid "Show search criteria"
msgid "Show search results"
msgstr "Visa sökkriterier"
msgstr "Visa sökresultat"
#: js/messages.php:86
#, fuzzy
#| msgid "Browse"
msgid "Browsing"
msgstr "Visa"
msgstr "Bläddrar bland"
#: js/messages.php:87
#, fuzzy
#| msgid "Deleting %s"
msgid "Deleting"
msgstr "Tar bort %s"
msgstr "Raderar"
#: js/messages.php:90
msgid ""
"Note: If the file contains multiple tables, they will be combined into one"
msgstr ""
"Obs: Om filen innehåller multipla tabeller, kommer de att kombineras till en"
#: js/messages.php:93
msgid "Hide query box"
@ -1209,6 +1201,8 @@ msgid ""
"You haven't saved the changes in the layout. They will be lost if you don't "
"save them.Do you want to continue?"
msgstr ""
"Du har inte sparat ändringarna i layouten. Dessa kommer förloras om du inte "
"sparar dem. Vill du fortsätta?"
#: js/messages.php:115
msgid "Add an option for column "
@ -1245,10 +1239,9 @@ msgid ", latest stable version:"
msgstr "senaste stabila version:"
#: js/messages.php:129
#, fuzzy
#| msgid "Jump to database"
msgid "up to date"
msgstr "Gå till daatabas"
msgstr "aktuell"
#. l10n: Display text for calendar close link
#: js/messages.php:147
@ -4570,10 +4563,9 @@ msgstr "Kompatibel med MySQL 4.0"
#: libraries/display_create_database.lib.php:21
#: libraries/display_create_database.lib.php:39
#, fuzzy
#| msgid "Create new database"
msgid "Create database"
msgstr "Skapa ny databas"
msgstr "Skapa databas"
#: libraries/display_create_database.lib.php:33
msgid "Create"
@ -5882,14 +5874,13 @@ msgid "Convert to Kana"
msgstr "Konvertera till Kana"
#: libraries/mult_submits.inc.php:249
#, fuzzy
#| msgid "Fr"
msgid "From"
msgstr "Fr"
msgstr "Från"
#: libraries/mult_submits.inc.php:252
msgid "To"
msgstr ""
msgstr "Till"
#: libraries/mult_submits.inc.php:257 libraries/mult_submits.inc.php:271
#: libraries/sql_query_form.lib.php:440
@ -5898,13 +5889,12 @@ msgstr "Sänd"
#: libraries/mult_submits.inc.php:263
msgid "Add table prefix"
msgstr ""
msgstr "Lägg till tabellprefix"
#: libraries/mult_submits.inc.php:266
#, fuzzy
#| msgid "Add index"
msgid "Add prefix"
msgstr "Lägg till index"
msgstr "Lägg till prefix"
#: libraries/mult_submits.inc.php:477 tbl_replace.php:331
msgid "No change"
@ -7944,10 +7934,10 @@ msgid "Unable to change master"
msgstr "Kan inte ändra master"
#: server_replication.php:72
#, fuzzy, php-format
#, php-format
#| msgid "Master server changed succesfully to %s"
msgid "Master server changed successfully to %s"
msgstr "Master server ändrad framgångsrikt till %s"
msgstr "Huvudservern har ändrats till %s"
#: server_replication.php:180
msgid "This server is configured as master in a replication process."
@ -9082,16 +9072,18 @@ msgid "Insecure connection"
msgstr "Osäker anslutning"
#: setup/frames/index.inc.php:92
#, fuzzy
#| msgid "Configuration storage"
msgid "Configuration saved."
msgstr "Konfigurations lagring"
msgstr "Konfiguration sparad"
#: setup/frames/index.inc.php:93
msgid ""
"Configuration saved to file config/config.inc.php in phpMyAdmin top level "
"directory, copy it to top level one and delete directory config to use it."
msgstr ""
"Konfiguration sparad till filen config / config.inc.php ihuvudkatalogen för "
" phpMyAdmin, kopiera den till huvudnivå ett och ta bort katalogen config "
"för att använda den."
#: setup/frames/index.inc.php:100 setup/frames/menu.inc.php:15
msgid "Overview"
@ -9949,22 +9941,19 @@ msgid "Version %s snapshot (SQL code)"
msgstr "Version %s ögonblicksbild (SQL-kod)"
#: tbl_tracking.php:382
#, fuzzy
#| msgid "Track these data definition statements:"
msgid "Tracking data definition successfully deleted"
msgstr "Spåra dessa datadefinitioners kommandon"
msgstr "Spårningsdata har tagits bort"
#: tbl_tracking.php:384 tbl_tracking.php:401
#, fuzzy
#| msgid "Gather errors"
msgid "Query error"
msgstr "Samla fel"
msgstr "Sökningsfel"
#: tbl_tracking.php:399
#, fuzzy
#| msgid "Track these data manipulation statements:"
msgid "Tracking data manipulation successfully deleted"
msgstr "Spåra dessa datahanterings kommandon"
msgstr "Spårningsdata manipulation har tagits bort"
#: tbl_tracking.php:411
msgid "Tracking statements"
@ -9976,16 +9965,14 @@ msgid "Show %s with dates from %s to %s by user %s %s"
msgstr "Visa %s med datum fån %s till %s av användare %s %s"
#: tbl_tracking.php:432
#, fuzzy
#| msgid "Delete tracking data for this table"
msgid "Delete tracking data row from report"
msgstr "Ta bort spårning för denna tabell"
msgstr "Ta bort spårning för denna rapport"
#: tbl_tracking.php:443
#, fuzzy
#| msgid "No databases"
msgid "No data"
msgstr "Inga databaser"
msgstr "Inget data"
#: tbl_tracking.php:453 tbl_tracking.php:510
msgid "Date"

View File

@ -1549,10 +1549,10 @@ if (empty($_REQUEST['adduser']) && (! isset($checkprivs) || ! strlen($checkprivs
/**
* Displays the initials
* In an Ajax request, we don't need to show this
* In an Ajax request, we don't need to show this. Also not necassary if there is less than 20 privileges
*/
if( $GLOBALS['is_ajax_request'] != true ) {
if( $GLOBALS['is_ajax_request'] != true && PMA_DBI_num_rows($res) > 20 ) {
// initialize to FALSE the letters A-Z
for ($letter_counter = 1; $letter_counter < 27; $letter_counter++) {