Closed (fixed)
Project:
Inline Form Errors
Version:
6.x-1.1-beta1
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Mar 2010 at 08:42 UTC
Updated:
16 Jul 2010 at 09:30 UTC
Please consider using system_settings_form() to provide more straightforward UI for localization of IFE's "general error message".
When I added ife_general_message to $conf['i18n_variables'], nothing changed at <a href="http://example.com/admin/settings/ife">admin/settings/ife</a>. When I replaced return $form; to return system_settings_form($form); in ife_settings_form(), i18n started to tell me This is a multilingual variable., but I started having two "Save configuration" buttons.
Expected behavior would be having only one "Save configuration" button with i18n support, too.
Comments
Comment #1
stijndm commentedI'll look in to this, but the problem with the system_settings_form() is that it takes over control of submission and theming of the form. Since I use my own theme and schema I expect conflicts, I don't want system_settings_form() handeling de form_ids and options. (the system_settings_form() also places it's ow submit button, which is why you get two submit buttons is you change the return).
I also checked the form_alter in the i18n.module and it specifically searches for forms that have the system_settings_form theme attached.
Comment #2
stijndm commentedIn the meantime you could use the translate interface since the message is run through t() before it is printed.
Comment #3
stijndm commentedI added multilingual variable support by letting i18n process the form if the module exists. It's a different approach than what you suggested, but the result is the same.
I'm going to postpone the issue for now and leave it as a reminder to have a closer look at system_settings_form().
Comment #4
stijndm commentedi18n support is available, just not with system_settings_form()