1try: 2 from django.utils.translation import ugettext_lazy as _ 3except ImportError: # pragma: no cover 4 # Allows this module to be executed without Django installed. 5 def _(x): 6 return x 7 8 9class CountriesBase(object): 10 COMMON_NAMES = { 11 "BN": _("Brunei"), 12 "BO": _("Bolivia"), 13 "GB": _("United Kingdom"), 14 "IR": _("Iran"), 15 "KP": _("North Korea"), 16 "KR": _("South Korea"), 17 "LA": _("Laos"), 18 "MD": _("Moldova"), 19 "MK": _("Macedonia"), 20 "RU": _("Russia"), 21 "SY": _("Syria"), 22 "TW": _("Taiwan"), 23 "TZ": _("Tanzania"), 24 "VE": _("Venezuela"), 25 "VN": _("Vietnam"), 26 } 27 28 OLD_NAMES = { 29 "CZ": [_("Czech Republic")], 30 } 31 32 def __getstate__(self): 33 return None 34