Address Field Belgian Support

jpoesen@drupal.org - June 25, 2007 - 06:05
Project:Address field for CCK
Version:5.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:rconstantine
Status:closed
Description

I've created cck_address_belgium based on cck_address_canada. I've tested postal code validation and added the provinces.

However, I'm not sure how to proceed on the locales. I used en_US, but ideally it should be nl_BE and fr_BE, but those resulted in "unknown locale" errors. Currently the province names are entered in Dutch while the locale is set to en_US. I'll change this if you can point out to me how to proceed.

Next up is country support for The Netherlands.

AttachmentSize
cck_address_belgium-5.x-1.0.tar_.gz2.49 KB

#1

rconstantine - June 25, 2007 - 20:45

locales are tricky because the user has to have those locales installed and enabled on their computer. it's an OS thing, not a web or drupal thing. so, if you're running windows for example, go to start->help and do a search for locale settings. there should be instructions for how to enable more locales. at least, that's what I did to get french to work on the canadian module. using locales allows any crazy (non-english) characters to be validated correctly. presumably, someone living in a particular country will already have these locales enabled when they installed.

the only flaw i see in the way i've done this is in the case where someone in one country wants to enter characters from another (as you did in testing). i'm not sure of a good way to work around this.

did i not explain any of this in the readme? let me know, and if not, i'll add it. i got your email and answered some of your other questions there.

#2

toma - August 13, 2007 - 18:51

did you a french adress to share please !!

#3

rconstantine - August 16, 2007 - 01:45

@jpoesen, if you get CVS access here on Drupal.org, I can give you access to the new project I started here: http://drupal.org/project/cck_address_extensions

I added your module and the one for Mexico there.

#4

rconstantine - August 16, 2007 - 01:45
Assigned to:Anonymous» rconstantine
Status:needs review» fixed

#5

Anonymous - August 30, 2007 - 01:48
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.