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
-
Charles Brunet July 30th, 2009 @ 08:55 AM
- Assigned user set to Charles Brunet
- State changed from new to resolved
- Tag set to bug, i18n
I realized that most of the stuff already was done. I just had to change two lines of code.
-
Charles Brunet August 7th, 2009 @ 09:41 AM
- Milestone set to 5.0.3
[milestone:id#47011 bulk edit command]
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.
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.