Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Let's add address handler for Estonia to AF/DC.
Comment | File | Size | Author |
---|---|---|---|
#10 | estonia-after.png | 50.38 KB | bojanz |
#10 | estonia-before.png | 32.49 KB | bojanz |
#2 | address_handler_for_ee-1171454-2.patch | 3.36 KB | tormi |
#1 | address_handler_for_ee-1171454-1.patch | 3.32 KB | tormi |
Comments
Comment #1
tormiHere's the patch. Noticed that
includes/addressfield_form_it.inc
was missing from addressfield.info, added that too.Comment #2
tormi#1 has some parsing errors, sry about that;)
Comment #3
tormiNeed to add addressfield-formatter--EE.tpl.php as well.
Comment #4
Damien Tournoud CreditAttribution: Damien Tournoud commentedThe
-reloaded
branch has been merged. It comes with reasonable defaults for most countries in the world, including Estonia.According to the UPU it doesn't seem that it is customary to use the province name in Estonia's addresses. The default for Poland is thus not to have a state field. The design is extensible so this can be added if necessary.
Comment #5
tormiThanks for the work done in
- reloaded
branch, I really appreciate it! However, I think it would be good idea to provide some additional address templating possibilities in addition toaddress.inc
so one can store it's customized address format without hacking address.inc.For example, if I'd like to complement Estonian postal address with counties list specified in UPU database, then where would be the safe place to store that code?
Comment #6
UrmasZ CreditAttribution: UrmasZ commentedThis default form is not ok.
Yes, for large places there is no need for counties, but for small places they are "must have". To add counties to address is common here. And field Address 2 is just confusing. There is no need for that. I really really dislike this default form.
This form should be something like that:
Name
Organization
Street, house - apartment nr.
City
Postal code, County
Country
And counties should be select list.
Comment #7
j0rd CreditAttribution: j0rd commentedThis is a duplicate of
#1829900: [meta] Address Field 2.x needs pluggable administrative areas and an actual API
If you think so to, please close your ticket.
Comment #8
rszrama CreditAttribution: rszrama commentedComment #9
kaido.toomingas CreditAttribution: kaido.toomingas commentedhttps://drupal.org/project/addressfield_estonia -- Showcase how to add/change handler.
Comment #10
bojanz CreditAttribution: bojanz commentedI've just done research on Estonia, Latvia, Lithuania, and committed the following changes:
I've also committed the administrative areas for Estonia: http://cgit.drupalcode.org/addressfield/commit/?id=303e984
Opened an issue discussing these changes in Google's dataset: https://github.com/googlei18n/libaddressinput/issues/64
Attaching a before and after picture.
Comment #11
kaido.toomingas CreditAttribution: kaido.toomingas commentedWoow Huge Like