#8 ✓resolved
lux

Translation of formhelp

Reported by lux | July 6th, 2008 @ 06:06 PM | in 5.0.3 (closed)

Help text for forms should be translatable.

I have a suggestion. it would be to code formhelp stuff in PHP instead of adding js everywhere...

1- Add formhelp.js systematically in MailForm constructor instead of having to add it in every forms.

2- Add a $help attribute to MF_Widget. Modify MF_Widget so it automatically adds needed js code when $help attribute is set.

3- Use intl_get function when setting $help attribute. For example, given $w widget, you would add help like this:

$w->help = intl_get('My help text.');

4- Add an help attribute to settings.php form ini file. Automatically translate it when parsing the ini file.

What do you think about it? If you like it, I think I could implement it if you want.

Charles.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Sitellite web content management system.

People watching this ticket

Tags

Pages