|
From: <ge...@us...> - 2009-04-09 19:50:34
|
Revision: 1807
http://nocc.svn.sourceforge.net/nocc/?rev=1807&view=rev
Author: gerundt
Date: 2009-04-09 19:50:24 +0000 (Thu, 09 Apr 2009)
Log Message:
-----------
Fix to get all translations in a line in python script to create POT file for htdocs
Modified Paths:
--------------
trunk/create_potfile_for_htdocs.py
trunk/htdocs/engine/languages/de.po
trunk/htdocs/engine/languages/en.pot
Modified: trunk/create_potfile_for_htdocs.py
===================================================================
--- trunk/create_potfile_for_htdocs.py 2009-04-09 19:34:41 UTC (rev 1806)
+++ trunk/create_potfile_for_htdocs.py 2009-04-09 19:50:24 UTC (rev 1807)
@@ -39,13 +39,14 @@
lines = open(php_file, 'r')
for line in lines: #For all lines...
i += 1
- tmp = rGettext.findall(line)
- if tmp: #If found a gettext function...
- translation = tmp[0]
- if translation in translations: #If the translation is already exists...
- translations[translation] += [(php_file, i)]
- else: #If the translation is NOT already exists...
- translations[translation] = [(php_file, i)]
+ tmps = rGettext.findall(line)
+ if tmps: #If found a gettext function...
+ for tmp in tmps: #For all translations...
+ translation = tmp
+ if translation in translations: #If the translation is already exists...
+ translations[translation] += [(php_file, i)]
+ else: #If the translation is NOT already exists...
+ translations[translation] = [(php_file, i)]
#Main routine...
translations = {}
Modified: trunk/htdocs/engine/languages/de.po
===================================================================
--- trunk/htdocs/engine/languages/de.po 2009-04-09 19:34:41 UTC (rev 1806)
+++ trunk/htdocs/engine/languages/de.po 2009-04-09 19:50:24 UTC (rev 1807)
@@ -8,8 +8,8 @@
msgstr ""
"Project-Id-Version: NOCC\n"
"Report-Msgid-Bugs-To: http://sourceforge.net/tracker/?group_id=12177&atid=112177\n"
-"POT-Creation-Date: 2009-04-09 20:38+0000\n"
-"PO-Revision-Date: 2009-04-09 21:07+0100\n"
+"POT-Creation-Date: 2009-04-09 21:43+0000\n"
+"PO-Revision-Date: 2009-04-09 21:44+0100\n"
"Last-Translator: Tim Gerundt <tim at gerundt.de>\n"
"Language-Team: German <noc...@li...>\n"
"MIME-Version: 1.0\n"
@@ -40,6 +40,10 @@
msgstr "Projekt-Dateifreigaben"
#, c-format
+msgid "Login window"
+msgstr "Anmelden-Fenster"
+
+#, c-format
msgid "GNU General Public License"
msgstr "GNU General Public License"
@@ -52,6 +56,10 @@
msgstr "Unübersetzt"
#, c-format
+msgid "Incomplete and new translations"
+msgstr "Unvollständig und neue Übersetzungen"
+
+#, c-format
msgid "Error 404 (Page Not Found))"
msgstr "Fehler 404 (Seite nicht gefunden)"
@@ -72,10 +80,18 @@
msgstr "Die Open-Source-Definition"
#, c-format
+msgid "Preferences window"
+msgstr "Einstellungen-Fenster"
+
+#, c-format
msgid "NOCC is a webmail client written in <a href=\"http://www.php.net\">PHP</a>. It provides webmail access to IMAP and POP3 accounts."
msgstr "NOCC ist ein Webmail-Client in <a href=\"http://www.php.net\">PHP</a> geschrieben. Er bietet Zugriff auf IMAP- und POP3-Konten."
#, c-format
+msgid "Writing an e-mail"
+msgstr "Schreiben einer E-Mail"
+
+#, c-format
msgid "FAQ"
msgstr "FAQ"
@@ -92,6 +108,10 @@
msgstr "Projektseite"
#, c-format
+msgid "(IE, english)"
+msgstr "(IE, Englisch)"
+
+#, c-format
msgid "Feature Requests"
msgstr "Funktionsanfrage"
@@ -152,6 +172,10 @@
msgstr "Fehlerverfolgung"
#, c-format
+msgid "Viewing e-mail with attachment"
+msgstr "Anzeigen einer E-Mail mit Anhängen"
+
+#, c-format
msgid "Page Not Found..."
msgstr "Seite nicht gefunden..."
@@ -188,10 +212,18 @@
msgstr "Unterstützt"
#, c-format
-msgid "Incomplete and new translations"
-msgstr "Unvollständig und neue Übersetzungen"
+msgid "Viewing an e-mail"
+msgstr "Anzeigen einer E-Mail"
#, c-format
+msgid "(Firefox, english)"
+msgstr "(Firefox, Englisch)"
+
+#, c-format
+msgid "Inbox window"
+msgstr "Posteingang-Fenster"
+
+#, c-format
msgid "nocc, webmail, php, pop3, imap, smtp, multiuser"
msgstr "nocc, webmail, php, pop3, imap, smtp, mehrbenutzer"
Modified: trunk/htdocs/engine/languages/en.pot
===================================================================
--- trunk/htdocs/engine/languages/en.pot 2009-04-09 19:34:41 UTC (rev 1806)
+++ trunk/htdocs/engine/languages/en.pot 2009-04-09 19:50:24 UTC (rev 1807)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: NOCC\n"
"Report-Msgid-Bugs-To: http://sourceforge.net/tracker/?group_id=12177&atid=112177\n"
-"POT-Creation-Date: 2009-04-09 20:38+0000\n"
+"POT-Creation-Date: 2009-04-09 21:43+0000\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: English <noc...@li...>\n"
@@ -40,6 +40,10 @@
msgstr ""
#, c-format
+msgid "Login window"
+msgstr ""
+
+#, c-format
msgid "GNU General Public License"
msgstr ""
@@ -52,6 +56,10 @@
msgstr ""
#, c-format
+msgid "Incomplete and new translations"
+msgstr ""
+
+#, c-format
msgid "Error 404 (Page Not Found))"
msgstr ""
@@ -72,10 +80,18 @@
msgstr ""
#, c-format
+msgid "Preferences window"
+msgstr ""
+
+#, c-format
msgid "NOCC is a webmail client written in <a href=\"http://www.php.net\">PHP</a>. It provides webmail access to IMAP and POP3 accounts."
msgstr ""
#, c-format
+msgid "Writing an e-mail"
+msgstr ""
+
+#, c-format
msgid "FAQ"
msgstr ""
@@ -92,6 +108,10 @@
msgstr ""
#, c-format
+msgid "(IE, english)"
+msgstr ""
+
+#, c-format
msgid "Feature Requests"
msgstr ""
@@ -152,6 +172,10 @@
msgstr ""
#, c-format
+msgid "Viewing e-mail with attachment"
+msgstr ""
+
+#, c-format
msgid "Page Not Found..."
msgstr ""
@@ -188,10 +212,18 @@
msgstr ""
#, c-format
-msgid "Incomplete and new translations"
+msgid "Viewing an e-mail"
msgstr ""
#, c-format
+msgid "(Firefox, english)"
+msgstr ""
+
+#, c-format
+msgid "Inbox window"
+msgstr ""
+
+#, c-format
msgid "nocc, webmail, php, pop3, imap, smtp, multiuser"
msgstr ""
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|