Prev | Current Page 341 | Next

Rob Allen, Nick Lo, and Steven Brown

"Zend Framework in Action"


To solve these problems, the code for the language of choice should be held within the URL and there are
two places we can put it: the domain or the path. To use the domain, we would need to buy the relevant
domains, such as placestotakethekids.de and placestotakethekids.fr etc. These country specific domains are a
very easy solution and for a commercial operation can show your customers that you are serious about doing
business in their country. Problems that may arise are the domain name may not be available for the country of
choice (e.g. apple.co.uk is not owned by Apple Inc.) and also for some country specific domains you need to
have proof of business incorporation within that country in order to purchase the domain name.. The
alternative is to have the language code as part of the path, such as www.placestotakethekids.com/fr for French
and www.placestotakethekids.com/de for the German language. We shall use this approach.
Licensed to Menshu You
Zend Framework in Action (Ch01) Manning Publications Co. 41
As we wish to use full locales for each language code we need to map from the language code used in the
URL to the full locale code. For example, /en will be mapped to en_GB, /fr to fr_FR, and so on for all
supported languages.


Pages:
329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353
Okna PCV Wrocław Kurs architektury wyprawy 47lw570s stolarka aluminiowa częstochowa