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

stijndm’s picture

I'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.

stijndm’s picture

In the meantime you could use the translate interface since the message is run through t() before it is printed.

stijndm’s picture

Status: Active » Postponed

I 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().

stijndm’s picture

Status: Postponed » Fixed

i18n support is available, just not with system_settings_form()

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.