From 8e18a98440509d117253aed540dd6bbed7fc0873 Mon Sep 17 00:00:00 2001 From: Telma Gonzaga Date: Sat, 20 Jul 2013 08:18:29 +0200 Subject: [PATCH 01/33] Translated using Weblate (Portuguese) Currently translated at 50.6% (1319 of 2607) --- po/pt.po | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/po/pt.po b/po/pt.po index 355f165ddb..fd9ae6aa74 100644 --- a/po/pt.po +++ b/po/pt.po @@ -4,8 +4,8 @@ msgstr "" "Project-Id-Version: phpMyAdmin 4.0.5-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" "POT-Creation-Date: 2013-06-24 10:43+0200\n" -"PO-Revision-Date: 2013-07-20 08:17+0200\n" -"Last-Translator: Telma Gonzaga \n" +"PO-Revision-Date: 2013-07-20 08:18+0200\n" +"Last-Translator: Pedro Ribeiro \n" "Language-Team: Portuguese " "\n" "Language: pt\n" @@ -3002,9 +3002,8 @@ msgid "Handler" msgstr "Manipulador (handler)" #: libraries/ServerStatusData.class.php:185 -#, fuzzy msgid "Query cache" -msgstr "Query cache" +msgstr "Cache de queries" #: libraries/ServerStatusData.class.php:186 msgid "Threads" From 6ff96fe06237d4b7905c0bb009dd845c7f71e930 Mon Sep 17 00:00:00 2001 From: ProUser Date: Fri, 19 Jul 2013 18:16:01 +0200 Subject: [PATCH 02/33] Translated using Weblate (Swedish) Currently translated at 100.0% (2607 of 2607) --- po/sv.po | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/po/sv.po b/po/sv.po index 3bf71d04c4..78fba2e9e3 100644 --- a/po/sv.po +++ b/po/sv.po @@ -4,8 +4,8 @@ msgstr "" "Project-Id-Version: phpMyAdmin 4.0.5-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" "POT-Creation-Date: 2013-06-24 10:43+0200\n" -"PO-Revision-Date: 2013-06-24 16:12+0200\n" -"Last-Translator: Anders Jonsson \n" +"PO-Revision-Date: 2013-07-19 18:15+0200\n" +"Last-Translator: ProUser \n" "Language-Team: Swedish \n" "Language: sv\n" "MIME-Version: 1.0\n" @@ -5213,10 +5213,9 @@ msgid "Use only icons, only text or both" msgstr "Använd enbart ikoner, endast text eller både och" #: libraries/config/messages.inc.php:325 -#, fuzzy #| msgid "Iconic navigation bar" msgid "Table navigation bar" -msgstr "Ikonbaserat navigeringsfält" +msgstr "Tabellbaserat navigeringsfält" #: libraries/config/messages.inc.php:326 msgid "use GZip output buffering for increased speed in HTTP transfers" @@ -5285,14 +5284,13 @@ msgid "MySQL reserved word warning" msgstr "Varning för reserverat MySQL-ord" #: libraries/config/messages.inc.php:339 -#, fuzzy #| msgid "Allow to display all the rows" msgid "How to display the menu tabs" -msgstr "Tillåt att visa alla rader" +msgstr "Hur att visa menyflikarna" #: libraries/config/messages.inc.php:341 msgid "How to display various action links" -msgstr "" +msgstr "Hur man visar olika åtgärdslänkar" #: libraries/config/messages.inc.php:342 msgid "Disallow BLOB and BINARY columns from editing" @@ -10691,20 +10689,18 @@ msgid "Instructions/Setup" msgstr "Instruktioner/Setup" #: server_status_monitor.php:483 -#, fuzzy #| msgid "Done rearranging/editing charts" msgid "Done dragging (rearranging) charts" -msgstr "Klar med ändring/redigering av diagram" +msgstr "Klar med ändring (omdisponering) av diagram" #: server_status_monitor.php:489 server_status_monitor.php:606 msgid "Add chart" msgstr "Lägg till diagram" #: server_status_monitor.php:492 -#, fuzzy #| msgid "Enable highlighting" msgid "Enable charts dragging" -msgstr "Aktivera framhävning" +msgstr "Aktivera diagram" #: server_status_monitor.php:496 msgid "Refresh rate" From c9474ad521f81a12570f9514e10c49de80195e9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 22 Jul 2013 11:57:28 +0200 Subject: [PATCH 03/33] Translated using Weblate (West Flemish) Currently translated at 0.1% (2 of 2680) --- po/vls.po | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/po/vls.po b/po/vls.po index f4fe1c24b0..d81c6c08c1 100644 --- a/po/vls.po +++ b/po/vls.po @@ -8,14 +8,16 @@ msgstr "" "Project-Id-Version: phpMyAdmin 4.1-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" "POT-Creation-Date: 2013-07-12 16:06+0200\n" -"PO-Revision-Date: 2013-07-12 16:06+0200\n" -"Last-Translator: Automatically generated\n" -"Language-Team: none\n" +"PO-Revision-Date: 2013-07-22 11:57+0200\n" +"Last-Translator: Michal Čihař \n" +"Language-Team: West Flemish " +"\n" "Language: vls\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 1.6-dev\n" #: browse_foreigners.php:51 browse_foreigners.php:75 js/messages.php:339 #: libraries/DisplayResults.class.php:813 @@ -2099,13 +2101,13 @@ msgstr "" #. l10n: Month-year order for calendar, use either "calendar-month-year" or "calendar-year-month". #: js/messages.php:509 msgid "calendar-month-year" -msgstr "" +msgstr "calendar-month-year" #. l10n: Year suffix for calendar, "none" is empty. #: js/messages.php:511 msgctxt "Year suffix" msgid "none" -msgstr "" +msgstr "none" #: js/messages.php:520 msgid "Hour" From e186cffe2dd12f158c8802ddc7cb1e1622446a59 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 22 Jul 2013 06:03:03 -0400 Subject: [PATCH 04/33] Clarify code path --- libraries/sql.lib.php | 4 ++++ sql.php | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/libraries/sql.lib.php b/libraries/sql.lib.php index e2ea325f7b..ae21b53f52 100644 --- a/libraries/sql.lib.php +++ b/libraries/sql.lib.php @@ -1028,6 +1028,9 @@ function PMA_addBookmark($pmaAbsoluteUri, $goto) exit; } else { // go back to sql.php to redisplay query; do not use & in this case: + /** + * @todo In which scenario does this happen? + */ PMA_sendHeaderLocation( $pmaAbsoluteUri . $goto . '&label=' . $_POST['bkm_fields']['bkm_label'] @@ -2013,6 +2016,7 @@ function PMA_sendQueryResponseForResultsReturned($result, $justBrowsing, // value of a transformed field, show it here if (isset($_REQUEST['grid_edit']) && $_REQUEST['grid_edit'] == true) { PMA_sendResponseForGridEdit($result); + // script has exited at this point } // Gets the list of fields properties diff --git a/sql.php b/sql.php index d64570a65e..336b7b1861 100644 --- a/sql.php +++ b/sql.php @@ -84,17 +84,20 @@ if (isset($_REQUEST['get_relational_values']) && $_REQUEST['get_relational_values'] == true ) { PMA_getRelationalValues($db, $table, $display_field); + // script has exited at this point } // Just like above, find possible values for enum fields during grid edit. if (isset($_REQUEST['get_enum_values']) && $_REQUEST['get_enum_values'] == true) { PMA_getEnumOrSetValues($db, $table, "enum"); + // script has exited at this point } // Find possible values for set fields during grid edit. if (isset($_REQUEST['get_set_values']) && $_REQUEST['get_set_values'] == true) { PMA_getEnumOrSetValues($db, $table, "set"); + // script has exited at this point } /** @@ -102,6 +105,7 @@ if (isset($_REQUEST['get_set_values']) && $_REQUEST['get_set_values'] == true) { */ if (isset($_REQUEST['set_col_prefs']) && $_REQUEST['set_col_prefs'] == true) { PMA_setColumnOrderOrVisibility($table, $db); + // script has exited at this point } // Default to browse if no query set and we have table @@ -153,6 +157,7 @@ if (isset($find_real_end) && $find_real_end) { */ if (isset($_POST['store_bkm'])) { PMA_addBookmark($cfg['PmaAbsoluteUri'], $goto); + // script has exited at this point } // end if From 24014834509f0259731dd4600af7969474130e97 Mon Sep 17 00:00:00 2001 From: xmujay Date: Mon, 22 Jul 2013 21:34:41 +0800 Subject: [PATCH 05/33] UTs for PMA_display_export --- test/libraries/PMA_display_export_test.php | 239 +++++++++++++++++++++ 1 file changed, 239 insertions(+) create mode 100644 test/libraries/PMA_display_export_test.php diff --git a/test/libraries/PMA_display_export_test.php b/test/libraries/PMA_display_export_test.php new file mode 100644 index 0000000000..8475c27890 --- /dev/null +++ b/test/libraries/PMA_display_export_test.php @@ -0,0 +1,239 @@ +getMockBuilder('PMA_Config') + ->disableOriginalConstructor() + ->getMock(); + + $pmaconfig->expects($this->any()) + ->method('getUserValue') + ->will($this->returnValue('user value for test')); + + $GLOBALS['PMA_Config'] = $pmaconfig; + } + + /** + * Test for PMA_getHtmlForHiddenInput + * + * @return void + */ + public function testPMAGetHtmlForHiddenInput() + { + $export_type = "server"; + $db = "PMA"; + $table = "PMA_test"; + $single_table_str = "PMA_single_str"; + $sql_query_str = "sql_query_str"; + + //Call the test function + $html = PMA_getHtmlForHiddenInput( + $export_type, + $db, + $table, + $single_table_str, + $sql_query_str + ); + + //validate 1: PMA_generate_common_hidden_inputs + //$single_table + $this->assertContains( + 'assertContains( + 'assertContains( + ' $export_type, + 'single_table' => isset($single_table) + ) + ); + + //Call the test function + $html = PMA_getHtmlForExportOptions( + $export_type, + $db, + $table, + $multi_values_str, + $num_tables_str, + $export_list, + $unlim_num_rows_str + ); + + //validate 1: PMA_getHtmlForExportOptionHeader + $this->assertContains( + '