variables will not be saved in table i18n_variable

skylar78 - May 27, 2009 - 10:58
Project:Internationalization
Version:6.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:needs work
Description

hi!

i tried to create a frontpage for 3 different languages. I put $conf['i18n_variables'] = array('site_frontpage'); into the settings.php and set the Frontpage for each Language in siteinformation. there are 3 different nodes to use.

after clearing cache, the settings are gone.
I checked the i18n_variable table. the variables are never been saved into this table, but in the cache content table.

what have i missed to do?

thanx
daniela

#1

skylar78 - June 2, 2009 - 11:28

is there anybody that can help me with this issue?

#2

skylar78 - June 8, 2009 - 07:12
Category:support request» bug report

#3

skylar78 - June 12, 2009 - 08:46
Assigned to:skylar78» Anonymous

#4

noelbush - July 5, 2009 - 10:16
Version:6.x-1.0» 6.x-1.1
Status:active» needs review

I believe this is due to a small bug in i18n_form_alter_settings(). At least in the 6.x-1.1 version, it will always return an array(), which means that i18n_form_alter() fails to add 'i18n_variable_form_submit' to $form['#submit']. The attached patch fixes this for me.

AttachmentSize
i18n-save-variables.patch 520 bytes

#5

hass - August 11, 2009 - 20:15
Status:needs review» needs work

Looks not like a correct patch.

#6

jeyro - September 27, 2009 - 12:31

I confirm this. With 6.13/6.14 and i18n 6.x-1.1.

As far as I can tell the variables are not properly saved in the i18n_variable table. For one site I am working on, 5 out of 11 specified variables appear, on the second site 1 out of the same 11. Additionally, none, including those shown in the tables, react to any string search. At the same time they do appear marked as "multilingual variables" (for example on admin/settings/site-information. This after multiple cache clearings, refreshes etc.

Also unexpected string search results after installing the tcontact module (contact form) which uses i18n. The string search does not find current content for the contact form details in admin/build/contact/settings ("Additional information:" box), but does find obsolete original content (i.e. "You can leave a message using the contact form below.") deleted a long time ago (also after multiple cache clearings, refreshes, etc.).

This, after the other multilingual features do work: blocks, menu items, and the content. What can be done to make these variables translate?

#7

xecstasyx - September 28, 2009 - 20:23

subscribing.

#8

jeyro - October 2, 2009 - 07:54

@skylar
Where you able to get this working?

@ noelbush
@ hass
I'm not a php coder. But i can apply a patch and I can insert patch details manually, if I can be furnished the details.
Can you tell me what's wrong with the patch? Could you tell me what I need to apply to make the variables work?

#9

Jose Reyero - November 3, 2009 - 11:23
Category:bug report» support request
Priority:critical» normal

Cannot reproduce it.

From #6: For one site I am working on, 5 out of 11 specified variables appear, on the second site 1 out of the same 11.

It seems you cannot reproduce consistently the bug yourself?

Check any other module (tcontact?) and confirm it happens in a clean i18n install.

#10

jeyro - November 6, 2009 - 09:30

Thanks for looking into it.

After checking more, the OP issue is different from mine.

I'm now able to make the multilingual variables work, I think had earlier not properly understood them. Yes, that described behavior was inconsistent.

The string translations remain problematic as in #442428: refresh strings in translation interface causes translations to be erased and then cannot be found in search, #541048: Translate all custom block titles (not only custom blocks). I think they are all, at least, similar. Hope the solution is in sight...

 
 

Drupal is a registered trademark of Dries Buytaert.