Prev | Current Page 355 | Next

Rob Allen, Nick Lo, and Steven Brown

"Zend Framework in Action"


The German version of Places, including localized dates can be seen in Figure 14.2.
Licensed to Menshu You
Zend Framework in Action (Ch01) Manning Publications Co. 48
Figure 14.2 Using the locale-aware Zend_Date, we can display the date in the correct language
14.4 Summary
Zend_Locale and Zend_Translate help in making a multi-lingual, locale aware website much easier. Of course,
creating a website in multiple languages is not easy as care needs to be taken to ensure that the text fits in the
spaces provided and of course, you need to do translations that work!
Zend_Locale is the heart of localization with the Zend_Framework. It allows for normalizing numbers and
dates written in different formats so that they can be stored consistently and so used within the application.
Zend_Translate is used for translating text into a different language using the _() function. It supports multiple
input formats, including the widespread gettext() format, so that you can choose the most appropriate format
for your project. Small projects will use array and csv formats, whereas larger projects are more likely to use
gettext, Tmx or XmlTm. Through the flexibility of the Zend_Translate??™s adapter system, migrating from a
simpler system to a more robust one does not affect the main code base at all.


Pages:
343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367
botox Kraków wyświetlacz xperia Wczasy nad morzem baseny ogrodowe tłumacz niemieckiego