[Mpuls-commits] r4349 - in waska/trunk/waskaweb: i18n i18n/de/LC_MESSAGES templates/casemanagement

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Dec 9 15:50:50 CET 2010


Author: torsten
Date: 2010-12-09 15:50:50 +0100 (Thu, 09 Dec 2010)
New Revision: 4349

Modified:
   waska/trunk/waskaweb/i18n/de/LC_MESSAGES/waskaweb.po
   waska/trunk/waskaweb/i18n/waskaweb.pot
   waska/trunk/waskaweb/templates/casemanagement/digest_body.mako
Log:
Issue821


Modified: waska/trunk/waskaweb/i18n/de/LC_MESSAGES/waskaweb.po
===================================================================
--- waska/trunk/waskaweb/i18n/de/LC_MESSAGES/waskaweb.po	2010-12-09 14:48:38 UTC (rev 4348)
+++ waska/trunk/waskaweb/i18n/de/LC_MESSAGES/waskaweb.po	2010-12-09 14:50:50 UTC (rev 4349)
@@ -8,7 +8,7 @@
 "Project-Id-Version: waskaweb 1.0\n"
 "Report-Msgid-Bugs-To: EMAIL at ADDRESS\n"
 "POT-Creation-Date: 2010-11-10 14:03+0100\n"
-"PO-Revision-Date: 2010-11-10 14:08+0100\n"
+"PO-Revision-Date: 2010-12-09 15:30+0100\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"
@@ -99,7 +99,12 @@
 msgid "cm_header_digest_youth"
 msgstr ""
 
-#: waskaweb/templates/casemanagement/digest_body.mako:17
+#: waskaweb/templates/casemanagement/digest_body.mako:14
+#, python-format
+msgid "Age on first contact: %s years"
+msgstr "Alter bei dem Erstgespräch: %s Jahre"
+
+#: waskaweb/templates/casemanagement/digest_body.mako:21
 msgid "Angaben zum Erziehungsberechtigten"
 msgstr ""
 

Modified: waska/trunk/waskaweb/i18n/waskaweb.pot
===================================================================
--- waska/trunk/waskaweb/i18n/waskaweb.pot	2010-12-09 14:48:38 UTC (rev 4348)
+++ waska/trunk/waskaweb/i18n/waskaweb.pot	2010-12-09 14:50:50 UTC (rev 4349)
@@ -8,7 +8,7 @@
 msgstr ""
 "Project-Id-Version: waskaweb 1.0\n"
 "Report-Msgid-Bugs-To: EMAIL at ADDRESS\n"
-"POT-Creation-Date: 2010-11-23 13:02+0100\n"
+"POT-Creation-Date: 2010-12-09 15:29+0100\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"
@@ -99,7 +99,12 @@
 msgid "cm_header_digest_youth"
 msgstr ""
 
-#: waskaweb/templates/casemanagement/digest_body.mako:17
+#: waskaweb/templates/casemanagement/digest_body.mako:14
+#, python-format
+msgid "Age on first contact: %s years"
+msgstr ""
+
+#: waskaweb/templates/casemanagement/digest_body.mako:21
 msgid "Angaben zum Erziehungsberechtigten"
 msgstr ""
 

Modified: waska/trunk/waskaweb/templates/casemanagement/digest_body.mako
===================================================================
--- waska/trunk/waskaweb/templates/casemanagement/digest_body.mako	2010-12-09 14:48:38 UTC (rev 4348)
+++ waska/trunk/waskaweb/templates/casemanagement/digest_body.mako	2010-12-09 14:50:50 UTC (rev 4349)
@@ -9,7 +9,11 @@
       % if field.name in ['kundennummer', 'name_1', 'vorname_1', 'geburtsdatum', 'strasse', 'strassenr', 'plz', 'wohnort', 'vorwahl', 'telefon_1', 'mobiltelefon', 'email']:
         <tr class="${num % 2 and 'hl' or ''}">
           <td class="label">${c.case.get_description(field.name)}</td>
-          <td>${h.convertForDigest(c.case.get_value(field.name))| F.NA}</td>
+          <td>${h.convertForDigest(c.case.get_value(field.name))| F.NA}
+            % if field.name == 'geburtsdatum' and c.case.first_meeting:
+            (${_('Age on first contact: %s years') %h.get_age(c.case.first_meeting - c.case.get_value(field.name)) | F.NA})
+            % endif
+          </td>
         </tr>
       %endif 
     % endfor
@@ -19,7 +23,8 @@
     % for num, field in enumerate(c.case.get_digest_fields()):
       % if field.name in ['name_2', 'vorname_2', 'vorwahl_1', 'telefon_1_1', 'mobiltelefon_1', 'email_1']:
         <tr class="${num % 2 and 'hl' or ''}">
-          <td class="label">${c.case.get_description(field.name)}</td>
+          <td class="label">${c.case.get_description(field.name)}
+          </td>
         <td>${c.case.get_value(field.name)| F.NA}</td>
         </tr>
       %endif 



More information about the Mpuls-commits mailing list