Portugal CIF

Contrib type: 
CIF
Status: 
Complete and working
Moderation: 
Committed to core
Latest version: 
beta1

Downloads

Compatibility: 
Ubercart 1.x

This is the CIF file for Portugal.

It has all the 18 main districts plus Azores and Madeira islands, so a total of 20 zones.

Some details:

Portugal zones:
http://en.wikipedia.org/wiki/ISO_3166-2:PT

Notes:

At the moment, the 3 letter city codes (abbreviations) may not be the correct ones.
If someone knows what they are, please msg me so i can update the CIF file.

PreviewAttachmentSize
portugal_620_1.cif2.42 KB
Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15459
Re: Portugal CIF

I'm curious why you went with the three letter abbreviations instead of the PT-## abbreviations. Are these not commonly used when addressing places in Portugal?

doomed@drupal.org's picture
Offline
Bug Finder
Joined: 04/05/2008
Juice: 334
Re: Re: Portugal CIF

Nopes, not really. The PT-xx is code is not used at all.

The 3 letter abbreviation is used quite frequently, but mostly by the mail services. I believe their machines put it automatically on all processed stamps.

I'll see if i can find more details.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15459
Re: Re: Re: Portugal CIF

If that's what the mail service uses, that's good enough for me. Eye-wink

doomed@drupal.org's picture
Offline
Bug Finder
Joined: 04/05/2008
Juice: 334
Re: Re: Re: Re: Portugal CIF

I would like to add that the 3 letter abbreviation is not something that is followed strictly.
I put it there because it was already on the CIF file i started editing from.

Officially, a Portuguese address is like this:

Example1:

Street address
Local Area
nnnn-nnn Area code
Country

Example2:

Rua das flores, 32, 1 Dt.
Laranjeiras
3132-110 Laranjeiras (<<<--- this is the postal code)
Portugal

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15459
Re: Re: Re: Re: Re: Portugal CIF

Are you saving this file in UTF-8 mode? When I test it on the Livetest, the special characters are showing up as ? and my IDE only shows little boxes. Smiling

doomed@drupal.org's picture
Offline
Bug Finder
Joined: 04/05/2008
Juice: 334
Re: Re: Re: Re: Re: Re: Portugal CIF

I used Dreamweaver CS3 to edit the file so i dunno. I checked the help file but it doesnt mention anything about UTF.

Would it help if i just open on notepad and "save" the file?

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6855
Re: Re: Re: Re: Re: Re: Re: Portugal CIF

It wouldn't actually. What you need is a text editor that can handle different character encodings. I hear Notepad2 is a pretty good one without an overload of features you'll never use. Of course, we use jEdit to write our code.

That said, Dreamweaver ought to have some kind of setting for the encoding. Actually finding it may be more trouble than it's worth, though.

doomed@drupal.org's picture
Offline
Bug Finder
Joined: 04/05/2008
Juice: 334
Re: Re: Re: Re: Re: Re: Portugal CIF

Thanks Lyle I followed your suggestion and got Notepad2 from http://www.flos-freeware.ch/notepad2.html

I saved the cif file in the UTF-8 encoding format and reuploaded here.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15459
Re: Re: Re: Re: Re: Re: Re: Portugal CIF

Excellent. This looks good to go to me... tested on the Livetest, committing to core. Let me know if it ever needs to be updated for some reason. Smiling