Developer forum

Forum » Development » Translation problems

Translation problems


Reply
I've got two questions:

1. Where can I translate the FormValidationError.message in my UserManagement user_create template?

2. Is is possible to translate the labels of a form, generated with the Datamanagement Forms module? If so, where can I do that?

Replies

 
Nicolai Høeg Pedersen
Reply
It is not possible to translate the error messages from usermanagement. You will have to do some kind of JS translation in the template i'm affraid.

To change the lable of a field in data list based forms, go to modules, data list, forms tree node, right click the form and choose edit and change the labels in the label column.
 
Reply
I don't want to change the labels, because that would change the labels for all my language layers. I just want to translate the labels for my second language. Is that even possible or do I have to make a form for every language layer?
   
Nicolai Høeg Pedersen
Reply
I bugged the problem with the missing possibility to translate the error messages. It has bugnumber 5282 and is marked for release with next service release (19.1.1.0) at the end of august.
 
Reply
Thanx!
 
Reply
m.lourens: Did you ever find out if it is possible to translate the labels for form fields in the DataManagement module?

I can't find out how to do it, since the fields aren't hardcoded into the template, but are generated dynamically.
 
Nicolai Høeg Pedersen
Reply
The only option is to hardcode the labels into the template. Not using the loop of fields, but using the input type field tags one by one...

 

You must be logged in to post in the forum