Localized label for textbox title in a form
Hello,
Is it possible to create localized label in multiple langages and use it as title for a textbox field in a form ?
Thanks for your help
If i correct understood you question, sitefinity supports it out of the box.
You can create form, translate it to another language and rename labels.
I attached example with EN ans ES form translation
Thank you for your answer. Yes it is a solution but is there another way to do that with resource file ? Without creating mulitple forms in each langages ?
Hi,
Out of the box this is not possible.
You could however create a custom form field where you have total control over and implement something like for example:;
...
public
class
CustomField : FieldControl, IFormFieldControl
#region Constructor
/// <summary>
/// Initializes a new instance of the CustomField class.
/// </summary>
public
CustomField()
var resources = ResourceManager.GetManager();
this
.Title = resources.GetResourceOrEmpty(Thread.CurrentThread.CurrentCulture,
"FormResources"
,
"myCustomFormField"
).Value;
...