Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Translation of formhelp

#8

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.

Reported by lux · July 6th, 2008 @ 06:06 PM

State: resolved
Milestone: 5.0.3
Assigned to: Charles Brunet Charles Brunet

Activity

  1. Charles Brunet
    Charles Brunet
    • 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.

    July 30th, 2009 @ 08:55 AM

  2. Charles Brunet
    Charles Brunet
    • Milestone set to 5.0.3

    [milestone:id#47011 bulk edit command]

    August 7th, 2009 @ 09:41 AM

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.