diff options
Diffstat (limited to 'docs/stylesheets')
28 files changed, 2158 insertions, 0 deletions
diff --git a/docs/stylesheets/README b/docs/stylesheets/README new file mode 100644 index 00000000..7cdceaf7 --- /dev/null +++ b/docs/stylesheets/README @@ -0,0 +1,43 @@ +The scripts may be useful for those who want to +organize sustainable translation process of Mageia Documentation Team's .xsl files. + +Prerequisites: + +Installed python-polib package: + +# urpmi python-polib + +I xslpo.py: + +Usage: + +1. Copy the script into any folder with .xsl files. +2. Run + python xslpo.py +3. Script will create .pot's for all .desktop's in the folder. Translate pot's and + rename the translations into <lang_code>.po +4. Run + python xslpo.py + once more to add your translations to .desktop files. + +If you ever need to update something (.xsl's were updated or you found a typo, +etc.) just run + python xslpo.py + +Limitations: +The script is useful only for Unicode translations. + +II transconverter.py is a one-time converter for existing +translations. + +Run it as + +python transconverter.py + +in any folder with desktop files on any level of the filesystem subtree. + + * Both of these files are free software. They come without any warranty, to + * the extent permitted by applicable law. You can redistribute it + * and/or modify them under the terms of the Do What The Fuck You Want + * To Public License, Version 2, as published by Sam Hocevar. See + * http://sam.zoy.org/wtfpl/COPYING for more details. diff --git a/docs/stylesheets/po/ca.po b/docs/stylesheets/po/ca.po new file mode 100644 index 00000000..f51ce14d --- /dev/null +++ b/docs/stylesheets/po/ca.po @@ -0,0 +1,74 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: ca <mageia-ca@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Cerca" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "" diff --git a/docs/stylesheets/po/cs.po b/docs/stylesheets/po/cs.po new file mode 100644 index 00000000..2ba1e847 --- /dev/null +++ b/docs/stylesheets/po/cs.po @@ -0,0 +1,74 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: cs <mageia-cs@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Hledat" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "" diff --git a/docs/stylesheets/po/de.po b/docs/stylesheets/po/de.po new file mode 100644 index 00000000..df020b1b --- /dev/null +++ b/docs/stylesheets/po/de.po @@ -0,0 +1,76 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: de <mageia-de@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Suchen" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "Geben Sie einen Begriff ein und wählen Sie " + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "Los" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr ", um eine Suche durchzuführen." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "Ergebnisse" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "Sie müssen mindestens ein Zeichen eingeben." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" +"JavaScript ist in Ihrem Browser abgeschaltet. Bitte schalten Sie JavaScript " +"an, damit diese Seiten vollständig dargestellt werden." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "Bitte warten Sie. Die Suche ist im Gange ..." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "Ergebnisse für: " + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "Inhalt" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "Markierte Suchergebnisse ein/ausschalten" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "Ihre Suche erbrachte kein Ergebnis." diff --git a/docs/stylesheets/po/doc_xsl.pot b/docs/stylesheets/po/doc_xsl.pot new file mode 100644 index 00000000..e1f54197 --- /dev/null +++ b/docs/stylesheets/po/doc_xsl.pot @@ -0,0 +1,74 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: i18n-discuss@ml.mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:19+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "" diff --git a/docs/stylesheets/po/el.po b/docs/stylesheets/po/el.po new file mode 100644 index 00000000..2fe2553b --- /dev/null +++ b/docs/stylesheets/po/el.po @@ -0,0 +1,77 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: el <mageia-el@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Αναζήτηση" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "Εισάγετε ένα λήμμα και κάντε κλικ " + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "Μετάβαση" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr " για αναζήτηση." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "Αποτελέσματα" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "Θα πρέπει να εισαγάγετε τουλάχιστον ένα χαρακτήρα." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" +"Η JavaScript είναι απενεργοποιημένη στον περιηγητή σας. Παρακαλώ " +"ενεργοποιήστε την JavaScript για να απολαύσετε όλα τα χαρακτηριστικά του " +"ιστοτόπου." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "Παρακαλώ περιμένετε. Η αναζήτηση είναι σε εξέλιξη..." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "Αποτελέσματα για: " + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "Περιεχόμενα" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "Εναλλαγή τονισμού των αποτελεσμάτων της αναζήτησης" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "Η αναζήτησή σας δεν επέφερε αποτελέσματα." diff --git a/docs/stylesheets/po/en.po b/docs/stylesheets/po/en.po new file mode 100644 index 00000000..83485c9c --- /dev/null +++ b/docs/stylesheets/po/en.po @@ -0,0 +1,76 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: en <mageia-en@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Search" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "Enter a term and click " + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "Go" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr " to perform a search." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "Results" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "You must enter at least one character." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "Please wait. Search in progress..." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "Results for: " + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "Contents" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "Toggle search result highlighting" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "Your search returned no results." diff --git a/docs/stylesheets/po/eo.po b/docs/stylesheets/po/eo.po new file mode 100644 index 00000000..e8cc9595 --- /dev/null +++ b/docs/stylesheets/po/eo.po @@ -0,0 +1,74 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: eo <mageia-eo@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Serĉi" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "" diff --git a/docs/stylesheets/po/es.po b/docs/stylesheets/po/es.po new file mode 100644 index 00000000..338c2dc0 --- /dev/null +++ b/docs/stylesheets/po/es.po @@ -0,0 +1,76 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: es <mageia-es@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Buscar" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "Escribe la palabra de búsqueda y haga clic en " + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "Buscar" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr " para realizar una búsqueda." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "Resultados" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "Debe introducir al menos un carácter." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" +"JavaScript está desactivado en su navegador. Por favor, active JavaScript " +"para disfrutar de todas las características de este sitio." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "Por favor espera. Búsqueda en curso..." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "Resultados para: " + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "Contenidos" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "Seleccionados Resultados de encendido/apagado" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "Su búsqueda no produjo resultados." diff --git a/docs/stylesheets/po/et.po b/docs/stylesheets/po/et.po new file mode 100644 index 00000000..9de05144 --- /dev/null +++ b/docs/stylesheets/po/et.po @@ -0,0 +1,76 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: et <mageia-et@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Otsing" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "Kirjutage otsitav sõna ja klõpsake " + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "Otsi" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr "otsingu teostamiseks." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "Tulemused" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "Kirjutada tuleb vähemalt üks märk." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" +"JavaScript on brauseris keelatud. Lülitage JavaScript sisse, et näha " +"lehekülge täielikult." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "Palun oodake, otsitakse ..." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "Tulemused otsingule: " + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "Sisukord" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "Otsingutulemuste tähistamise sisse/väljalülitamine" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "Otsing ei andnud tulemusi." diff --git a/docs/stylesheets/po/eu.po b/docs/stylesheets/po/eu.po new file mode 100644 index 00000000..dc79a028 --- /dev/null +++ b/docs/stylesheets/po/eu.po @@ -0,0 +1,76 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: eu <mageia-eu@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Bilatu" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "Bilaketa hitza idatzi eta sakatu " + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "Bilatu" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr " bilaketa bat egiteko." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "Emaitzak" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "Karaktere bat behintzat sartu behar duzu." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" +"Zure nabigatzailean JavaScript desgaituta dago. Mesedez gaitu JavaScript " +"gune honetako ezaugarri guztiez gozatzeko." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "Itxaron. Bilaketa martxan..." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "Emaitzak: " + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "Edukiak" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "Piztu/itzaliren hautatutako emaitzak" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "Bilaketan ez dago emaitzarik." diff --git a/docs/stylesheets/po/fr.po b/docs/stylesheets/po/fr.po new file mode 100644 index 00000000..0002800a --- /dev/null +++ b/docs/stylesheets/po/fr.po @@ -0,0 +1,76 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: fr <mageia-fr@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Rechercher" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "Saisissez un terme et cliquez sur " + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "OK" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr " pour lancer une recherche." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "Résultats" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "Vous devez saisir au moins un caractère." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" +"JavaScript est désactivé dans votre navigateur. Veuillez activer JavaScript " +"pour bénéficier de toutes les fonctionnalités de ce site." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "Merci de patienter. La recherche est en cours..." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "Résultats pour : " + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "Sommaire" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "Surligner les résultats de recherche dans le texte" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "Aucune correspondance n'a été trouvée pour votre recherche." diff --git a/docs/stylesheets/po/hr.po b/docs/stylesheets/po/hr.po new file mode 100644 index 00000000..72ecc5ce --- /dev/null +++ b/docs/stylesheets/po/hr.po @@ -0,0 +1,74 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: hr <mageia-hr@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Traži" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "" diff --git a/docs/stylesheets/po/id.po b/docs/stylesheets/po/id.po new file mode 100644 index 00000000..46defaf8 --- /dev/null +++ b/docs/stylesheets/po/id.po @@ -0,0 +1,76 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: id <mageia-id@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Cari" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "Masukkan istilah lalu klik " + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "Lakukan" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr " untuk melakukan pencarian." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "Hasil" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "Anda harus memasukkan setidaknya satu karakter." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" +"JavaScript browser Anda dimatikan. Silakan aktifkan JavaScript untuk " +"menikmati semua fitur situs ini." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "Silakan tunggu. Pencarian sedang dilakukan..." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "Hasil untuk: " + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "Konten" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "Beralih penyorotan hasil pencarian" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "Tidak ditemukan hasil pencarian." diff --git a/docs/stylesheets/po/it.po b/docs/stylesheets/po/it.po new file mode 100644 index 00000000..9aa21bc8 --- /dev/null +++ b/docs/stylesheets/po/it.po @@ -0,0 +1,74 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: it <mageia-it@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Ricerca" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "" diff --git a/docs/stylesheets/po/nl.po b/docs/stylesheets/po/nl.po new file mode 100644 index 00000000..e5d3b03d --- /dev/null +++ b/docs/stylesheets/po/nl.po @@ -0,0 +1,76 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: nl <mageia-nl@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Zoeken" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "Voer een zoekterm in en klik op " + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "Ga" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr " om te zoeken." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "Resultaten" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "U moet minstens één teken invoeren." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" +"JavaScript is uitgeschakeld in uw browser. Schakel het a.u.b. in om van alle" +" mogelijkheden van deze site te genieten." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "A.u.b. wachten. Er wordt gezocht..." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "Resultaten voor: " + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "Inhoud" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "Zet het markeren van resultaten aan of uit" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "Uw zoekopdracht leverde geen resultaten op." diff --git a/docs/stylesheets/po/pl.po b/docs/stylesheets/po/pl.po new file mode 100644 index 00000000..47b7b823 --- /dev/null +++ b/docs/stylesheets/po/pl.po @@ -0,0 +1,74 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: pl <mageia-pl@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Szukaj" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "" diff --git a/docs/stylesheets/po/pt.po b/docs/stylesheets/po/pt.po new file mode 100644 index 00000000..e9c2e5de --- /dev/null +++ b/docs/stylesheets/po/pt.po @@ -0,0 +1,74 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: pt <mageia-pt@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Pesquisa" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "" diff --git a/docs/stylesheets/po/pt_br.po b/docs/stylesheets/po/pt_br.po new file mode 100644 index 00000000..0a502c15 --- /dev/null +++ b/docs/stylesheets/po/pt_br.po @@ -0,0 +1,74 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: pt_br <mageia-pt_br@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Pesquisa" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "" diff --git a/docs/stylesheets/po/ro.po b/docs/stylesheets/po/ro.po new file mode 100644 index 00000000..3e7fd770 --- /dev/null +++ b/docs/stylesheets/po/ro.po @@ -0,0 +1,74 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: ro <mageia-ro@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Căutare" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "" diff --git a/docs/stylesheets/po/ru.po b/docs/stylesheets/po/ru.po new file mode 100644 index 00000000..cea4373c --- /dev/null +++ b/docs/stylesheets/po/ru.po @@ -0,0 +1,76 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: ru <mageia-ru@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Поиск" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "Введите запрос и нажмите " + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "Искать" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr ", чтобы выполнить поиск." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "Результаты" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "Вам следует ввести хотя бы один символ." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" +"В вашем браузере выключено использование JavaScript. Пожалуйста, включите " +"JavaScript, чтобы пользоваться этим сайтом полноценно." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "Подождите. Выполняется поиск..." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "Результаты для: " + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "Содержание" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "Включить или выключить подсвечивание результатов поиска" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "Ничего не найдено для поискового запроса." diff --git a/docs/stylesheets/po/sl.po b/docs/stylesheets/po/sl.po new file mode 100644 index 00000000..6d19a9bf --- /dev/null +++ b/docs/stylesheets/po/sl.po @@ -0,0 +1,76 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: sl <mageia-sl@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Iskanje" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "Vpišite besede in kliknite " + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "Išči" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr " za izvedbo iskanja." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "Rezultati" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "Vpisati morate\tvsaj en znak." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" +"V vašem brskalniku je JavaScript onemogočen. Če želite uporabljati vse " +"zmožnosti te spletne strani, ga morate omogočiti." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "Počakajte. Poteka iskanje ..." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "Rezultati za: " + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "Vsebina" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "Preklopi osvetljevanje rezultatov" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "Iskanje ni dalo rezultatov." diff --git a/docs/stylesheets/po/sq.po b/docs/stylesheets/po/sq.po new file mode 100644 index 00000000..4f96380f --- /dev/null +++ b/docs/stylesheets/po/sq.po @@ -0,0 +1,74 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: sq <mageia-sq@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Kërko" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "" diff --git a/docs/stylesheets/po/sv.po b/docs/stylesheets/po/sv.po new file mode 100644 index 00000000..ebe735c0 --- /dev/null +++ b/docs/stylesheets/po/sv.po @@ -0,0 +1,76 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: sv <mageia-sv@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Sök" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "Fyll i en term och klicka " + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "Gå" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr " att utföra en sökning." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "Resultat" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "Du måste fylla i åtminstone ett tecken." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" +"JavaScript är inaktivera i din webbläsare. Var vänlig aktivera JavaScript " +"för att njuta av alla funktioner som finns på den här sidan." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "Var vänlig vänta. Sökning pågår..." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "Resultat för: " + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "Innehåll" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "Din sökning gav inget resultat." diff --git a/docs/stylesheets/po/tr.po b/docs/stylesheets/po/tr.po new file mode 100644 index 00000000..3105efbd --- /dev/null +++ b/docs/stylesheets/po/tr.po @@ -0,0 +1,76 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: tr <mageia-tr@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Ara" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "Bir ifade girip tıklayarak " + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "Git" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr " arama yapabilirsiniz." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "Sonuçlar" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "En az bir karakter girmek zorundasınız." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" +"Tarayıcınızda JavaScript devre dışı bırakılmış. Bu sitenin tüm " +"özelliklerinden faydalanmak için lütfen JavaScripti etkinleştirin." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "Lütfen bekleyin. Arama işlemi sürüyor..." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "Şu ifade için sonuçlar: " + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "İçerik" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "Arama sonucu vurgulamasını tersine çevir" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "Aranan ifade bulunamadı." diff --git a/docs/stylesheets/po/uk.po b/docs/stylesheets/po/uk.po new file mode 100644 index 00000000..5147fdae --- /dev/null +++ b/docs/stylesheets/po/uk.po @@ -0,0 +1,76 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: Mageia XSL files translation\n" +"Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" +"POT-Creation-Date: 2015-11-03 16:03+0200\n" +"PO-Revision-Date: 2015-11-03 16:03+0200\n" +"Last-Translator: Duffy Duck <d_duck@nowhere.net>\n" +"Language-Team: uk <mageia-uk@ml.mageia.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ./WebHelp-DrakX.xsl +msgctxt "Search" +msgid "Search" +msgstr "Пошук" + +#: ./WebHelp-DrakX.xsl +msgctxt "Enter_a_term_and_click" +msgid "Enter a term and click " +msgstr "Введіть критерій пошуку і натисніть " + +#: ./WebHelp-DrakX.xsl +msgctxt "Go" +msgid "Go" +msgstr "Шукати" + +#: ./WebHelp-DrakX.xsl +msgctxt "to_perform_a_search" +msgid " to perform a search." +msgstr ", щоб розпочати пошук." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_filesfound" +msgid "Results" +msgstr "Результати" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_enter_at_least_1_char" +msgid "You must enter at least one character." +msgstr "Вам слід ввести принаймні один символ" + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_browser_not_supported" +msgid "" +"JavaScript is disabled on your browser. Please enable JavaScript to enjoy " +"all the features of this site." +msgstr "" +"У вашій програмі для перегляду вимкнено JavaScript. Будь ласка, увімкніть " +"JavaScript, щоб мати змогу скористатися усіма можливостями цього сайта." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_please_wait" +msgid "Please wait. Search in progress..." +msgstr "Зачекайте. Виконуємо пошук..." + +#: ./WebHelp-DrakX.xsl +msgctxt "txt_results_for" +msgid "Results for: " +msgstr "Результати для: " + +#: ./WebHelp-DrakX.xsl +msgctxt "TableofContents" +msgid "Contents" +msgstr "Вміст" + +#: ./WebHelp-DrakX.xsl +msgctxt "HighlightButton" +msgid "Toggle search result highlighting" +msgstr "Увімкнути або вимкнути підсвічування знайдених відповідників" + +#: ./WebHelp-DrakX.xsl +msgctxt "Your_search_returned_no_results" +msgid "Your search returned no results." +msgstr "Відповідників не знайдено." diff --git a/docs/stylesheets/transconverter.py b/docs/stylesheets/transconverter.py new file mode 100644 index 00000000..48b3ea63 --- /dev/null +++ b/docs/stylesheets/transconverter.py @@ -0,0 +1,107 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +import errno, glob, polib, re, os, getopt, sys +from time import strftime + +def usage(): + print '\nUsage: python %s [OPTION]' %os.path.basename(sys.argv[0]) + print ' extract existing translations from xsl file' + print 'Options: -h, --help : usage' + sys.exit(2) +try: + opts, args = getopt.getopt(sys.argv[1:], "h:", ["help"]) +except getopt.GetoptError: + usage() # print help information and exit + +directory='.' +for o in opts: + if o in ("-h", "--help"): + usage() + +# Find all XSL files +files = [] +for rootdir, dirnames, filenames in os.walk(directory): + files.extend(glob.glob(rootdir + "/*.xsl")) + +# Define Templates and po directory name +translationtemplate='l:l10n\ (.*?)<\/l:l10n' +tpattern=re.compile(translationtemplate,re.DOTALL) +entemplate='language=\"en\">\n(.*?)<\/l:l10n' +enpattern=re.compile(entemplate,re.DOTALL) +langtemplate='language=\"(.*?)\"' +lpattern=re.compile(langtemplate,re.DOTALL) +messagetemplate='<l:gentext key=\"(.*?)\"\/>' +mpattern=re.compile(messagetemplate,re.DOTALL) +podir = 'po' + +pocreationtime = strftime('%Y-%m-%d %H:%M%z') + +for langfile in files: + langfiledir = langfile.replace('.xsl', '') + langfilename = langfiledir.rpartition('/')[2] + # Create localization directories if needed + try: + os.makedirs(podir) + except OSError, e: + if e.errno != errno.EEXIST: + raise + #open xsl file + text = open(langfile,"r").read() + + # Find all English messages, determine msgctxts and msgids + messages = {} + for enblock in enpattern.findall(text): + for enmessage in mpattern.findall(enblock): + msgkey, msgid = enmessage.split('\" text=\"') + messages[msgkey] = msgid + + # Parse contents and add them to PO + for tblock in tpattern.findall(text): + lang_code = lpattern.search(tblock).group(1) + print lang_code + pofilename = podir + '/' + lang_code + '.po' + if not os.path.isfile(pofilename): + # Create PO file + po = polib.POFile() + po.metadata = { + 'Project-Id-Version': 'Mageia XSL files translation', + 'Report-Msgid-Bugs-To': 'mageia-i18n@mageia.org', + 'POT-Creation-Date': pocreationtime, + 'PO-Revision-Date': pocreationtime, + 'Last-Translator': 'Duffy Duck <d_duck@nowhere.net>', + 'Language-Team': lang_code + ' <mageia-' + lang_code + '@ml.mageia.org>', + 'MIME-Version': '1.0', + 'Content-Type': 'text/plain; charset=UTF-8', + 'Content-Transfer-Encoding': '8bit', + } + po.save(pofilename) + po = polib.pofile(pofilename, check_for_duplicates=True) + if lang_code == 'en': + for message in mpattern.findall(tblock): + msgkey, msg_id = message.split('\" text=\"') + poentry = polib.POEntry( + msgctxt = msgkey, + msgid = msg_id.decode('utf-8'), + msgstr = msg_id.decode('utf-8'), + occurrences=[(langfile,'')] + ) + try: + po.append(poentry) + except ValueError: + print 'The entry already exists, skipping it' + else: + for message in mpattern.findall(tblock): + msgkey, msg_id = message.split('\" text=\"') + poentry = polib.POEntry( + msgctxt = msgkey, + msgid = messages[msgkey].decode('utf-8'), + msgstr = msg_id.decode('utf-8') if msg_id != messages[msgkey] else '', + occurrences=[(langfile,'')] + ) + try: + po.append(poentry) + except ValueError: + print 'The entry already exists, skipping it' + po.save(pofilename) + diff --git a/docs/stylesheets/xslpo.py b/docs/stylesheets/xslpo.py new file mode 100644 index 00000000..7ebd5046 --- /dev/null +++ b/docs/stylesheets/xslpo.py @@ -0,0 +1,129 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +import errno, glob, polib, re, os, getopt, sys +from time import strftime + +def usage(): + print '\nUsage: python %s [OPTION]' %os.path.basename(sys.argv[0]) + print ' generate pot catalogs and updates po files for xsl resources in the specified directory' + print 'Options: -h, --help : usage' + print ' -d <directory>, --directory <directory> : directory with xsl files' + sys.exit(2) +try: + opts, args = getopt.getopt(sys.argv[1:], "hd:", ["help", "directory="]) +except getopt.GetoptError: + usage() # print help information and exit + +directory='.' +for o,a in opts: + if o in ("-h", "--help"): + usage() + if o in ("-d", "--directory"): + directory=a + +directory = directory.rstrip('/') + +if (directory != '') and (os.path.isdir(directory) == False): + sys.exit('Specified directory does not exist') + +# Find all XSL files +files = [] +for rootdir, dirnames, filenames in os.walk(directory): + files.extend(glob.glob(rootdir + "/*.xsl")) + +# Define Templates and po directory name +translationtemplate='l:l10n\ (.*?)<\/l:l10n' +tpattern=re.compile(translationtemplate,re.DOTALL) +entemplate='language=\"en\">\n(.*?)<\/l:l10n' +enpattern=re.compile(entemplate,re.DOTALL) +langtemplate='language=\"(.*?)\"' +lpattern=re.compile(langtemplate,re.DOTALL) +messagetemplate='<l:gentext key=\"(.*?)\"\/>' +mpattern=re.compile(messagetemplate,re.DOTALL) +transblocktemplate='<l:i18n xmlns:l="http:\/\/docbook.sourceforge.net\/xmlns\/l10n\/1.0\">(.*?)<\/l:i18n>' +tbpattern=re.compile(transblocktemplate,re.DOTALL) +blocktemplate='<l:i18n xmlns:l=\"http://docbook.sourceforge.net/xmlns/l10n/1.0\">\n</l:i18n>' +podir = 'po' + +# Write POT file +pot = polib.POFile('',check_for_duplicates=True) +potcreationtime = strftime('%Y-%m-%d %H:%M%z') +pot.metadata = { + 'Project-Id-Version': 'Mageia XSL files translation', + 'Report-Msgid-Bugs-To': 'i18n-discuss@ml.mageia.org', + 'POT-Creation-Date': potcreationtime, + 'PO-Revision-Date': 'YEAR-MO-DA HO:MI+ZONE', + 'Last-Translator': 'FULL NAME <EMAIL@ADDRESS>', + 'Language-Team': 'LANGUAGE <LL@li.org>', + 'MIME-Version': '1.0', + 'Content-Type': 'text/plain; charset=UTF-8', + 'Content-Transfer-Encoding': '8bit', + } + +for langfile in files: + langfiledir = langfile.replace('.xsl', '') + langfilename = langfiledir.rpartition('/')[2] + # Create localization directories if needed + try: + os.makedirs(podir) + except OSError, e: + if e.errno != errno.EEXIST: + raise + #open xsl file + text = open(langfile,"r").read() + + # Parse contents and add them to POT + messages = {} + for enblock in enpattern.findall(text): + for enmessage in mpattern.findall(enblock): + msgkey, msg_id = enmessage.split('\" text=\"') + messages[msgkey] = msg_id + potentry = polib.POEntry( + msgctxt = msgkey, + msgid = msg_id.decode('utf-8'), + msgstr = '', + occurrences=[(langfile,'')] + ) + if msg_id != '': + try: + pot.append(potentry) + except ValueError: + print '' # Should be some warning, ignore now +pot.save('po/doc_xsl.pot') + +# Merge translations +for pofile in glob.glob(podir + '/*.po'): + lang = pofile[:-3].rsplit('/',1)[1] + pofilename = pofile + po = polib.pofile(pofilename) + po.merge(pot) + po.save(pofilename) + +for langfile in files: + #open xsl file + deskfile = open(langfile,"r") + text = deskfile.read() + deskfile.close() + deskfile = open(langfile,"w") + for transblock in tbpattern.findall(text): + text = text.replace(transblock, '\n') + + # Parse PO files + for pofile in sorted(glob.glob(podir + '/*.po'), reverse = False): + lang = pofile[:-3].rsplit('/',1)[1] + pofilename = pofile + po = polib.pofile(pofilename) + translatedtext=u'\t<l:l10n language=\"%s\">\n' %lang + for entry in po: + if entry.translated(): + translatedtext += u'\t\t<l:gentext key=\"%s\" text=\"%s\"/>\n' %(entry.msgctxt, entry.msgstr) + else: + translatedtext += '\t\t<l:gentext key=\"%s\" text=\"%s\"/>\n' %(entry.msgctxt, messages[entry.msgctxt]) + translatedtext += '\t</l:l10n>\n</l:i18n>' + text = text.replace('</l:i18n>', translatedtext) + + # write file + deskfile.write(text.encode('utf-8')) + deskfile.close() + |