How to do Simple Localization Testing - CakePHP
===

I want to be able to test my cakephp web page using the localization features.

I use the translate function __() and I also use the date and time function: `toLocaleString()`

I wanted to know how can I test the translation and localization in a simple way.

I know that `toLocaleString()` will output the date and time in the local format.

I tried using the following code in my controller's beforeFilter():

    $this->Session->write('Config.langauge', 'ger');
    Configure::write('Config.language', 'fre');

The above two lines of code didn't work.
This did not work either:

    setlocale(LC_ALL, 'de', 'ge');



I am using Ubuntu 10.04 and in a terminal when I type `locale -a`,
I only get "en_xx" output for the different kinds of enlish langauge formats.

I think this is one of the problems for why setting the locale doesn't work.
How would I be able to get more locales installed?

As for testing, the date and time should work once the locale is set, but for the translate functions, how do I test those?

Thanks