summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-07-10 05:17:01 -0400
committerThomas Bruederli <bruederli@kolabsys.com>2014-07-10 05:17:01 -0400
commit6b3df45c2cc13f5fcc3320404881cbff0a8f012e (patch)
tree45e80f4768c456f75d772699f2ca77bc31399851
parentc395789e553531a4a565bcc61a422255ef5385b4 (diff)
downloadpykolab-6b3df45c2cc13f5fcc3320404881cbff0a8f012e.tar.gz
Use deferred translations
-rw-r--r--pykolab/xml/attendee.py27
1 files changed, 14 insertions, 13 deletions
diff --git a/pykolab/xml/attendee.py b/pykolab/xml/attendee.py
index 220ab8c..a01d955 100644
--- a/pykolab/xml/attendee.py
+++ b/pykolab/xml/attendee.py
@@ -1,27 +1,28 @@
import kolabformat
from pykolab.translate import _
+from pykolab.translate import N_
from contact_reference import ContactReference
participant_status_labels = {
- "NEEDS-ACTION": _("Needs Action"),
- "ACCEPTED": _("Accepted"),
- "DECLINED": _("Declined"),
- "TENTATIVE": _("Tentatively Accepted"),
- "DELEGATED": _("Delegated"),
- "COMPLETED": _("Completed"),
- "IN-PROCESS": _("In Process"),
+ "NEEDS-ACTION": N_("Needs Action"),
+ "ACCEPTED": N_("Accepted"),
+ "DECLINED": N_("Declined"),
+ "TENTATIVE": N_("Tentatively Accepted"),
+ "DELEGATED": N_("Delegated"),
+ "COMPLETED": N_("Completed"),
+ "IN-PROCESS": N_("In Process"),
# support integer values, too
- kolabformat.PartNeedsAction: _("Needs Action"),
- kolabformat.PartAccepted: _("Accepted"),
- kolabformat.PartDeclined: _("Declined"),
- kolabformat.PartTentative: _("Tentatively Accepted"),
- kolabformat.PartDelegated: _("Delegated"),
+ kolabformat.PartNeedsAction: N_("Needs Action"),
+ kolabformat.PartAccepted: N_("Accepted"),
+ kolabformat.PartDeclined: N_("Declined"),
+ kolabformat.PartTentative: N_("Tentatively Accepted"),
+ kolabformat.PartDelegated: N_("Delegated"),
}
def participant_status_label(status):
- return participant_status_labels[status] if participant_status_labels.has_key(status) else status
+ return _(participant_status_labels[status]) if participant_status_labels.has_key(status) else status
class Attendee(kolabformat.Attendee):