Opened 10 years ago

Closed 10 years ago

#3194 closed enhancement (wontfix)

Telephone and City fields should have multiple locale specific formats

Reported by: voltron Owned by: hugo
Component: Internationalization Version:
Severity: normal Keywords:
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Hi There!

I think that the phone and city fields should extendable, something like models.TelephoneField("DE", format), DE is the international abbreviation for the Country Germany, format being a a format string, for example "(%i %i %i)%i"

Thanks! Kepp up the great work!

Change History (2)

comment:1 Changed 10 years ago by mir@…

Component: Database wrapperInternationalization
Owner: changed from Adrian Holovaty to hugo
Summary: Telephone and City fieldsTelephone and City fields should have multiple locale specific formats
Triage Stage: UnreviewedDesign decision needed

comment:2 Changed 10 years ago by Malcolm Tredinnick

Resolution: wontfix
Status: newclosed

Even within a given country, there isn't really a uniform way of expression things like phone numbers, so each option would have to be a number of choices. This rapidly gets unwieldy to maintain. If somebody wants a particular version, it's only validator away, so is fairly easy to write on a case-by-case basis.

Short version: at the moment, we won't be implementing this. If somebody or a group of people were really enthusiastic and implemented a fairly broad coverage of these sorts of things for many locales, we would be happy to point people towards it (or even maybe host it eventually).

Note: See TracTickets for help on using tickets.
Back to Top