From 6f81207d84b4b125d34bb882a6735913ccd0a62c Mon Sep 17 00:00:00 2001 From: Juha Date: Tue, 13 Oct 2015 12:48:27 +0200 Subject: [PATCH 1/4] Translated using Weblate (Finnish) Currently translated at 60.6% (1946 of 3210 strings) [CI skip] --- po/fi.po | 286 ++++++++++++++++++++++--------------------------------- 1 file changed, 113 insertions(+), 173 deletions(-) diff --git a/po/fi.po b/po/fi.po index 87b16b10e3..bc722b7a98 100644 --- a/po/fi.po +++ b/po/fi.po @@ -4,16 +4,16 @@ msgstr "" "Project-Id-Version: phpMyAdmin 4.5.1-dev\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2015-10-09 07:21-0400\n" -"PO-Revision-Date: 2015-08-12 17:17+0200\n" -"Last-Translator: Lari Oesch \n" -"Language-Team: Finnish \n" +"PO-Revision-Date: 2015-10-13 12:48+0200\n" +"Last-Translator: Juha \n" +"Language-Team: Finnish " +"\n" "Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 2.4-dev\n" +"X-Generator: Weblate 2.5-dev\n" #: changelog.php:37 license.php:30 #, php-format @@ -21,8 +21,8 @@ msgid "" "The %s file is not available on this system, please visit www.phpmyadmin.net " "for more information." msgstr "" -"Tiedostoa %s ei löydy tästä järjestelmästä, osoitteessa www.phpmyadmin.net " -"on lisätietoja." +"Tiedostoa %s ei löydy tästä järjestelmästä, saadaksesi lisätietoja ole hyvä " +"ja käy osoitteessa www.phpmyadmin.net." #: db_central_columns.php:105 msgid "The central list of columns for the current database is empty." @@ -44,7 +44,7 @@ msgstr "Tietokanta %1$s on luotu." #: db_datadict.php:58 libraries/operations.lib.php:33 msgid "Database comment" -msgstr "Tietokannan kommentti:" +msgstr "Tietokannan kommentti" #: db_datadict.php:105 #: libraries/plugins/schema/pdf/Pdf_Relation_Schema.class.php:968 @@ -288,7 +288,6 @@ msgstr "Tietoa" #: db_export.php:67 libraries/DbSearch.class.php:446 #: libraries/display_export.lib.php:44 libraries/replication_gui.lib.php:379 -#, fuzzy #| msgid "Select All" msgid "Select all" msgstr "Valitse kaikki" @@ -648,7 +647,6 @@ msgstr "" "linkissä%s." #: index.php:163 -#, fuzzy #| msgid "General Settings" msgid "General settings" msgstr "Yleiset asetukset" @@ -664,10 +662,9 @@ msgid "Server connection collation" msgstr "Palvelinyhteyden aakkosjärjestys" #: index.php:229 -#, fuzzy #| msgid "Appearance Settings" msgid "Appearance settings" -msgstr "Ulkoasuasetukset" +msgstr "Ulkoasun asetukset" #: index.php:259 prefs_manage.php:285 msgid "More settings" @@ -788,7 +785,6 @@ msgstr "" "merkkijonoja oikein, ja tästä saattaa koitua odottamattomia seurauksia." #: index.php:501 -#, fuzzy #| msgid "" #| "Your PHP parameter [a@http://php.net/manual/en/session.configuration." #| "php#ini.session.gc-maxlifetime@_blank]session.gc_maxlifetime[/a] is lower " @@ -800,10 +796,11 @@ msgid "" "cookie validity configured in phpMyAdmin, because of this, your login might " "expire sooner than configured in phpMyAdmin." msgstr "" -"PHP-parametri [a@http://php.net/manual/en/session.configuration.php#ini." -"session.gc-maxlifetime@_blank]session.gc_maxlifetime[/a] on matalampi kuin " -"phpMyAdminissa määritetty evästekelpoisuus. Siksi kirjautumisesi erääntyy " -"nopeammin kuin phpMyAdminissa on määritetty." +"PHP-parametri " +"[a@http://php.net/manual/en/session.configuration.php#ini.session.gc-" +"maxlifetime@_blank]session.gc_maxlifetime[/a] on matalampi kuin " +"phpMyAdminissa määritetty evästekelpoisuus. Siksi kirjautumisesi saattaa " +"erääntyä nopeammin kuin phpMyAdminissa on määritetty." #: index.php:520 msgid "" @@ -906,10 +903,9 @@ msgid "Delete tracking data for these versions?" msgstr "Haluatko poistaa näiden versioiden seurantatiedot?" #: js/messages.php:53 -#, fuzzy #| msgid "Delete tracking data for this table" msgid "Delete entry from tracking report?" -msgstr "Poista tämän taulun seurantatiedot" +msgstr "Poista tämän taulun seurantatiedot?" #: js/messages.php:54 msgid "Deleting tracking data" @@ -948,13 +944,11 @@ msgid "Do you really want to revoke the selected user(s) ?" msgstr "Haluatko varmasti peruuttaa valittujen käyttäjien oikeudet?" #: js/messages.php:62 -#, fuzzy #| msgid "Do you really want to delete this bookmark?" msgid "Do you really want to delete this central column?" msgstr "Haluatko varmasti poistaa tämän kirjanmerkin?" #: js/messages.php:63 -#, fuzzy #| msgid "Do you really want to delete the search \"%s\"?" msgid "Do you really want to delete the selected items?" msgstr "Haluatko varmasti poistaa haun ”%s”?" @@ -964,18 +958,19 @@ msgid "" "Do you really want to DROP the selected partition(s)? This will also DELETE " "the data related to the selected partition(s)!" msgstr "" +"Haluatko varmasti suorittaa komennon DROP seuraaville osituksille? Otathan " +"huomioon että tämä toiminto myös poistaa (DELETE) kaiken ositukseen " +"liittyvän datan!" #: js/messages.php:65 -#, fuzzy #| msgid "Do you really want to delete the search \"%s\"?" msgid "Do you really want to TRUNCATE the selected partition(s)?" -msgstr "Haluatko varmasti poistaa haun ”%s”?" +msgstr "Haluatko varmasti poistaa osituksen ”%s”?" #: js/messages.php:66 -#, fuzzy #| msgid "Do you really want to execute \"%s\"?" msgid "Do you really want to RESET SLAVE?" -msgstr "Haluatko varmasti suorittaa \"%s\"?" +msgstr "Haluatko varmasti suorittaa RESET SLAVE - toiminnon?" #: js/messages.php:68 msgid "" @@ -985,14 +980,18 @@ msgid "" "collation; in this case we suggest you revert to the original collation and " "refer to the tips at " msgstr "" +"Tämä operaatio yrittää kääntää datasi uuteen kollaatioon. Joissakin " +"harvinaisissa tapauksissa missä merkki ei esiinny uudessa kollaatiossa " +"prosessi voi aiheuttaa datan ilmaantumisen väärin. Tässä tapauksessa " +"suosittelemme datan palauttamista alkuperäiseen kollaatioon. " #: js/messages.php:74 msgid "Garbled Data" -msgstr "" +msgstr "Vääristynyt data" #: js/messages.php:76 msgid "Are you sure you wish to change the collation and convert the data?" -msgstr "" +msgstr "Oletko varma että haluat vaihtaa kollaatiota ja kääntää datan?" #: js/messages.php:78 msgid "" @@ -1003,15 +1002,21 @@ msgid "" "column(s) editing feature (the \"Change\" Link) on the table structure page. " "" msgstr "" +"Tässä operaatiossa MySQL yrittää kartoittaa data-arvot kollaatioiden " +"välillä. Mikäli merkistöt eivät ole yhteensopivia, saattaa seurauksena olla " +"datan menettäminen ja tätä menetettyädataa EI voi palauttaa " +"vaihtamalla takaisin sarakekollaatioon. Kääntääksesi olemassa olevan " +"datan on ehdotettu että käytät sarakkeen muokkausominaisuutta taulun " +"rakennesivulla. " #: js/messages.php:86 msgid "" "Are you sure you wish to change all the column collations and convert the " "data?" msgstr "" +"Oletko varma että haluat vaihtaa sarakekollaatiota ja kääntää kaiken datan?" #: js/messages.php:89 -#, fuzzy #| msgid "Save & Close" msgid "Save & close" msgstr "Tallenna & sulje" @@ -1023,7 +1028,6 @@ msgid "Reset" msgstr "Palauta" #: js/messages.php:91 -#, fuzzy #| msgid "Reset All" msgid "Reset all" msgstr "Palauta kaikki" @@ -1049,7 +1053,6 @@ msgid "Add index" msgstr "Lisää indeksi" #: js/messages.php:99 -#, fuzzy #| msgid "Edit Index" msgid "Edit index" msgstr "Muokkaa indeksiä" @@ -1100,10 +1103,9 @@ msgstr "SQL-kysely:" #. l10n: Default label for the y-Axis of Charts #: js/messages.php:119 -#, fuzzy #| msgid "Y Values" msgid "Y values" -msgstr "Y Arvot" +msgstr "Y-Arvot" #: js/messages.php:122 msgid "The host name is empty!" @@ -1133,26 +1135,23 @@ msgid "Close" msgstr "Sulje" #: js/messages.php:130 -#, fuzzy #| msgid "The number of pages created." msgid "Template was created." -msgstr "Luotujen sivujen määrä." +msgstr "Malli on luotu." #: js/messages.php:131 msgid "Template was loaded." -msgstr "" +msgstr "Malli on ladattu." #: js/messages.php:132 -#, fuzzy #| msgid "The profile has been updated." msgid "Template was updated." -msgstr "Profiili on päivitetty." +msgstr "Malli on päivitetty." #: js/messages.php:133 -#, fuzzy #| msgid "The row has been deleted." msgid "Template was deleted." -msgstr "Rivi on nyt poistettu." +msgstr "Malli on poistettu." #. l10n: Other, small valued, queries #: js/messages.php:136 libraries/ServerStatusData.class.php:133 @@ -1203,10 +1202,9 @@ msgid "Query cache used" msgstr "Kyselyvälimuistia käytetty" #: js/messages.php:152 -#, fuzzy #| msgid "System CPU Usage" msgid "System CPU usage" -msgstr "Järjestelmän prosessorin käyttö" +msgstr "Järjestelmän prosessorikuormitus" #: js/messages.php:153 msgid "System memory" @@ -1241,28 +1239,24 @@ msgid "Used memory" msgstr "Käytetty muisti" #: js/messages.php:163 -#, fuzzy #| msgid "Total Swap" msgid "Total swap" -msgstr "Yhteensä sivutusmuistia" +msgstr "Sivumuistia yhteensä" #: js/messages.php:164 -#, fuzzy #| msgid "Cached Swap" msgid "Cached swap" -msgstr "Välimuistissa oleva sivutus" +msgstr "Välimuistissa oleva sivumuisti" #: js/messages.php:165 -#, fuzzy #| msgid "Used Swap" msgid "Used swap" -msgstr "Käytetty sivutusmuisti" +msgstr "Käytössä oleva sivutusmuisti" #: js/messages.php:166 -#, fuzzy #| msgid "Free Swap" msgid "Free swap" -msgstr "Vapaata sivutusmuistia" +msgstr "Vapaa sivutusmuisti" #: js/messages.php:168 msgid "Bytes sent" @@ -1465,10 +1459,9 @@ msgid "Current settings" msgstr "Nykyiset asetukset" #: js/messages.php:220 templates/table/chart/tbl_chart.phtml:53 -#, fuzzy #| msgid "Report title" msgid "Chart title" -msgstr "Raportin otsikko" +msgstr "Kaavion otsikko" #. l10n: As in differential values #: js/messages.php:222 @@ -1676,7 +1669,6 @@ msgid "No files available on server for import!" msgstr "Tuotavia tiedostoja ei ole saatavilla palvelimella!" #: js/messages.php:276 -#, fuzzy #| msgid "Analyse Query" msgid "Analyse query" msgstr "Analysoi kysely" @@ -1715,7 +1707,7 @@ msgstr "Testaa" #: js/messages.php:290 msgid "Formatting SQL…" -msgstr "" +msgstr "Formatoidaan SQL-kyselyä…" #: js/messages.php:294 libraries/server_variables.lib.php:159 #: templates/database/designer/aggregate_query_panel.phtml:63 @@ -1729,10 +1721,9 @@ msgid "Cancel" msgstr "Peruuta" #: js/messages.php:297 libraries/Header.class.php:462 -#, fuzzy #| msgid "Change settings" msgid "Page-related settings" -msgstr "Muuta asetuksia" +msgstr "Sivuun liittyvät asetukset" #: js/messages.php:298 libraries/config/FormDisplay.tpl.php:421 msgid "Apply" @@ -1744,25 +1735,21 @@ msgid "Loading…" msgstr "Lataa…" #: js/messages.php:302 -#, fuzzy #| msgid "Request Aborted!!" msgid "Request aborted!!" msgstr "Pyyntö keskeytetty!" #: js/messages.php:303 -#, fuzzy #| msgid "Processing Request" msgid "Processing request" msgstr "Pyyntöä käsitellään" #: js/messages.php:304 -#, fuzzy #| msgid "Request Aborted!!" msgid "Request failed!!" -msgstr "Pyyntö keskeytetty!" +msgstr "Pyyntö epäonnistui!" #: js/messages.php:305 -#, fuzzy #| msgid "Error in Processing Request" msgid "Error in processing request" msgstr "Virhe pyynnön käsittelyssä" @@ -1783,16 +1770,14 @@ msgid "No databases selected." msgstr "Yhtään tietokantaa ei ole valittu." #: js/messages.php:309 -#, fuzzy #| msgid "Dropping Column" msgid "Dropping column" -msgstr "Sarakkeen poisto" +msgstr "Saraketta poistetaan" #: js/messages.php:310 -#, fuzzy #| msgid "Add primary key" msgid "Adding primary key" -msgstr "Lisää pääavain" +msgstr "Lisätään pääavain" #: js/messages.php:311 #: templates/database/designer/aggregate_query_panel.phtml:59 @@ -1809,28 +1794,24 @@ msgid "Click to dismiss this notification" msgstr "Poista tämä huomautus napsauttamalla" #: js/messages.php:315 -#, fuzzy #| msgid "Renaming Databases" msgid "Renaming databases" -msgstr "Muuta tietokantojen nimiä" +msgstr "Uudelleennimetään tietokantoja" #: js/messages.php:316 -#, fuzzy #| msgid "Copying Database" msgid "Copying database" -msgstr "Tietokannan kopiointi" +msgstr "Kopioidaan tietokantoja" #: js/messages.php:317 -#, fuzzy #| msgid "Changing Charset" msgid "Changing charset" -msgstr "Merkistökoodauksen vaihtaminen" +msgstr "Vaihdetaan merkistökoodausta" #: js/messages.php:321 libraries/Util.class.php:3232 -#, fuzzy #| msgid "Disable foreign key checks" msgid "Enable foreign key checks" -msgstr "Älä tarkista viiteavaimia" +msgstr "Kytke viiteavaimien tarkistus päälle" #: js/messages.php:324 msgid "Failed to get real row count." @@ -1954,13 +1935,13 @@ msgstr "Selaa viitearvoja" #: js/messages.php:354 msgid "No auto-saved query" -msgstr "" +msgstr "Ei automaattisesti tallennettuja kyselyitä" #: js/messages.php:355 -#, fuzzy, php-format +#, php-format #| msgid "Variable" msgid "Variable %d:" -msgstr "Muuttuja" +msgstr "Muuttuja %d:" #: js/messages.php:358 libraries/normalization.lib.php:886 msgid "Pick" @@ -2216,16 +2197,14 @@ msgid "Geometry" msgstr "Geometria" #: js/messages.php:441 -#, fuzzy #| msgid "Inner Ring" msgid "Inner ring" -msgstr "Sisäympyrä" +msgstr "Sisäkehä" #: js/messages.php:442 -#, fuzzy #| msgid "Outer ring:" msgid "Outer ring" -msgstr "Ulkokehä:" +msgstr "Ulkokehä" #: js/messages.php:446 msgid "Do you want to copy encryption key?" @@ -2240,6 +2219,8 @@ msgid "" "Indicates that you have made changes to this page; you will be prompted for " "confirmation before abandoning changes" msgstr "" +"Olet tehnyt muutoksia tähän sivuun; sinua pyydetään vahvistamaan ennen kuin " +"hylkäät muutokset" #: js/messages.php:456 msgid "Select referenced key" @@ -2277,10 +2258,9 @@ msgstr "Tallenna sivu" #: js/messages.php:466 templates/database/designer/side_menu.phtml:63 #: templates/database/designer/side_menu.phtml:66 -#, fuzzy #| msgid "Save page" msgid "Save page as" -msgstr "Tallenna sivu" +msgstr "Tallenna sivu nimellä" #: js/messages.php:467 templates/database/designer/side_menu.phtml:49 #: templates/database/designer/side_menu.phtml:52 @@ -2407,10 +2387,9 @@ msgstr "" "selaimesi." #: js/messages.php:497 -#, fuzzy #| msgid "Original string" msgid "Original length" -msgstr "Alkuperäinen merkkijono" +msgstr "Alkuperäinen pituus" #: js/messages.php:500 msgid "cancel" @@ -2474,13 +2453,11 @@ msgid "More" msgstr "Lisää" #: js/messages.php:532 -#, fuzzy #| msgid "Show Panel" msgid "Show panel" msgstr "Näytä paneeli" #: js/messages.php:533 -#, fuzzy #| msgid "Hide Panel" msgid "Hide panel" msgstr "Piilota paneeli" @@ -2501,41 +2478,37 @@ msgstr "Poista pääpaneelin linkki" #: js/messages.php:537 msgid "To filter all databases on server, press Enter after a search term" msgstr "" +"Suodattaaksesi kaikki palvelimen tietokannat, paina Enter hakutermin jälkeen" #: js/messages.php:538 #, php-format msgid "To filter all %s in database, press Enter after a search term" -msgstr "" +msgstr "Suodattaaksesi kaikki %s tietokannassa, paina Enter hakutermin jälkeen" #: js/messages.php:539 -#, fuzzy #| msgid "Tables" msgid "tables" -msgstr "Taulut" +msgstr "taulut" #: js/messages.php:540 -#, fuzzy #| msgid "Views" msgid "views" -msgstr "Näkymät" +msgstr "näkymät" #: js/messages.php:541 -#, fuzzy #| msgid "Procedures" msgid "procedures" -msgstr "Proseduurit" +msgstr "proseduurit" #: js/messages.php:542 -#, fuzzy #| msgid "Event" msgid "events" -msgstr "Tapahtuma" +msgstr "tapahtumat" #: js/messages.php:543 -#, fuzzy #| msgid "Functions" msgid "functions" -msgstr "Funktiot" +msgstr "funktiot" #: js/messages.php:546 msgid "The requested page was not found in the history, it may have expired." @@ -2565,13 +2538,11 @@ msgid "Create view" msgstr "Luo näkymä" #: js/messages.php:557 -#, fuzzy #| msgid "Server port" msgid "Send error report" -msgstr "Palvelinportti" +msgstr "Lähetä virheraportti" #: js/messages.php:558 -#, fuzzy #| msgid "Submit Error Report" msgid "Submit error report" msgstr "Lähetä virheraportti" @@ -2583,16 +2554,14 @@ msgid "" msgstr "Tapahtui vakava JavaScript-virhe. Haluatko lähettää virheraportin?" #: js/messages.php:562 -#, fuzzy #| msgid "Change Report Settings" msgid "Change report settings" msgstr "Muuta raportin asetuksia" #: js/messages.php:563 -#, fuzzy #| msgid "Show Report Details" msgid "Show report details" -msgstr "Näytä raportin tarkat tiedot" +msgstr "Näytä raportin tarkemmat tiedot" #: js/messages.php:566 msgid "" @@ -2640,33 +2609,31 @@ msgstr "Haluatko varmasti poistaa tämän kirjanmerkin?" #: js/messages.php:601 msgid "Some error occurred while getting SQL debug info." -msgstr "" +msgstr "SQL-virheenkorjauksen tietoja haettaessa tapahtui virhe." #: js/messages.php:602 -#, fuzzy, php-format +#, php-format msgid "%s queries executed %s times in %s seconds." -msgstr "SQL-kyselyt" +msgstr "%s SQL-kyselyä suoritettu %s kertaa %s sekunnissa." #: js/messages.php:603 #, php-format msgid "%s argument(s) passed" -msgstr "" +msgstr "%s argumenttia syötetty" #: js/messages.php:604 -#, fuzzy #| msgid "Table comments" msgid "Show arguments" -msgstr "Taulun kommentit" +msgstr "Näytä argumentit" #: js/messages.php:605 -#, fuzzy #| msgid "Hide search results" msgid "Hide arguments" -msgstr "Piilota hakutulokset" +msgstr "Piilota argumentit" #: js/messages.php:606 libraries/Console.class.php:321 msgid "Time taken:" -msgstr "" +msgstr "Aikaa kului:" #: js/messages.php:607 msgid "" @@ -2933,105 +2900,90 @@ msgstr "Sekunti" #: js/messages.php:776 msgid "This field is required" -msgstr "" +msgstr "Kenttä on pakollinen" #: js/messages.php:777 -#, fuzzy #| msgid "Use text field" msgid "Please fix this field" -msgstr "Käytä tekstikenttää" +msgstr "Ole hyvä ja korjaa tämä kenttä" #: js/messages.php:778 -#, fuzzy #| msgid "Please enter a valid page name" msgid "Please enter a valid email address" -msgstr "Annathan kelvollisen sivun nimen" +msgstr "Ole hyvä ja anna pätevä sähköpostiosoite" #: js/messages.php:779 -#, fuzzy #| msgid "Please enter a valid number!" msgid "Please enter a valid URL" -msgstr "Annathan kelvollisen porttinumeron!" +msgstr "Ole hyvä ja anna pätevä URL" #: js/messages.php:780 -#, fuzzy #| msgid "Please enter a valid page name" msgid "Please enter a valid date" -msgstr "Annathan kelvollisen sivun nimen" +msgstr "Ole hyvä ja anna pätevä päivämäärä" #: js/messages.php:781 -#, fuzzy #| msgid "Please enter a valid page name" msgid "Please enter a valid date ( ISO )" -msgstr "Annathan kelvollisen sivun nimen" +msgstr "Ole hyvä ja anna pätevä päivämäärä (ISO)" #: js/messages.php:782 -#, fuzzy #| msgid "Please enter a valid number!" msgid "Please enter a valid number" -msgstr "Annathan kelvollisen porttinumeron!" +msgstr "Ole hyvä ja anna pätevä numero" #: js/messages.php:783 -#, fuzzy #| msgid "Please enter a valid number!" msgid "Please enter a valid credit card number" -msgstr "Annathan kelvollisen porttinumeron!" +msgstr "Ole hyvä ja anna pätevä luottokortin numero" #: js/messages.php:784 -#, fuzzy #| msgid "Please enter a valid length!" msgid "Please enter only digits" -msgstr "Annathan kelvollisen pituuden!" +msgstr "Ole hyvä ja kirjoita vain numeroita" #: js/messages.php:785 -#, fuzzy #| msgid "Please enter a valid page name" msgid "Please enter the same value again" -msgstr "Annathan kelvollisen sivun nimen" +msgstr "Ole hyvä ja annat saman arvon uudelleen" #: js/messages.php:786 msgid "Please enter no more than {0} characters" -msgstr "" +msgstr "Ole hyvä ja kirjoita maksimissaan {0} merkkiä" #: js/messages.php:787 -#, fuzzy #| msgid "Please enter a valid page name" msgid "Please enter at least {0} characters" -msgstr "Annathan kelvollisen sivun nimen" +msgstr "Ole hyvä ja kirjoita vähintään {0} merkkiä" #: js/messages.php:788 msgid "Please enter a value between {0} and {1} characters long" -msgstr "" +msgstr "Ole hyvä ja anna arvo joka on pituudeltaan {0} ja {1} merkin välillä" #: js/messages.php:789 -#, fuzzy #| msgid "Please enter a valid page name" msgid "Please enter a value between {0} and {1}" -msgstr "Annathan kelvollisen sivun nimen" +msgstr "Ole hyvä ja kirjoita arvo väliltä {0} ja {1}" #: js/messages.php:790 -#, fuzzy #| msgid "Please enter a valid length!" msgid "Please enter a value less than or equal to {0}" -msgstr "Annathan kelvollisen pituuden!" +msgstr "Ole hyvä ja anna arvo joka on enintään {0}" #: js/messages.php:791 -#, fuzzy #| msgid "Please enter a valid page name" msgid "Please enter a value greater than or equal to {0}" -msgstr "Annathan kelvollisen sivun nimen" +msgstr "Ole hyvä ja kirjoita arvo joka on vähintään {0}" #: js/messages.php:793 -#, fuzzy #| msgid "Please enter a valid page name" msgid "Please enter a valid date or time" -msgstr "Annathan kelvollisen sivun nimen" +msgstr "Ole hyvä ja anna pätevä päivämäärä tai aika" #: js/messages.php:794 -#, fuzzy #| msgid "Please enter a valid number!" msgid "Please enter a valid HEX input" -msgstr "Annathan kelvollisen porttinumeron!" +msgstr "Ole hyvä ja anna pätevä heksadesimaalinen arvo" #: js/messages.php:795 libraries/Message.class.php:199 #: libraries/Util.class.php:657 libraries/core.lib.php:245 @@ -3265,28 +3217,24 @@ msgid "Press Ctrl+Enter to execute query" msgstr "Suorita kysely painamalla Ctrl+Enter" #: libraries/Console.class.php:259 -#, fuzzy #| msgid "Press Ctrl+Enter to execute query" msgid "Press Enter to execute query" -msgstr "Suorita kysely painamalla Ctrl+Enter" +msgstr "Paina Enter suorittaaksesi kyselyn" #: libraries/Console.class.php:277 -#, fuzzy #| msgid "Ascending" msgid "ascending" -msgstr "Nouseva" +msgstr "nouseva" #: libraries/Console.class.php:280 -#, fuzzy #| msgid "Descending" msgid "descending" -msgstr "Laskeva" +msgstr "laskeva" #: libraries/Console.class.php:283 -#, fuzzy #| msgid "Other" msgid "Order:" -msgstr "Toinen" +msgstr "Järjestys:" #: libraries/Console.class.php:289 #: templates/table/search/replace_preview.phtml:17 @@ -3294,50 +3242,43 @@ msgid "Count" msgstr "Laske" #: libraries/Console.class.php:292 -#, fuzzy #| msgid "Execute bookmarked query" msgid "Execution order" -msgstr "Suorita kysely kirjanmerkeistä" +msgstr "Suoritusjärjestys" #: libraries/Console.class.php:295 msgid "Time taken" -msgstr "" +msgstr "Aikaa kului" #: libraries/Console.class.php:298 -#, fuzzy #| msgid "Other" msgid "Order by:" -msgstr "Toinen" +msgstr "Järjestä mukaan:" #: libraries/Console.class.php:301 -#, fuzzy #| msgid "SQL queries" msgid "Group queries" -msgstr "SQL-kyselyt" +msgstr "Ryhmäkyselyt" #: libraries/Console.class.php:304 -#, fuzzy #| msgid "SQL queries" msgid "Ungroup queries" -msgstr "SQL-kyselyt" +msgstr "Pura ryhmäkyselyt" #: libraries/Console.class.php:315 -#, fuzzy #| msgid "Show color" msgid "Show trace" -msgstr "Näytä värit" +msgstr "Näytä seuranta" #: libraries/Console.class.php:317 -#, fuzzy #| msgid "Hide Panel" msgid "Hide trace" -msgstr "Piilota paneeli" +msgstr "Piilota seuranta" #: libraries/Console.class.php:319 -#, fuzzy #| msgid "Count" msgid "Count:" -msgstr "Laske" +msgstr "Luku:" #: libraries/Console.class.php:336 libraries/Util.class.php:1249 #: libraries/config/messages.inc.php:897 @@ -3387,12 +3328,13 @@ msgid "" "Execute queries on Enter and insert new line with Shift + Enter. To make " "this permanent, view settings." msgstr "" +"Suorita hakukyselyt painamalla Enter ja lisää uusi rivi painamalla Shift + " +"Enter. Mikäli haluat tehdä tästä pysyvän, katso asetukset." #: libraries/Console.class.php:389 -#, fuzzy #| msgid "Switch to copied table" msgid "Switch to dark theme" -msgstr "Siirry kopioituun tauluun" +msgstr "Vaihda tummaan teemaan" #: libraries/DBQbe.class.php:405 libraries/DisplayResults.class.php:1478 #: libraries/DisplayResults.class.php:2268 @@ -3425,17 +3367,16 @@ msgstr "Sarake:" #: libraries/DBQbe.class.php:513 msgid "Alias:" -msgstr "" +msgstr "Alias:" #: libraries/DBQbe.class.php:566 msgid "Sort:" msgstr "Järjestä:" #: libraries/DBQbe.class.php:630 -#, fuzzy #| msgid "Sort:" msgid "Sort order:" -msgstr "Järjestä:" +msgstr "Järjestys:" #: libraries/DBQbe.class.php:679 msgid "Show:" @@ -3616,7 +3557,6 @@ msgstr "Tauluissa:" #: libraries/DbSearch.class.php:450 libraries/display_export.lib.php:50 #: libraries/replication_gui.lib.php:381 -#, fuzzy #| msgid "Unselect All" msgid "Unselect all" msgstr "Poista valinta kaikista" From b884ccd7537032782359e0bb5fceae969b16c307 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 13 Oct 2015 11:14:57 -0400 Subject: [PATCH 2/4] Enable translation of auth plugin description Signed-off-by: Marc Delisle --- libraries/server_privileges.lib.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/libraries/server_privileges.lib.php b/libraries/server_privileges.lib.php index e2da8c5380..d0cab4e047 100644 --- a/libraries/server_privileges.lib.php +++ b/libraries/server_privileges.lib.php @@ -1442,9 +1442,20 @@ function PMA_getHtmlForAuthPluginsDropdown( if ($plugin['PLUGIN_NAME'] == 'mysql_old_password') { continue; } + // if description is known, enable its translation + if ('Native MySQL authentication' == $plugin['PLUGIN_DESCRIPTION']) { + $description = __('Native MySQL authentication'); + } elseif ('SHA256 password authentication' == $plugin['PLUGIN_DESCRIPTION']) { + $description = __('SHA256 password authentication'); + } else { + // but there can be other auth plugins, see + // https://github.com/phpmyadmin/phpmyadmin/issues/11561 + $description = $plugin['PLUGIN_DESCRIPTION']; + } + $html_output .= ''; + . '>' . $description . ''; } $html_output .= ''; } else { From 10b38a4aec06e63876dd30c4a4b8a8f48720636e Mon Sep 17 00:00:00 2001 From: Juha Date: Tue, 13 Oct 2015 17:13:32 +0200 Subject: [PATCH 3/4] Translated using Weblate (Finnish) Currently translated at 60.8% (1954 of 3210 strings) [CI skip] --- po/fi.po | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/po/fi.po b/po/fi.po index bc722b7a98..905aa15ee9 100644 --- a/po/fi.po +++ b/po/fi.po @@ -4,7 +4,7 @@ msgstr "" "Project-Id-Version: phpMyAdmin 4.5.1-dev\n" "Report-Msgid-Bugs-To: translators@phpmyadmin.net\n" "POT-Creation-Date: 2015-10-09 07:21-0400\n" -"PO-Revision-Date: 2015-10-13 12:48+0200\n" +"PO-Revision-Date: 2015-10-13 17:13+0200\n" "Last-Translator: Juha \n" "Language-Team: Finnish " "\n" @@ -3638,10 +3638,9 @@ msgid "Relational key" msgstr "Relaatioavain" #: libraries/DisplayResults.class.php:1745 -#, fuzzy #| msgid "Display foreign key relationships" msgid "Display column for relations" -msgstr "Näytä viiteavaimien suhteet" +msgstr "Näytä sarakkeet relaatioille" #: libraries/DisplayResults.class.php:1758 msgid "Show binary contents" @@ -3732,7 +3731,6 @@ msgstr "Valitut:" #: libraries/server_user_groups.lib.php:231 #: templates/database/structure/check_all_tables.phtml:3 #: templates/database/structure/check_all_tables.phtml:4 -#, fuzzy #| msgid "Check All" msgid "Check all" msgstr "Valitse kaikki" @@ -3820,10 +3818,9 @@ msgid "Error while moving uploaded file." msgstr "Virhe siirrettäessä ladattua tiedostoa." #: libraries/File.class.php:497 -#, fuzzy #| msgid "Cannot read (moved) upload file." msgid "Cannot read uploaded file." -msgstr "Ladattua (ja siirrettyä) tiedostoa ei voi lukea." +msgstr "Ladattua tiedostoa ei voi lukea." #: libraries/Footer.class.php:74 #, php-format @@ -3955,11 +3952,13 @@ msgstr "" msgid "" "Linting is disabled for this query because it exceeds the maximum length." msgstr "" +"Koodin analysointi on kytketty pois päältä tälle hakukyselylle koska " +"hakukysely ylittää maksimipituuden." #: libraries/Linter.class.php:162 #, php-format msgid "%1$s (near %2$s)" -msgstr "" +msgstr "%1$s (lähellä %2$s)" #: libraries/Menu.class.php:200 libraries/ServerStatusData.class.php:442 #: libraries/config/messages.inc.php:933 @@ -4097,10 +4096,9 @@ msgid "Databases" msgstr "Tietokannat" #: libraries/Menu.class.php:568 -#, fuzzy #| msgid "Users" msgid "User accounts" -msgstr "Käyttäjät" +msgstr "Käyttäjätilit" #: libraries/Menu.class.php:595 libraries/ServerStatusData.class.php:122 #: libraries/Util.class.php:4279 libraries/server_common.lib.php:36 @@ -4806,15 +4804,14 @@ msgid "Max: %s%s" msgstr "Enimmäiskoko: %s%s" #: libraries/Util.class.php:665 -#, fuzzy #| msgid "Static data" msgid "Static analysis:" -msgstr "Staattinen data" +msgstr "Staattinen analyysi:" #: libraries/Util.class.php:668 #, php-format msgid "%d errors were found during analysis." -msgstr "" +msgstr "%d virhettä havaittu analyysin aikana." #: libraries/Util.class.php:730 libraries/rte/rte_events.lib.php:110 #: libraries/rte/rte_events.lib.php:119 libraries/rte/rte_events.lib.php:150 From 8a82a04ff95045b6c9e7a2ac387a16c32cd657de Mon Sep 17 00:00:00 2001 From: Deven Bansod Date: Tue, 13 Oct 2015 13:23:10 +0530 Subject: [PATCH 4/4] Refactor code for generation of available auth plugins HTML Signed-off-by: Deven Bansod --- js/functions.js | 2 +- libraries/display_change_password.lib.php | 57 ++----- libraries/server_privileges.lib.php | 190 +++++++++++++++------- user_password.php | 20 ++- 4 files changed, 168 insertions(+), 101 deletions(-) diff --git a/js/functions.js b/js/functions.js index 53f82e960f..1bf638dfce 100644 --- a/js/functions.js +++ b/js/functions.js @@ -4766,7 +4766,7 @@ AJAX.registerOnload('functions.js', function(){ * method is selected * Used in user_password.php (Change Password link on index.php) */ - $(document).on("change", 'input[type=radio][name="pw_hash"]', function() { + $(document).on("change", 'select#select_authentication_plugin_cp', function() { if (this.value === 'sha256_password') { $('#ssl_reqd_warning_cp').show(); } else { diff --git a/libraries/display_change_password.lib.php b/libraries/display_change_password.lib.php index 0ed22b3a9f..2c99a993c3 100644 --- a/libraries/display_change_password.lib.php +++ b/libraries/display_change_password.lib.php @@ -79,52 +79,31 @@ function PMA_getHtmlForChangePassword($username, $hostname) . ''; $html .= '' - . '' . __('Password Hashing:') . ''; + . '' . __('Password Hashing:') . ''; $serverType = PMA_Util::getServerType(); + $orig_auth_plugin = PMA_getCurrentAuthenticationPlugin( + 'change', + $username, + $hostname + ); + if (($serverType == 'MySQL' && PMA_MYSQL_INT_VERSION >= 50507) || ($serverType == 'MariaDB' && PMA_MYSQL_INT_VERSION >= 50200) ) { - - $active_auth_plugins = PMA_getActiveAuthPlugins(); - - $default_auth_plugin = PMA_getCurrentAuthenticationPlugin( - 'change', $username, $hostname + $auth_plugin_dropdown = PMA_getHtmlForAuthPluginsDropdown( + $username, $hostname, $orig_auth_plugin, 'change_pw', 'new' ); - $iter = 0; - $total_plugins = count($active_auth_plugins); - foreach ($active_auth_plugins as $plugin) { - if ($plugin['PLUGIN_NAME'] == 'mysql_old_password') { - continue; - } - - if ($iter != 0) { - $html .= ' '; - } - $html .= '' - . '' - . ''; - - if ($iter == $total_plugins - 2) { - $html .= ''; - } else if ($iter != $total_plugins - 1) { - $html .= ''; - } - $iter++; - } - - $html .= ''; + $html .= $auth_plugin_dropdown; + $html .= ''; + $html .= ''; $html .= ''; $html .= '
' . PMA_Message::notice( __( @@ -137,11 +116,11 @@ function PMA_getHtmlForChangePassword($username, $hostname) ->getDisplay() . '
'; } else { - $html .= '' - . '' - . '' + $auth_plugin_dropdown = PMA_getHtmlForAuthPluginsDropdown( + $username, $hostname, $orig_auth_plugin, 'change_pw', 'old' + ); + + $html .= $auth_plugin_dropdown . '' . '' . ''; } diff --git a/libraries/server_privileges.lib.php b/libraries/server_privileges.lib.php index 7dd06ff4d4..e2da8c5380 100644 --- a/libraries/server_privileges.lib.php +++ b/libraries/server_privileges.lib.php @@ -1411,6 +1411,50 @@ function PMA_getHtmlForGlobalPrivTableWithCheckboxes( return $html_output; } +/** + * Gets the currently active authentication plugins + * + * @param string $username User name + * @param string $hostname Host name + * @param string $orig_auth_plugin Default Authentication plugin + * @param string $mode are we creating a new user or are we just + * changing one? + * (allowed values: 'new', 'edit', 'change_pw') + * @param string $versions Is MySQL version newer or older than 5.5.7 + * + * @return string $html_output + */ +function PMA_getHtmlForAuthPluginsDropdown( + $username, + $hostname, + $orig_auth_plugin, + $mode = 'new', + $versions = 'new' +) { + $html_output = ''; + } else { + $html_output .= '' + . ''; + } + + return $html_output; +} /** * Gets the currently active authentication plugins * @@ -1710,6 +1754,12 @@ function PMA_getHtmlForLoginInformationFields( . ' ' . "\n" - . '' - . ''; } else { $html_output .= __('Password Hashing Method') - . ' ' . "\n" - . ''; + . ' ' . "\n"; + $auth_plugin_dropdown = PMA_getHtmlForAuthPluginsDropdown( + $username, $hostname, $orig_auth_plugin, $mode, 'old' + ); } + $html_output .= $auth_plugin_dropdown; + + $html_output .= '
' + . PMA_Message::notice( + __( + 'This method requires using an \'SSL connection\' ' + . 'or an \'unencrypted connection that encrypts the password ' + . 'using RSA\'; while connecting to the server.' + ) + . PMA_Util::showMySQLDocu('sha256-authentication-plugin') + ) + ->getDisplay() + . '
'; + $html_output .= '' . "\n" - // Generate password added here via jQuery + // Generate password added here via jQuery . '' . "\n"; return $html_output; @@ -1898,14 +1935,19 @@ function PMA_updatePassword($err_url, $username, $hostname) // here $nopass could be == 1 if (empty($message)) { + $hashing_function = 'PASSWORD'; + if (PMA_Util::getServerType() == 'MySQL' && PMA_MYSQL_INT_VERSION >= 50706 ) { - if (! empty($_REQUEST['pw_hash']) && $_REQUEST['pw_hash'] != 'old') { + if (isset($_REQUEST['authentication_plugin']) + && $_REQUEST['authentication_plugin'] != 'mysql_old_password' + ) { $query_prefix = "ALTER USER '" . PMA_Util::sqlAddSlashes($username) . "'@'" . PMA_Util::sqlAddSlashes($hostname) . "'" - . " IDENTIFIED WITH " . $_REQUEST['pw_hash'] + . " IDENTIFIED WITH " + . $_REQUEST['authentication_plugin'] . " BY '"; } else { $query_prefix = "ALTER USER '" @@ -1919,28 +1961,64 @@ function PMA_updatePassword($err_url, $username, $hostname) $local_query = $query_prefix . PMA_Util::sqlAddSlashes($_POST['pma_pw']) . "'"; - } else { - if (! empty($_REQUEST['pw_hash']) - && $_REQUEST['pw_hash'] == 'mysql_old_password' - ) { - $hashing_function = 'OLD_PASSWORD'; - } elseif (! empty($_REQUEST['pw_hash']) - && $_REQUEST['pw_hash'] == 'sha256_password' - ) { - $hashing_function = 'PASSWORD'; + } else if ((PMA_Util::getServerType() == 'MySQL' + && PMA_MYSQL_INT_VERSION >= 50507) + || (PMA_Util::getServerType() == 'MariaDB' + && PMA_MYSQL_INT_VERSION >= 50200) + ) { + // Backup the old value, to be reset later + $row = $GLOBALS['dbi']->fetchSingleRow( + 'SELECT @@old_passwords;' + ); + $orig_value = $row['@@old_passwords']; - // Backup the old value, to be reset later - $row = $GLOBALS['dbi']->fetchSingleRow( - 'SELECT @@old_passwords;' - ); - $orig_value = $row['@@old_passwords']; + if (isset($_REQUEST['authentication_plugin']) + && $_REQUEST['authentication_plugin'] == 'mysql_native_password' + ) { + // Set the hashing method used by PASSWORD() + // to be 'mysql_native_password' type + $GLOBALS['dbi']->tryQuery('SET old_passwords = 0;'); + + } else if (isset($_REQUEST['authentication_plugin']) + && $_REQUEST['authentication_plugin'] == 'sha256_password' + ) { // Set the hashing method used by PASSWORD() // to be 'sha256_password' type - $GLOBALS['dbi']->tryQuery('SET old_passwords = 2;'); - } else { - $hashing_function = 'PASSWORD'; + $GLOBALS['dbi']->tryQuery('SET `old_passwords` = 2;'); } + $update_plugin_query = "UPDATE `mysql`.`user` SET" + . " `plugin` = '" . $_REQUEST['authentication_plugin'] . "'" + . " WHERE `User` = '" . $username . "' AND Host = '" + . $hostname . "';"; + + // Update the plugin for the user + $GLOBALS['dbi']->tryQuery($update_plugin_query) + or PMA_Util::mysqlDie( + $GLOBALS['dbi']->getError(), + $update_plugin_query, + false, $err_url + ); + + $sql_query = 'SET PASSWORD FOR \'' + . PMA_Util::sqlAddSlashes($username) + . '\'@\'' . PMA_Util::sqlAddSlashes($hostname) . '\' = ' + . (($_POST['pma_pw'] == '') + ? '\'\'' + : $hashing_function . '(\'' + . preg_replace('@.@s', '*', $_POST['pma_pw']) . '\')'); + + $local_query = 'SET PASSWORD FOR \'' + . PMA_Util::sqlAddSlashes($username) + . '\'@\'' . PMA_Util::sqlAddSlashes($hostname) . '\' = ' + . (($_POST['pma_pw'] == '') ? '\'\'' : $hashing_function + . '(\'' . PMA_Util::sqlAddSlashes($_POST['pma_pw']) . '\')'); + } else { + if (isset($_REQUEST['authentication_plugin']) + && $_REQUEST['authentication_plugin'] == 'mysql_native_password' + ) { + $GLOBALS['dbi']->tryQuery('SET `old_passwords` = 0;'); + } $sql_query = 'SET PASSWORD FOR \'' . PMA_Util::sqlAddSlashes($username) . '\'@\'' . PMA_Util::sqlAddSlashes($hostname) . '\' = ' diff --git a/user_password.php b/user_password.php index 71e5b4e3ce..55c78c970b 100644 --- a/user_password.php +++ b/user_password.php @@ -144,10 +144,16 @@ function PMA_changePassword($password, $message, $change_password_message) $curr_user = $row['user']; list($username, $hostname) = explode('@', $curr_user); - if (PMA_Util::getServerType() === 'MySQL' && PMA_MYSQL_INT_VERSION >= 50706) { + $serverType = PMA_Util::getServerType(); - if (isset($_REQUEST['pw_hash']) && ! empty($_REQUEST['pw_hash'])) { - $orig_auth_plugin = $_REQUEST['pw_hash']; + if ($serverType === 'MySQL' + && PMA_MYSQL_INT_VERSION >= 50706 + ) { + + if (isset($_REQUEST['authentication_plugin']) + && ! empty($_REQUEST['authentication_plugin']) + ) { + $orig_auth_plugin = $_REQUEST['authentication_plugin']; } else { $orig_auth_plugin = PMA_getCurrentAuthenticationPlugin( 'change', $username, $hostname @@ -158,11 +164,15 @@ function PMA_changePassword($password, $message, $change_password_message) . '\' IDENTIFIED WITH ' . $orig_auth_plugin . ' BY ' . (($password == '') ? '\'\'' : '\'***\''); } else { - // For MySQL versions 5.6.6+, + // For MySQL versions 5.5.7+ and MariaDB versions 5.2+, // explicitly set value of `old_passwords` so that // it does not give an error while using // the PASSWORD() function - if (PMA_MYSQL_INT_VERSION >= 50606) { + if (($serverType == 'MySQL' + && PMA_MYSQL_INT_VERSION >= 50507) + || ($serverType == 'MariaDB' + && PMA_MYSQL_INT_VERSION >= 50200) + ) { $orig_auth_plugin = PMA_getCurrentAuthenticationPlugin( 'change', $username, $hostname );