meeting minutes: translate state, improve layout

This commit is contained in:
Helmut Merz 2012-05-08 07:45:31 +02:00
parent 0a72c9bda9
commit 095fd9b032
4 changed files with 23 additions and 5 deletions

Binary file not shown.

View file

@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: $Id$\n"
"POT-Creation-Date: 2007-05-22 12:00 CET\n"
"PO-Revision-Date: 2012-05-06 12:00 CET\n"
"PO-Revision-Date: 2012-05-08 12:00 CET\n"
"Last-Translator: Helmut Merz <helmutm@cy55.de>\n"
"Language-Team: loops developers <helmutm@cy55.de>\n"
"MIME-Version: 1.0\n"
@ -278,6 +278,12 @@ msgstr "Aufgabe"
msgid "Who/When"
msgstr "Wer? Bis wann?"
msgid "Who?"
msgstr "Wer?"
msgid "When?"
msgstr "Wann?"
msgid "Favorites"
msgstr "Lesezeichen"

View file

@ -18,17 +18,24 @@
<tr>
<th i18n:translate=""
style="border: 1px solid grey">Task/Action</th>
<th colspan="3" style="border: 1px solid grey"
i18n:translate="">Who/When</th>
<th style="border: 1px solid grey"
i18n:translate="">Who?</th>
<th style="border: 1px solid grey"
i18n:translate="">When?</th>
<th style="border: 1px solid grey"
i18n:translate=""></th>
</tr>
<tal:task repeat="row results">
<tr tal:repeat="colname python: ('title', 'description',)">
<td colspan="4" style="border: 1px solid grey"
<td style="border: 1px solid grey"
tal:define="col report/fields/?colname"
tal:attributes="class col/cssClass">
<metal:column use-macro="python:
reportView.getColumnRenderer(col)" />
</td>
<td style="border: 1px solid grey" />
<td style="border: 1px solid grey" />
<td style="border: 1px solid grey" />
</tr>
<tal:workitems define="col report/fields/workItems">
<metal:column use-macro="python:

View file

@ -39,6 +39,11 @@ from loops.expert.report import ReportInstance
from loops import util
class StateField(Field):
def getDisplayValue(self, row):
value = self.getValue(row)
return util._(value)
class DateField(Field):
part = 'date'
@ -128,7 +133,7 @@ duration = DurationField('duration', u'Duration',
effort = DurationField('effort', u'Effort',
description=u'The effort of the work.',
executionSteps=['output', 'totals'])
state = Field('state', u'State',
state = StateField('state', u'State',
description=u'The state of the work.',
cssClass='center',
executionSteps=['query', 'output'])