I'm working on a bilingual web application (Englisch (primary) and German (secondary)).
The translation/internationalization is done this way:
In my view I have:
<?php
if($user['User']['isLocked'] == '1'){
echo __('yes');
}else{
echo __('no');
}?>
I'm using pot files. In the German folder inside the pot file I have translated "yes" with "ja" and "no" with "nein" (according to http://book.cakephp.org/2.0/en/console-and-shells/i18n-shell.html). This is working perfectly.
On the other hand the translation of buttons doesn't work at all.
In my view:
<?php
echo $this->Html->Link(
__('Edit'), array('action' => 'edit', $user['User']['id']), array('class' => 'button')
);
?>
I want "Edit" to become "Bearbeiten". Therefore the pot file was updated. But somehow the view still displays the English text instead of the German text. So this process doesn't work for buttons. What can I do?