Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Internationalisation (I18N) » translating fieldnames in errormessages
translating fieldnames in errormessages [message #714] Mon, 26 March 2007 07:43 Go to previous message
janalwin is currently offline  janalwin
Messages: 17
Registered: May 2006
Location: Groningen
Junior Member
The fieldnames that appear in the errors from the validation-class aren't translated at the moment. You get the name of the databasefield.

For example a dutch user will get an english name in the error and that can be confusing.

I changed the validationclass in a few places in this way:

$translated_fieldname=getLanguageText($fieldname);
$this->errors[$fieldname] = getLanguageText('sys0021', $translated_fieldname, $size);


Now I can put the translations of the fieldnames in the language file and the problem is solved.

Maybe something to integrate in the next release? Or is there a better solution?
 
Read Message
Read Message
Read Message
Previous Topic: Running Asian Scripts in Radicore
Next Topic: Help with internationalisation please
Goto Forum:
  


Current Time: Thu Oct 31 18:55:32 EDT 2024

Total time taken to generate the page: 0.01003 seconds