Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2009 at 21:07 UTC
Updated:
25 May 2012 at 21:40 UTC
Jump to comment: Most recent
Comments
Comment #1
dawehneryou can do this anytime with using hook_form_alter of the exposed filter form or writing your own handler.
do you need more introductions?
Comment #2
Anonymous (not verified) commentedI have just been looking for this.. so would be interested to have an example or at least pointers. I just set up a site for a friend, and they were saying that "Any" is not always understood by their visitors with limited Engish, and would prefere to use "All"
I did find in anothe rthread a patch which gives clues to what I am looking for in teh code if i wanted to hack it, but would rather do it the correct way, and learn in the process.
http://drupal.org/files/issues/383242-2.any_.patch
Comment #3
oshores commentedI am also looking for solution on that. as a display text always make confusing.
Comment #4
merlinofchaos commentedIn the Views settings (Tools tab on the Views UI) Change it from
<Any>to- Any -Then you can use the settings.php string translation (it's in the base Drupal docs) to translate that string to anything you like.
If you want to do it more targeted, you'll have to use hook_form_alter and alter views_exposed_form. You can look at $form_state['view'] to determine what view and change whichever fields you actually need changed.
Comment #6
edpaff commentedJust in case anyone else is looking for a quick solution to this issue (and doesn't mind changing the 'any' text site-wide), follow merlinofchaos's solution to change from to - Any -, and then use String Overrides to change - Any - to whatever you like.
Comment #7
sill commentedThis worked for me. Thanks!
1) Just went to /admin/build/views/tools and chanced to - Any -
2) installed the String Overrides module
3) Going to the String Overrides settings (/admin/settings/stringoverrides) and adding your over-ride. In this case: - Any - and "Change to this word"
Clear cache and voila!