[Solar-talk] Country list

Antti Holvikari anttih at gmail.com
Tue Oct 17 14:52:49 PDT 2006


On 10/18/06, Paul M Jones <pmjones at ciaweb.net> wrote:
>
> On Oct 17, 2006, at 4:35 PM, Antti Holvikari wrote:
>
> > On 10/18/06, Paul M Jones <pmjones at ciaweb.net> wrote:
> >> On Oct 17, 2006, at 4:21 PM, Antti Holvikari wrote:
> >>
> >>> I need to store a list of countrys somewhere so that I can access it
> >>> almost from everywhere. It should be in the form of:
> >>>
> >>> array(
> >>>     'FI' => 'Finland',
> >>>     ....
> >>> );
> >>>
> >>> Where do you think I should store it?
> >>
> >> Seems like it'd be perfect as Solar/Locale/xx_XX.php array entries.
> >> I wonder if the code should be prefixed; e.g.,  'COUNTRY_FI' =>
> >> 'Finland' ?
> >>
> >>
> >>> Ps. Do you know where I could copy&paste a country list?
> >>
> >> This seems authoritative:
> >>
> >> http://www.iso.org/iso/en/prods-services/iso3166ma/02iso-3166-code-
> >> lists/list-en1.html
> >
> > But how will I fetch the whole list then? :-)
>
> Hm, that's a good question.  :-(

:-)

I already started to play with TextMate's macros to get the list into
the locale format. If we decide to put them in the locale file just
say it and I'll do the hard work.


-- 
Antti Holvikari <http://phphalo.com>


More information about the solar-talk mailing list