- Timestamp:
- 23 Mar 2012, 02:58:40 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/utils/country_helpers.py
r7963 r7966 44 44 Some special cases are handled as well ('of', 'the', etc.) 45 45 """ 46 name = name.replace('(', '( ') # handle letters following brackets 46 47 name = ' '.join([x.capitalize() for x in name.split(' ')]) 48 name = name.replace('( ', '(') 47 49 for term in ['Of', ' And', 'The']: 48 50 name = name.replace(term, term.lower()) 49 51 name = name.replace('U.s.', 'U.S.') 52 name = name.replace("D'i", "d'I") # Cote d'Ivoire 50 53 return name 51 54
Note: See TracChangeset for help on using the changeset viewer.