Ticket #3069: datetime_gettext.py

File datetime_gettext.py, 1.8 KB (added by Bastian Kleineidam <calvin@…>, 9 years ago)

dummy translations for datetime error messages

1# -*- coding: utf-8 -*-
3if False:
4    # Add translations for datetime errors
5    _ = lambda x: x
6    _("days=%d; must have magnitude <= %d")
7    _("year is out of range")
8    _("month must be in 1..12")
9    _("day is out of range for month")
10    _("hour must be in 0..23")
11    _("minute must be in 0..59")
12    _("second must be in 0..59")
13    _("microsecond must be in 0..999999")
14    _("date value out of range")
15    _("tzinfo argument must be None or of a tzinfo subclass, not type '%s'")
16    _("tzinfo.%s() must return a whole number of minutes")
17    _("tzinfo.%s() must return None or timedelta, not '%s'")
18    _("tzinfo.%s() returned %d; must be in -1439 .. 1439")
19    _("tzinfo.tzname() must return None or a string, not '%s'")
20    _("year=%ld is before 1900; the datetime strftime() methods require year >= 1900")
21    _("strftime format ends with raw %")
22    _("tzname.replace() did not return a string")
23    _("can't compare %s to %s")
24    _("normalized days too large to fit in a C int")
25    _("unsupported type for timedelta %s component: %s")
26    _("goofy result from PyOS_snprintf")
27    _("timestamp out of range for platform localtime() function")
28    _("ordinal must be >= 1")
29    _("a tzinfo subclass must implement %s()")
30    _("fromutc: argument must be a datetime")
31    _("fromutc: dt.tzinfo is not self")
32    _("fromutc: non-None utcoffset() result required")
33    _("fromutc: non-None dst() result required")
34    _("fromutc: tz.dst() gave inconsistent results; cannot convert")
35    _("bad tzinfo state arg")
36    _("can't compare offset-naive and offset-aware times")
37    _("timestamp out of range for platform localtime()/gmtime() function")
38    _("unexpected value from time.strptime")
39    _("can't subtract offset-naive and offset-aware datetimes")
40    _("can't compare offset-naive and offset-aware datetimes")
41    _("astimezone() cannot be applied to a naive datetime")
Back to Top