agdsn / pycroft

The AG DSN management system
Apache License 2.0
19 stars 9 forks source link

Correct formatting of international addresses #351

Open lukasjuhrich opened 4 years ago

lukasjuhrich commented 4 years ago

Since DIN 5008 is the second most important norm in anyones life (next to ISO-8601), I'd opt to respect the rules in section 20.7.3 („Auslandsanschriften“), which requires setting everything starting from the city in uppercase:

Auslandsanschriften müssen in lateinischer Schrift und arabischen Ziffern, Bestimmungsort und Bestimmungsland mit Großbuchstaben geschrieben werden. Die Anordnung der Bestandteile der Anschrift und deren Schreibung sind – wenn möglich – der Absenderangabe des Partners zu entnehmen. Der Bestimmungsort ist nach Möglichkeit in der Sprache des Bestimmungslandes anzugeben (z. B. LIÈGE statt Lüttich, FIRENZE statt Florenz, BUCUREȘTI statt Bukarest, THESSALONIKI statt Saloniki); die Angabe des Bestimmungslandes steht in deutscher Sprache in der letzten Zeile der Anschrift [siehe Anhang D, u) bis z)].

Also, these rules should be included as hints in the GUI.

marcelb98 commented 4 years ago

The address formatting was done in aceffe5 Before the rules can be added to the UI, the UI for editing addresses has to be implemented.