From 393203bad9a04258f46ca36c2b3ef2a61f42ee6b Mon Sep 17 00:00:00 2001 From: Neroth Date: Mon, 23 Jul 2012 00:08:18 +0200 Subject: [PATCH] Now update the LINGUAS file too --- po/pl.po | 158 +++++++++++++++++++++++++-------------------------- po/update.js | 14 ++++- 2 files changed, 90 insertions(+), 82 deletions(-) diff --git a/po/pl.po b/po/pl.po index 05911ca..de39091 100644 --- a/po/pl.po +++ b/po/pl.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: 3.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-06-03 23:01+0200\n" +"POT-Creation-Date: 2012-07-22 11:43+0200\n" "PO-Revision-Date: 2012-06-24 10:00+0200\n" "Last-Translator: Piotr Sokół \n" "Language-Team: polski <>\n" @@ -18,270 +18,270 @@ msgstr "" "Plural-Forms: nplurals=3; plural=((n==1) ? 0 : ((n%10>=2 && n%10<=4 && (n" "%100<10 || n%100>=20)) ? 1 : 2));\n" -#: ../src/extension.js:102 +#: ../src/extension.js:103 msgid "..." msgstr "..." -#: ../src/extension.js:174 +#: ../src/extension.js:175 msgid "Reload Weather Information" msgstr "Wczytaj ponownie informacje pogodowe" -#: ../src/extension.js:178 ../src/weather-settings.js.in:570 +#: ../src/extension.js:179 ../src/weather-settings.js.in:592 msgid "Weather Settings" msgstr "Ustawienia pogody" -#: ../src/extension.js:198 ../src/extension.js:207 -#: ../src/weather-settings.js.in:272 +#: ../src/extension.js:199 ../src/extension.js:209 +#: ../src/weather-settings.js.in:294 #, python-format msgid "Schema \"%s\" not found." msgstr "Nie odnaleziono schematu „%s”." -#: ../src/extension.js:423 ../src/weather-settings.js.in:454 +#: ../src/extension.js:425 ../src/weather-settings.js.in:476 msgid "Invalid city" msgstr "Nieprawidłowa nazwa miasta" -#: ../src/extension.js:610 +#: ../src/extension.js:623 msgid "Tornado" msgstr "Tornado" -#: ../src/extension.js:612 +#: ../src/extension.js:625 msgid "Tropical storm" msgstr "Tropikalny deszcz" -#: ../src/extension.js:614 +#: ../src/extension.js:627 msgid "Hurricane" msgstr "Huragan" -#: ../src/extension.js:616 +#: ../src/extension.js:629 msgid "Severe thunderstorms" msgstr "Silne burze" -#: ../src/extension.js:618 +#: ../src/extension.js:631 msgid "Thunderstorms" msgstr "Burze" -#: ../src/extension.js:620 +#: ../src/extension.js:633 msgid "Mixed rain and snow" msgstr "Deszcz ze śniegiem" -#: ../src/extension.js:622 +#: ../src/extension.js:635 msgid "Mixed rain and sleet" msgstr "Deszcz z ziarnami lodowymi" -#: ../src/extension.js:624 +#: ../src/extension.js:637 msgid "Mixed snow and sleet" msgstr "Śnieg z ziarnami lodowymi" -#: ../src/extension.js:626 +#: ../src/extension.js:639 msgid "Freezing drizzle" msgstr "Marznąca mżawka" -#: ../src/extension.js:628 +#: ../src/extension.js:641 msgid "Drizzle" msgstr "Mżawka" -#: ../src/extension.js:630 +#: ../src/extension.js:643 msgid "Freezing rain" msgstr "Marznący deszcz" -#: ../src/extension.js:632 ../src/extension.js:634 +#: ../src/extension.js:645 ../src/extension.js:647 msgid "Showers" msgstr "Przelotne opady deszczu" -#: ../src/extension.js:636 +#: ../src/extension.js:649 msgid "Snow flurries" msgstr "Lekki śnieg" -#: ../src/extension.js:638 +#: ../src/extension.js:651 msgid "Light snow showers" msgstr "Lekkie przelotne opady śniegu" -#: ../src/extension.js:640 +#: ../src/extension.js:653 msgid "Blowing snow" msgstr "Zamieć śnieżna" -#: ../src/extension.js:642 +#: ../src/extension.js:655 msgid "Snow" msgstr "Śnieg" -#: ../src/extension.js:644 +#: ../src/extension.js:657 msgid "Hail" msgstr "Grad" -#: ../src/extension.js:646 +#: ../src/extension.js:659 msgid "Sleet" msgstr "Ziarna lodowe" -#: ../src/extension.js:648 +#: ../src/extension.js:661 msgid "Dust" msgstr "Pył" -#: ../src/extension.js:650 +#: ../src/extension.js:663 msgid "Foggy" msgstr "Mgła" -#: ../src/extension.js:652 +#: ../src/extension.js:665 msgid "Haze" msgstr "Łagodna mgła" -#: ../src/extension.js:654 +#: ../src/extension.js:667 msgid "Smoky" msgstr "Dym" -#: ../src/extension.js:656 +#: ../src/extension.js:669 msgid "Blustery" msgstr "Silny wiatr" -#: ../src/extension.js:658 +#: ../src/extension.js:671 msgid "Windy" msgstr "Wietrznie" -#: ../src/extension.js:660 +#: ../src/extension.js:673 msgid "Cold" msgstr "Zimno" -#: ../src/extension.js:662 +#: ../src/extension.js:675 msgid "Cloudy" msgstr "Pochmurnie" -#: ../src/extension.js:665 +#: ../src/extension.js:678 msgid "Mostly cloudy" msgstr "Duże zachmurzenie" -#: ../src/extension.js:668 ../src/extension.js:694 +#: ../src/extension.js:681 ../src/extension.js:707 msgid "Partly cloudy" msgstr "Częściowe zachmurzenie" -#: ../src/extension.js:670 +#: ../src/extension.js:683 msgid "Clear" msgstr "Pogodnie" -#: ../src/extension.js:672 +#: ../src/extension.js:685 msgid "Sunny" msgstr "Słonecznie" -#: ../src/extension.js:675 +#: ../src/extension.js:688 msgid "Fair" msgstr "Umiarkowanie" -#: ../src/extension.js:677 +#: ../src/extension.js:690 msgid "Mixed rain and hail" msgstr "Deszcz z gradem" -#: ../src/extension.js:679 +#: ../src/extension.js:692 msgid "Hot" msgstr "Gorąco" -#: ../src/extension.js:681 +#: ../src/extension.js:694 msgid "Isolated thunderstorms" msgstr "Lokalne burze" -#: ../src/extension.js:684 +#: ../src/extension.js:697 msgid "Scattered thunderstorms" msgstr "Rozproszone burze" -#: ../src/extension.js:686 +#: ../src/extension.js:699 msgid "Scattered showers" msgstr "Rozproszone przelotne opady deszczu" -#: ../src/extension.js:688 ../src/extension.js:692 +#: ../src/extension.js:701 ../src/extension.js:705 msgid "Heavy snow" msgstr "Silny śnieg" -#: ../src/extension.js:690 +#: ../src/extension.js:703 msgid "Scattered snow showers" msgstr "Rozproszone przelotne opady śniegu" -#: ../src/extension.js:696 +#: ../src/extension.js:709 msgid "Thundershowers" msgstr "Burze z przelotnymi opadami deszczu" -#: ../src/extension.js:698 +#: ../src/extension.js:711 msgid "Snow showers" msgstr "Przelotne opady śniegu" -#: ../src/extension.js:700 +#: ../src/extension.js:713 msgid "Isolated thundershowers" msgstr "Lokalne burze z przelotnymi opadami deszczu" -#: ../src/extension.js:703 +#: ../src/extension.js:716 msgid "Not available" msgstr "Nie dostępne" -#: ../src/extension.js:718 +#: ../src/extension.js:735 msgid "Monday" msgstr "Poniedziałek" -#: ../src/extension.js:718 +#: ../src/extension.js:735 msgid "Tuesday" msgstr "Wtorek" -#: ../src/extension.js:718 +#: ../src/extension.js:735 msgid "Wednesday" msgstr "Środa" -#: ../src/extension.js:718 +#: ../src/extension.js:735 msgid "Thursday" msgstr "Czwartek" -#: ../src/extension.js:718 +#: ../src/extension.js:735 msgid "Friday" msgstr "Piątek" -#: ../src/extension.js:718 +#: ../src/extension.js:735 msgid "Saturday" msgstr "Sobota" -#: ../src/extension.js:718 +#: ../src/extension.js:735 msgid "Sunday" msgstr "Niedziela" -#: ../src/extension.js:814 +#: ../src/extension.js:831 msgid "Today" msgstr "Dziś" -#: ../src/extension.js:814 +#: ../src/extension.js:831 msgid "Tomorrow" msgstr "Jutro" -#: ../src/extension.js:827 +#: ../src/extension.js:850 msgid "Yesterday" msgstr "Wczoraj" -#: ../src/extension.js:832 ../src/extension.js:840 +#: ../src/extension.js:855 ../src/extension.js:863 #, python-format msgid "%s days ago" msgstr "%s dni temu" -#: ../src/extension.js:953 +#: ../src/extension.js:982 msgid "Loading current weather ..." msgstr "Wczytywanie bieżącej pogody..." -#: ../src/extension.js:954 +#: ../src/extension.js:983 msgid "Loading future weather ..." msgstr "Wczytywanie prognozy pogody..." -#: ../src/extension.js:991 +#: ../src/extension.js:1020 msgid "Loading ..." msgstr "Wczytywanie..." -#: ../src/extension.js:994 +#: ../src/extension.js:1023 msgid "Please wait" msgstr "Proszę czekać" -#: ../src/extension.js:1039 +#: ../src/extension.js:1068 msgid "Feel like:" msgstr "Odczuwalna temperatura:" -#: ../src/extension.js:1041 +#: ../src/extension.js:1070 msgid "Humidity:" msgstr "Wilgotność:" -#: ../src/extension.js:1043 +#: ../src/extension.js:1072 msgid "Pressure:" msgstr "Ciśnienie atmosferyczne:" -#: ../src/extension.js:1045 +#: ../src/extension.js:1074 msgid "Wind:" msgstr "Wiatr:" @@ -289,47 +289,47 @@ msgstr "Wiatr:" msgid "Name of the city" msgstr "Nazwa miasta" -#: ../src/weather-settings.js.in:190 +#: ../src/weather-settings.js.in:212 #, python-format msgid "Remove %s ?" msgstr "Usunąć %s?" -#: ../src/weather-settings.js.in:608 +#: ../src/weather-settings.js.in:630 msgid "Temperature Unit" msgstr "Jednostka temperatury" -#: ../src/weather-settings.js.in:610 +#: ../src/weather-settings.js.in:632 msgid "Wind Speed Unit" msgstr "Jednostka prędkości wiatru" -#: ../src/weather-settings.js.in:612 +#: ../src/weather-settings.js.in:634 msgid "Position in Panel" msgstr "Położenie na panelu" -#: ../src/weather-settings.js.in:613 +#: ../src/weather-settings.js.in:635 msgid "Center" msgstr "Środek" -#: ../src/weather-settings.js.in:613 +#: ../src/weather-settings.js.in:635 msgid "Right" msgstr "Po prawej" -#: ../src/weather-settings.js.in:613 +#: ../src/weather-settings.js.in:635 msgid "Left" msgstr "Po lewej" -#: ../src/weather-settings.js.in:614 +#: ../src/weather-settings.js.in:636 msgid "Translate Conditions" msgstr "Tłumaczenia warunków pogodowych" -#: ../src/weather-settings.js.in:616 +#: ../src/weather-settings.js.in:638 msgid "Symbolic Icons" msgstr "Ikony symboliczne" -#: ../src/weather-settings.js.in:618 +#: ../src/weather-settings.js.in:640 msgid "Temperature in Panel" msgstr "Temperatura:" -#: ../src/weather-settings.js.in:620 +#: ../src/weather-settings.js.in:642 msgid "Conditions in Panel" msgstr "Warunki pogodowe na panelu" diff --git a/po/update.js b/po/update.js index 0f8ac26..4a2833a 100755 --- a/po/update.js +++ b/po/update.js @@ -29,19 +29,27 @@ Gio = imports.gi.Gio; print("Generate gnome-shell-extension-weather.pot"); var xgettext = Seed.spawn("xgettext -o gnome-shell-extension-weather.pot -L python --from-code=utf-8 --keyword=_ -f POTFILES.in"); + if(xgettext.stderr) - { print(xgettext.stderr); - } else { var file = Gio.file_new_for_path("."); var enumerator = file.enumerate_children("standard::name,standard::size"); - + var linguas = ""; + var n = ""; + var i = 0; while(child = enumerator.next_file()) if(child.get_name().search(/.po$/) != -1) { print("Generate "+child.get_name()); + linguas += n+(child.get_name().split(".po")[0]); Seed.spawn("msgmerge -U "+child.get_name()+" gnome-shell-extension-weather.pot"); + n = "\n"; + i++; } + + print("Write LINGUAS file"); + Gio.simple_write("LINGUAS",linguas); + print("Successfully generated "+i+" entry"); }