When adding an Original "test foo", with Replacement "test bar" and then clicking "save configuration", the screen refreshes and the strings have disappeared, why?

I have D4 with a multilang site.

Comments

scott m. sanders’s picture

If by D4 you mean Drupal 4, it appears only supported for 5 and up.

robloach’s picture

Are you using Locale? Because different languages all have different string overrides.

boran’s picture

Oops D6.14, not D4. Sorry.
Yes I have locale, 4 languages. I'm testing the the "english" tab, which is the default module.

perke’s picture

same here... using 3 languages, i18n and locale. Nothing gets saved for "english". Haven't tried other languages.

perke’s picture

ha! It takes you to post a comment on issue just to find a solution a moment later :)

If you used the other method of overriding strings (like I did) using $conf['locale_custom_strings_en'] in settings.php before installing this module, that's the problem.
Just comment out that part in settings.php and use the module. It works fine here. Hope it helps.

robloach’s picture

Title: Strings not being saved in admin/settings/stringoverrides/en » $conf['locale_custom_strings_en'] in settings.php conflicts with String Overrides Module
Version: 6.x-1.7 » 6.x-1.x-dev
Category: support » bug
Status: Active » Fixed

Ah, that makes sense. Setting to fixed and changing the title so people searching around could find this if they're having troubles. Thanks a lot!

boran’s picture

I can confirm, my problem was also having an entry in settings.php

robloach’s picture

Component: User interface » Documentation
Status: Fixed » Active

Actually, maybe having a note in README.txt would help.

dadderley’s picture

I just had the same run in with this. I had about 4 strings replaced in the settings file and then installed the module.

All of the strings that I had set up in the settings file appeared in the string override ui. But, having $conf['locale_custom_strings_en'] enabled in settings seemed to not let me add any more overrides in the string override ui.

I commented out the strings that I set up in $conf['locale_custom_strings_en'] and now the module works just fine.
It's all good now.

aaronbauman’s picture

This issue persists.
Maybe a maintainer could just put a note about this in the installation instructions on the project page?
It's a really confusing experience to have your changes just vanish on form submit.

robloach’s picture

Already in there :-) https://drupal.org/project/stringoverrides#troubleshooting

Do you think we should add this to a README.txt file or something like that? Or is just on the project page enough?

robloach’s picture

Category: Bug report » Support request
Issue summary: View changes
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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