I have found a quick solution for now. Do let me know if there is a better/quicker way.
To get the browser based language locale (eg en_GB, nl_BE) I use the Zend Locale library. With this info I look up the code_b (eg. eng, dut) in CakePHP's L10n library and it's done. On Oct 13, 5:18 pm, MissYeh <[email protected]> wrote: > Instead of creating my own multi table, I figured that someone else > had to deal with this before. > > I'm working with localecode_bfor locale. > > Based on visitor's IP address I have the country name/code, eg: > > $userCountry = array( > 'NL' => 'The Netherlands' > ); > > Thecode_bfor NL is 'dut'. The list of ISO_639-1 codes doesn't > mention the country name/code. How do I easily connect languagecode_b'swith > country names/codes? As 1 country can speak multiple > languages. And 1 language can be spoken in multiple countries. > > I googled without luck. Does anyone know where I can find an existing > datasource/tutorial about this? Or an existing table I can use. > > Would require a lot of time to create this database myself (since > there are many countries and many languages) and I am sure I am not > the first person ever to need this :) > > Kana --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
