[Mpuls-commits] r3917 - in base/trunk: . mpulsweb/i18n mpulsweb/i18n/de/LC_MESSAGES mpulsweb/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Oct 7 11:06:40 CEST 2010
Author: torsten
Date: 2010-10-07 11:06:38 +0200 (Thu, 07 Oct 2010)
New Revision: 3917
Modified:
base/trunk/ChangeLog
base/trunk/mpulsweb/i18n/de/LC_MESSAGES/mpulsweb.po
base/trunk/mpulsweb/i18n/mpulsweb.pot
base/trunk/mpulsweb/model/phase.py
Log:
Issue939: Add "title" attribute to the links on phase page.
Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog 2010-10-07 08:53:32 UTC (rev 3916)
+++ base/trunk/ChangeLog 2010-10-07 09:06:38 UTC (rev 3917)
@@ -11,6 +11,11 @@
listing of phases in search.
* mpulsweb/templates/phase/phase.mako: Issue939: Use icons instead of
colors on phase page to indicate missing fields or other errors.
+ * mpulsweb/model/phase.py (Field.get_link): Issue939: Add "title"
+ attribute to the links on phase page.
+ * i18n/mpulsweb.pot,
+ i18n/de/LC_MESSAGES/mpulsweb.po: New translations for title attribute
+ in phase overview page.
2010-10-06 Bernhard Herzog <bh at intevation.de>
Modified: base/trunk/mpulsweb/i18n/de/LC_MESSAGES/mpulsweb.po
===================================================================
--- base/trunk/mpulsweb/i18n/de/LC_MESSAGES/mpulsweb.po 2010-10-07 08:53:32 UTC (rev 3916)
+++ base/trunk/mpulsweb/i18n/de/LC_MESSAGES/mpulsweb.po 2010-10-07 09:06:38 UTC (rev 3917)
@@ -8,7 +8,7 @@
"Project-Id-Version: mpulsweb 0.0.0\n"
"Report-Msgid-Bugs-To: EMAIL at ADDRESS\n"
"POT-Creation-Date: 2009-10-08 09:54+0200\n"
-"PO-Revision-Date: 2010-10-06 15:57+0200\n"
+"PO-Revision-Date: 2010-10-07 11:04+0200\n"
"Last-Translator: Torsten Irländer <torsten.irlaender at intevation.de>\n"
"Language-Team: de <LL at li.org>\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
@@ -1049,6 +1049,14 @@
"Die XML-Datei hat die Version '%s', unterstützt wird aber nur Version "
"'%s'."
+#: mpulsweb/model/phase.py:420
+msgid "Field is OK and requires no further editing"
+msgstr "Dieses Feld ist OK und benötigt keine weitere Bearbeitung"
+
+#: mpulsweb/model/phase.py:423
+msgid "Field is not OK and requires further editing"
+msgstr "Dieses Feld ist nicht OK und benötigt eines weitere Bearbeitung"
+
#: mpulsweb/templates/base.mako:6 mpulsweb/templates/main.mako:191
msgid "main_formular_input_error"
msgstr "Fehlerhafte Formulareingabe"
@@ -2152,7 +2160,7 @@
#: mpulsweb/templates/casemanagement/digest.mako:117
#: mpulsweb/templates/casemanagement/search.mako:77
-#: mpulsweb/templates/phase/phase.mako:141
+#: mpulsweb/templates/phase/phase.mako:144
msgid "Phase"
msgstr "Phase"
@@ -2175,7 +2183,7 @@
msgstr "Enddatum"
#: mpulsweb/templates/casemanagement/digest.mako:148
-#: mpulsweb/templates/phase/phase.mako:142
+#: mpulsweb/templates/phase/phase.mako:145
msgid "Duration in weeks"
msgstr "Dauer in Wochen"
@@ -2720,22 +2728,22 @@
msgid "Not yet started"
msgstr "Noch nicht gestartet"
-#: mpulsweb/templates/phase/phase.mako:79
-#: mpulsweb/templates/phase/phase.mako:113
+#: mpulsweb/templates/phase/phase.mako:80
+#: mpulsweb/templates/phase/phase.mako:116
msgid "No required fields found"
msgstr "Keine Pflichtfelder gefunden"
-#: mpulsweb/templates/phase/phase.mako:88
-#: mpulsweb/templates/phase/phase.mako:90
+#: mpulsweb/templates/phase/phase.mako:89
+#: mpulsweb/templates/phase/phase.mako:91
msgid "Start"
msgstr "Starten"
-#: mpulsweb/templates/phase/phase.mako:120
-#: mpulsweb/templates/phase/phase.mako:122
+#: mpulsweb/templates/phase/phase.mako:123
+#: mpulsweb/templates/phase/phase.mako:125
msgid "Finish"
msgstr "Beenden"
-#: mpulsweb/templates/phase/phase.mako:136
+#: mpulsweb/templates/phase/phase.mako:139
msgid "Duration of phases"
msgstr "Dauer der Phasen"
@@ -2908,11 +2916,11 @@
msgid "Evaluation"
msgstr "Auswertung"
-#: mpulsweb/templates/tags/tags.mako:34
+#: mpulsweb/templates/tags/tags.mako:38
msgid "Validities"
msgstr "Validitäten"
-#: mpulsweb/templates/tags/tags.mako:48
+#: mpulsweb/templates/tags/tags.mako:56
msgid "Rule-Check"
msgstr "Regelüberprüfungen"
Modified: base/trunk/mpulsweb/i18n/mpulsweb.pot
===================================================================
--- base/trunk/mpulsweb/i18n/mpulsweb.pot 2010-10-07 08:53:32 UTC (rev 3916)
+++ base/trunk/mpulsweb/i18n/mpulsweb.pot 2010-10-07 09:06:38 UTC (rev 3917)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: mpulsweb 2.0.0-pre\n"
"Report-Msgid-Bugs-To: EMAIL at ADDRESS\n"
-"POT-Creation-Date: 2010-10-06 15:56+0200\n"
+"POT-Creation-Date: 2010-10-07 11:02+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -896,6 +896,14 @@
msgid "The XML file has the version '%s', but supported is only version '%s'"
msgstr ""
+#: mpulsweb/model/phase.py:420
+msgid "Field is OK and requires no further editing"
+msgstr ""
+
+#: mpulsweb/model/phase.py:423
+msgid "Field is not OK and requires further editing"
+msgstr ""
+
#: mpulsweb/templates/base.mako:6 mpulsweb/templates/main.mako:191
msgid "main_formular_input_error"
msgstr ""
@@ -1988,7 +1996,7 @@
#: mpulsweb/templates/casemanagement/digest.mako:117
#: mpulsweb/templates/casemanagement/search.mako:77
-#: mpulsweb/templates/phase/phase.mako:141
+#: mpulsweb/templates/phase/phase.mako:144
msgid "Phase"
msgstr ""
@@ -2011,7 +2019,7 @@
msgstr ""
#: mpulsweb/templates/casemanagement/digest.mako:148
-#: mpulsweb/templates/phase/phase.mako:142
+#: mpulsweb/templates/phase/phase.mako:145
msgid "Duration in weeks"
msgstr ""
@@ -2545,19 +2553,19 @@
msgid "Not yet started"
msgstr ""
-#: mpulsweb/templates/phase/phase.mako:79 mpulsweb/templates/phase/phase.mako:113
+#: mpulsweb/templates/phase/phase.mako:80 mpulsweb/templates/phase/phase.mako:116
msgid "No required fields found"
msgstr ""
-#: mpulsweb/templates/phase/phase.mako:88 mpulsweb/templates/phase/phase.mako:90
+#: mpulsweb/templates/phase/phase.mako:89 mpulsweb/templates/phase/phase.mako:91
msgid "Start"
msgstr ""
-#: mpulsweb/templates/phase/phase.mako:120 mpulsweb/templates/phase/phase.mako:122
+#: mpulsweb/templates/phase/phase.mako:123 mpulsweb/templates/phase/phase.mako:125
msgid "Finish"
msgstr ""
-#: mpulsweb/templates/phase/phase.mako:136
+#: mpulsweb/templates/phase/phase.mako:139
msgid "Duration of phases"
msgstr ""
@@ -2716,11 +2724,11 @@
msgid "Evaluation"
msgstr ""
-#: mpulsweb/templates/tags/tags.mako:34
+#: mpulsweb/templates/tags/tags.mako:38
msgid "Validities"
msgstr ""
-#: mpulsweb/templates/tags/tags.mako:48
+#: mpulsweb/templates/tags/tags.mako:56
msgid "Rule-Check"
msgstr ""
Modified: base/trunk/mpulsweb/model/phase.py
===================================================================
--- base/trunk/mpulsweb/model/phase.py 2010-10-07 08:53:32 UTC (rev 3916)
+++ base/trunk/mpulsweb/model/phase.py 2010-10-07 09:06:38 UTC (rev 3917)
@@ -415,9 +415,15 @@
element_id)))
def get_link(self):
out = []
- style = self.is_ok() and "ok" or "error"
+ if self.is_ok():
+ style="ok"
+ atitle=_('Field is OK and requires no further editing')
+ else:
+ style="error"
+ atitle=_('Field is not OK and requires further editing')
out.append(tag("a", class_=style,
- href=self.get_url()))
+ href=self.get_url(),
+ title_=atitle))
out.append('%s' % self.label)
out.append('</a>')
return "".join(out)
More information about the Mpuls-commits
mailing list