Prev | Current Page 330 | Next

Rob Allen, Nick Lo, and Steven Brown

"Zend Framework in Action"

However, for some locales, there are cultural issues to consider too. The most common are the
formatting of dates and currency. For dates, the most infamous issue is that the US uses mm/dd/yy whereas the
UK uses dd/mm/yy and hence it gets tricky to determine what date 02/03/08 actually is. Is it the 2nd March or
the 3rd February? Similarly, for currency, in France, they use the comma where the UK uses a decimal place
and they use a decimal place where we would use a comma. To make a French user feel at home, ?‚¬1,234.56
should be displayed as ?‚¬1 234,56.
The key controller on a computer system for this is called the locale. The locale is a string that defines the
current language and region used by the user. For example, the locale ???en_GB??? means English language, in the
GB region. Similarly, ???es_PR??? is Spanish language in Puerto Rico. Generally, for language localization, the
first part of the locale is used as it is rare to find a website that provides both US and UK English.
14.1.1 Translating languages
Translation of languages involves changes to both the HTML design and build of the website site and to the
PHP code that runs it. The most obvious change that??™s required is that every string displayed to the user has to
be in the correct language and so correct sizing of areas for text in the design is required.


Pages:
318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342
Athlete nieruchomości szczecin matchbox sklep wynajem mieszkań Kraków brak