Prev | Current Page 350 | Next

Rob Allen, Nick Lo, and Steven Brown

"Zend Framework in Action"

Every place featured on this site has been reviewed by people
like you, so you\'ll be able to make informed decisions with no marketing waffle!',
'Recent reviews' => 'Recent reviews',
);
And the equivalent file in German is shown in listing 14.15.
Listing 14.15: English translation file, en.php
$translationStrings = array(
'welcome'=>'Willkommen bei Places to take the kids! Diese Website wird Ihnen helfen,
zu planen ein guter Tag f??r Sie und Ihre Kinder. Jedem Ort auf dieser Website wurde vom Menschen
wie Sie, damit Sie in der Lage, fundierte Entscheidungen treffen k?¶nnen, ohne Marketing Waffel!',
'Recent reviews' => 'J??ngste Bewertungen',
);
Unfortunately, I can??™t vouch for the actual translation as I asked Google??™s translate system for it and I
doubt that it is as good as a human translator would have done. It is quite clear, when looking at listings 14.12
and 14.13 how easy array based translations are to create.
Similarly, we have access to the Zend_Translate object from within the action controller and so we can
translate those strings that are created at that level. This is most commonly used for the title string as this is
used in the outer site template, site.phtml and changes per action. Listing 14.16 shows how the About page??™s
title is created within the IndexController??™s aboutAction() function.


Pages:
338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362
pustaki szklane House Extension Kąty Rybackie noclegi kasyno Kołobrzeg