Making an app easy to translate and could show it in different languages is a simple task in CakePHP, CakePHP brings a tool and a set of functions that help the developer on this job
The first that has to be done is to use the function __() when writing strings that we want to be translate. this function has the next params:
__($stringToTransalte, $boolean);
$stringToTranslate: is the string we want to be translated
$boolean: indicate whether the string is only returned or also echo, false to echo the string
The first that has to be done is to use the function __() when writing strings that we want to be translate. this function has the next params:
__($stringToTransalte, $boolean);
$stringToTranslate: is the string we want to be translated
$boolean: indicate whether the string is only returned or also echo, false to echo the string