Hi DrupalMasters!

This module configurarion show "There are multilingual variables in this form"
Ok.

Custom text in "Custom page title" and "Custom page text " not saved when introduced into each of the languages.

Why?

Drupal 7.22

Comments

zyxware’s picture

Can you please elaborate on your issue a bit more?

raulnavas’s picture

Sure!

1.-go to admin/config/search/search404
in "There are multilingual variables in this form" box, hilight "español" (is my default language)

2.-in "advanced options fieldgroup" in "Custom page title" field
type: "Pagina no encontrada"

3.-save
-------------------------------------------------

4.-click in "english link" in "There are multilingual variables in this form" box
admin/config/search/search404?variable_realm_key_language=en

5.-in "advanced options fieldgroup" in "Custom page title" field
type: "Page not found"

6.-save
-------------------------------------------------

7.- Last "save" clear my first "save", and now... "Page not found" appears where i save "Pagina no encontrada"

If I do the same process in reverse, the same problem occurs.

raulnavas’s picture

Version: 7.x-1.2 » 7.x-1.3

Now i update to 1.3... and the problem persist.

george esper’s picture

Confirming that I too have the same multilingual variable problem with version 7.x-1.3.

In my case, the last language entered overrides the other. That is, if I start with English and then enter the French translation, the French version is displayed in both the English and French page. And vice versa.

JamesGuthrie’s picture

I just encountered a similar problem and while searching for information came across this post. I would like to add information to this bug report.

I am seeing very similar behaviour, but I am not using Search 404, I believe that the error here lies in the i18n module, but I haven't pinned it down yet. It appears to me as though the problem is that the "variable_realm_key_language='your_lang_here'" parameter doesn't in fact switch languages, so the same variable is being set twice. If I am correct, then the language switcher which is embedded in the variable translation page is broken.

A temporary workaround would be to allow the Admin backend to be shown in multiple languages, to switch languages in the frontend and then use the backend in the French version (in george esper's case) to set the French translation. If this works then one can assume that it is the embedded language switcher which is broken.

a7madgamal’s picture

same here. however i found that using this link works as expected "q=admin/config/system/variable/realm/language/edit"
but any other form with translated variables the languages links are just dummy
Drupal 7.23
some enabled modules:
Entity Translation 7.x-1.0-beta3
Field translation 7.x-1.10
Internationalization 7.x-1.10
Variable translation 7.x-1.10
Variable 7.x-2.3

hopefully some fix this :)

jaydee1818’s picture

Issue summary: View changes

I'm also having this problem. Editing the "Custom page text" field in any language overrides all the variables.

Has anyone managed to fix this?

jaydee1818’s picture

StatusFileSize
new666 bytes

Ok, this fixed the problem for me.

Unzip the attached file (use the file below - #9) and place it in the sites/all/modules/search404 folder.

It should be named search404.variable.inc

Now flush the cache. Then go to: /admin/config/regional/i18n/variable

You should now see Search 404 as a realm containing multilingual variables. Check the boxes for Custom Title and Custom Text and save.

Now you can go back to: /admin/config/search/search404 and add custom titles and text for all your different languages.

jaydee1818’s picture

StatusFileSize
new645 bytes

Actually - use this file.

jaydee1818’s picture

Status: Active » Needs review
peacog’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
Assigned: raulnavas » Unassigned
Category: Support request » Bug report
StatusFileSize
new1.53 KB

Thanks for the fix in #9. I've rolled a patch to help with getting this commited.

anish_zyxware’s picture

Assigned: Unassigned » anish_zyxware
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new2.75 KB

Find the patch. Reviewed and tested. Included documentation for configuring it.

  • anish_zyxware committed 7116990 on
    #2014123 - Add support for multilingual variables and include...
anish_zyxware’s picture

Status: Reviewed & tested by the community » Closed (fixed)