|
| 1 | +from django.utils.translation import gettext_lazy as _ |
| 2 | + |
| 3 | +#: An alphabetical list of cities and counties for use as `choices` in a formfield. |
| 4 | +#: Based on the administrative divisions of Taiwan. |
| 5 | +#: https://en.wikipedia.org/wiki/List_of_administrative_divisions_of_Taiwan |
| 6 | +TW_ADMINISTRATIVE_DIVISION_CHOICES = ( |
| 7 | + ("changhua_county", _("Changhua County")), # 彰化縣 |
| 8 | + ("chiayi_city", _("Chiayi City")), # 嘉義市 |
| 9 | + ("chiayi_county", _("Chiayi County")), # 嘉義縣 |
| 10 | + ("hsinchu_city", _("Hsinchu City")), # 新竹市 |
| 11 | + ("hsinchu_county", _("Hsinchu County")), # 新竹縣 |
| 12 | + ("hualien_county", _("Hualien County")), # 花蓮縣 |
| 13 | + ("kaohsiung_city", _("Kaohsiung City")), # 高雄市 |
| 14 | + ("keelung_city", _("Keelung City")), # 基隆市 |
| 15 | + ("kinmen_county", _("Kinmen County")), # 金門縣 |
| 16 | + ("lienchiang_county", _("Lienchiang County")), # 連江縣 |
| 17 | + ("miaoli_county", _("Miaoli County")), # 苗栗縣 |
| 18 | + ("nantou_county", _("Nantou County")), # 南投縣 |
| 19 | + ("new_taipei_city", _("New Taipei City")), # 新北市 |
| 20 | + ("penghu_county", _("Penghu County")), # 澎湖縣 |
| 21 | + ("pingtung_county", _("Pingtung County")), # 屏東縣 |
| 22 | + ("taichung_city", _("Taichung City")), # 台中市 |
| 23 | + ("tainan_city", _("Tainan City")), # 台南市 |
| 24 | + ("taipei_city", _("Taipei City")), # 台北市 |
| 25 | + ("taitung_county", _("Taitung County")), # 台東縣 |
| 26 | + ("taoyuan_city", _("Taoyuan City")), # 桃園市 |
| 27 | + ("yilan_county", _("Yilan County")), # 宜蘭縣 |
| 28 | + ("yunlin_county", _("Yunlin County")), # 雲林縣 |
| 29 | +) |
0 commit comments