Hi there I haven't read the article, so I am not sure whether this fits in with whatever the article says. I always use utf-8 as character encoding and never had any troubles with Cake localisation.
In the views you simply use the function __() (or one of the other translation functions) to get the translations of your messages. Just remember to enable l10n in the corresponding controllers. The models are a bit more complicated, as you cannot call a function in the declaration of a class member (the $validate array). I simply gave the appModel a function loadValidation which is called in the constructor. This loadValidation() function then fills the class member $validate with the validation array. Please note that I had to load L10n already in the bootstrap, as otherwise the error messages always appear in the default language (english). I believe this is because the models are loaded before the controllers, but I am not sure. I use Cake 1.2.0.5427alpha Good luck Claudia On Sep 17, 2:28 am, cem <[EMAIL PROTECTED]> wrote: > Hi ; > I am reading the localization article in the cakePHP . And in that > article it says that I have to include the uses('L10n'); in the > controllers I want to use . But I want to change the validation errors > in the models and some messages in the views what should I do ? > > The second question about that is it is using the ISO639-2 character > encoding . What should I put in the doctype of my default.ctp ? Can > anyone give me an example of Doctypes in Cakephp ? For various > Languages please ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---