Closed (fixed)
Project:
Views Fast Search
Version:
5.x-1.1
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Aug 2007 at 13:26 UTC
Updated:
3 Apr 2008 at 10:51 UTC
first of all: I just discovered the views fast search - and I aready love it.. how the search resuls just look like 'standard teasers' - this keeps a loot of tweaking/coding/theming away - and also the option to limit the search to certain node types etc....
But: I'm having a german site - and the submit button probably gets its text from the german translation: it shows "Speichern" which would mean "save" - which is a little bit confusing for a search page.. Is there an easy way to change that into something more meaningful like "Suchen" = "search"..?
thank you very much, greetz, till..
Comments
Comment #1
douggreen commentedI think that you can do this two ways, either in a custom module or in your theme. I'm certain that you can write a hook_form_alter that intercepts this form, which would allow you to change the $form['submit']['#value'] or something like that. I'm a little less certain that you can do this in the theme. But every view is themable. If you've never themed a view, you might try installing the theme views wizard for some hints on how to do this.
Comment #2
tille commentedhi douggreen - and thanks for your instant reply!
And thank you very much for your faith in my coding skills - but I must admit that at this moment I am pretty much clueless about how to actually theme/adjust zhis exposed filter.. That's at least how I have my setup made: the actualy search field/form is an exposed filter "search index" ..
I did then also have a look at the views theme wizard, but all I get is basically this:
..and I have quite a hard time finding that input-button in that - and also the surrounding elements are either very well hidde, or just not there.. Well.
About the hook_form_alter: I had a look at the api - but also here I can't really figure out where/when/what should be altered..
thanks for any suggestions and/or pointers..:]
greetz, till..
Comment #3
Mauro Bieg commentedThe problem is that the views search-field in English is labelled 'Submit'. This string is used for several buttons (e.g. also for submitting content). So you can't just translate the string. The views module developers should change that 'Submit' string and make it independent.
Comment #4
s.daniel commentedA workaround using css sprites.
Here is my code which you would have to change to what is fitting your site:
Basicaly the button is hidden and a background image with the desired text is visible and clickable in the padding-top. There are a few cases where this technic fails.
Comment #5
calebtr commentedAnother way to do theme just the button on your exposed view is detailed at http://drupal.org/node/220200.
Comment #6
olafke commentedI used the code from http://drupal.org/node/220200 and put it in my template.php in my themes folder and it worked perfectly fine.
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.