In order to bring this all together, we are going to create the links that allow a user to select one of the three languages. Secondly, we are going to pass all the static template text into the i18N
helper.
The first part is straightforward and requires us to make a basic set of links for subnavigation style. In the indexSuccess.php
template located in the app/frontend/modules/vacancies/templates
folder, add the following code in bold:
<?php use_helper('Date') ?>
<div style="width: 100px; float:right">
<?php echo link_to(image_tag('/images/flags/en_GB.png'), '@vacancies?sf_culture=en_GB') ?>
<?php echo link_to(image_tag('/images/flags/en_AU.png'), '@vacancies?sf_culture=en_AU') ?>
<?php echo link_to(image_tag('/images/flags/fr_FR.png'), '@vacancies?sf_culture=fr_FR') ?>
</div>
We have added three links, one for each culture. Unlike the main navigation, we have small images representing...