svn: r17067
This commit is contained in:
Craig J. Anderson
2011-04-06 20:07:28 +00:00
parent 168b49d217
commit 4f076b9de7
3 changed files with 10 additions and 13 deletions

View File

@@ -269,18 +269,15 @@ class DateFormat(GenericFormat):
def modifier():
print "hi"
ui_mods = [_(""), _("before"), _("after"), _("about"),
_(""), _(""), _("")]
#ui_mods taken from date.py def lookup_modifier(self, modifier):
ui_mods = ["", _("before"), _("after"), _("about"),
"", "", ""]
return ui_mods[date.get_modifier()].capitalize()
def modifier_up():
return modifier.upper()
code = "ymdMoO"
upper = ""
function = [year, month, day, month_up, modifier, modifier_up]
code = "ymdMo"
upper = "O"
function = [year, month, day, month_up, modifier]
return self.generic_format(date, code, upper, function)