1.1 --- a/imiptools/profile.py Wed Nov 04 23:35:16 2015 +0100
1.2 +++ b/imiptools/profile.py Thu Nov 05 00:58:02 2015 +0100
1.3 @@ -27,6 +27,10 @@
1.4 import codecs
1.5 import pytz
1.6
1.7 +# Fake gettext method for strings to be translated later.
1.8 +
1.9 +_ = lambda s: s
1.10 +
1.11 def identity_dict(l):
1.12 return dict([(i, i) for i in l])
1.13
1.14 @@ -56,45 +60,45 @@
1.15 known_key_choices = {
1.16 "TZID" : identity_dict(pytz.all_timezones),
1.17 "add_method_response" : {
1.18 - "add" : "Add events",
1.19 - "ignore" : "Ignore requests",
1.20 - "refresh" : "Ask for refreshed event details"
1.21 + "add" : _("Add events"),
1.22 + "ignore" : _("Ignore requests"),
1.23 + "refresh" : _("Ask for refreshed event details"),
1.24 },
1.25 "event_refreshing" : {
1.26 - "never" : "Do not respond",
1.27 - "always" : "Always respond"
1.28 + "never" : _("Do not respond"),
1.29 + "always" : _("Always respond"),
1.30 },
1.31 "freebusy_bundling" : {
1.32 - "never" : "Never",
1.33 - "always" : "Always"
1.34 + "never" : _("Never"),
1.35 + "always" : _("Always"),
1.36 },
1.37 "freebusy_messages" : {
1.38 - "none" : "Do not notify",
1.39 - "notify" : "Notify"
1.40 + "none" : _("Do not notify"),
1.41 + "notify" : _("Notify"),
1.42 },
1.43 "freebusy_publishing" : {
1.44 - "publish" : "Publish",
1.45 - "no" : "Do not publish"
1.46 + "publish" : _("Publish"),
1.47 + "no" : _("Do not publish"),
1.48 },
1.49 "freebusy_sharing" : {
1.50 - "share" : "Share",
1.51 - "no" : "Do not share"
1.52 + "share" : _("Share"),
1.53 + "no" : _("Do not share"),
1.54 },
1.55 "incoming" : {
1.56 - "message-only" : "Original message only",
1.57 - "message-then-summary" : "Original message followed by a separate summary message",
1.58 - "summary-then-message" : "Summary message followed by the original message",
1.59 - "summary-only" : "Summary message only",
1.60 - "summary-wraps-message" : "Summary message wrapping the original message"
1.61 + "message-only" : _("Original message only"),
1.62 + "message-then-summary" : _("Original message followed by a separate summary message"),
1.63 + "summary-then-message" : _("Summary message followed by the original message"),
1.64 + "summary-only" : _("Summary message only"),
1.65 + "summary-wraps-message" : _("Summary message wrapping the original message"),
1.66 },
1.67 "organiser_replacement" : {
1.68 - "any" : "Anyone",
1.69 - "attendee" : "Existing attendees only",
1.70 - "never" : "Never allow organiser replacement"
1.71 + "any" : _("Anyone"),
1.72 + "attendee" : _("Existing attendees only"),
1.73 + "never" : _("Never allow organiser replacement"),
1.74 },
1.75 "participating" : {
1.76 - "participate" : "Participate",
1.77 - "no" : "Do not participate"
1.78 + "participate" : _("Participate"),
1.79 + "no" : _("Do not participate"),
1.80 }
1.81 }
1.82