Closed (works as designed)
Project:
Availability Calendars
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Nov 2011 at 15:44 UTC
Updated:
27 Mar 2012 at 20:30 UTC
Hi
I have managed to set up availability search using views, I have it set 'From arrival during duration', so, you have an input text field for date, you then choose a duration, e.g. 1 day, 1 week, etc. I would like to change the text displayed for the 'Select duration' drop down, however, as it is not a straight forward field that i would normally add/update via content types admin, i cannot see how to do this.
Is it somewhere in views admin, or content types admin? I have looked but cannot see where.
Matt
Comments
Comment #1
fietserwinThe text is translated using t(), so you can use the translation system to override the text. Even in English this is possible, but that is done slightly different.
Note: I was thinking the other day, about letting site admins or developers define the whole contents of the dropdown, but I have no clear idea how to do so and if this can/should be done without the need for custom coding. Anyone any ideas?
Comment #2
mattys commentedthanks
is the 'translation system' a separate module? i did a search but could not find anything specific for my purposes.
i found http://drupal.org/project/stringoverrides, is this what you are suggesting?
Matt
Comment #3
fietserwinSee: http://drupal.org/node/522036, the module you mention is also mentioned as one of the possible solutions. "Translation system" is the whole of functionalities that together make a site translatable. It includes core functionalities (e.g. t()) and core modules (e.g. locale) Main point in your case is the t() function and how to change English texts as well.
Comment #4
mattys commentedgreat, thanks
i went for the settings.php option, try and keep modules to a minimum, as suggested
is very easy, just need to make sure ALL the right bits are de-hashed
Comment #5
mattys commentedComment #6
fietserwinThis one could have been closed back then. The "feature request" I was "thinking about the other day" should get its own issue if someone needs that.