> > Now, to support internationalization here, I see two options: > > - I implement a function which returns the desired predefined mapping, > according to the language of the user. How can I know this? How does the T > operator know this? > - I walk the list of ISO country codes applying the T operator to return > the mapping. >
Can't you just do:
ISO_COUNTRY_CODES_MAPPING = {
'DE': T('Germany'),
'ES': T('Spain'),
'IT': T('Italy'),
'US': T('United States')
}
--

