16,719
edits
Changes
→Patchs
* the state (at option)
* the country (at option). Ideally it should still take the country. It is understandable that this is tedious. ''Maybe do not enter the country if the genealogy is mostly of one country and seize enter the country for events outside the country's main Everyone will appreciate.''
If you have a place name like :
'''City, code, state, country''', you could try this patch on current ''Place completion tool'' for parsing place title on location fields :
1080a1081
+ code_translated = _('zip')
1091a1093
+ codegr = r'(?P<'+code_translated +r'>'
1100a1103,1106
+ ("citycodestatecountry", "City[,|.] Code[,|.] State[,|.] Country",
+ _("City[,|.] Code[,|.] State[,|.] Country")
+ , r'\s*'+citygr+r'.*?)\s*[.,]\s*'+codegr+r'.*?)\s*[.,]\s*'
+ +stategr+r'.*?)\s*[.,]\s*'+countrygr+r'.*?)\s*$'),