Hi,

Wouldn't you know it, the client really hates the fact that it says "Any" and not "All" in the exposed views filters. I'm not that keen on it myself and I've found a few threads on this, but nothing suggested has worked.

Setup:
- D 6.22
- Views 6.x-2.12.
- I have an exposed filter of taxonomy terms in a view.
- Settings are: "Is one of", "reduce duplicates", "optional", "force single", Selection type: "dropdown".

What I've tried:
- Adding a line to settings.php:

$conf['locale_custom_strings_en'] = array(
	'Any' => 'All',
);

- Added String Overrides module with rule "Any" -> "All". Also tried "<Any>" and "&lt;Any&gt;" on left-hand side of rule.
- Some jquery malarky, but not keen on this approach.

None of the above has worked. Can anyone offer any suggestions about this?
Thanks!

Comments

VM’s picture

The first way to attack the issue is to locate it in the actual file. then try and determine how best to override it.

thus search all views files for All and see what kind of function it's in perhaps?

skein’s picture

How about this:

1. Enable the Translation module.
2. Create a new language called 'Custom English'.
3. Make it the default language.
4. Find the string in Translate Interface section
5. Changed it.

We use this technique all the time when we want to change something. Don't know if it's the best practice, but keeps the settings.php file from growing and it's easy to change string from one English word to another.

Drave Robber’s picture

First you must visit Views options at http://example.com/admin/build/views/tools; at the very bottom of that page, you can change the filter element from <Any> to - Any - – and the latter is translatable, so it can also be overridden using String Overrides.

pog21’s picture

Thanks for all the suggestions! Used Drave Robber's since it seems to be the least "invasive"...
Things I noticed, which are, no doubt, documented but worth mentioning anyway:
* Rule in String Overrides had to be - Any - -> - All -, i.e. just putting Any (without hyphens) in LHS doesn't work (string overrides help mentions whole string must be used).
* Had to remove the rule in settings.php -> $conf['locale_custom_strings_en'] = array(... for the String Overrides module to work.
Anyway, you saved me a bit of grief, so cheers!