Posted by memenode on October 29, 2008 at 1:50am
Jump to:
| Project: | String Overrides |
| Version: | 5.x-1.6 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (works as designed) |
Issue Summary
Hi,
I'm wondering if it would be possible to somehow disable string overrides for a certain content type. For example I'm using simple_review module on one content type where I replaced where it mentions "comments" to "reviews", but on a blog content type I want the "comments" to stay as is, not overriden.
Perhaps it would be possible to add something to node-blog.tpl.php or template.php which would just turn off the simple_override's locale function for the blog content type or something?
Thanks
Comments
#1
Unfortunately String Overrides isn't context sensitive because it can only override what's passed through t(), so the changes you make in String Overrides are site-wide. I'd suggest looking into the Node Comments module if you want have more control over the comments.
#2
Ok, thanks.
Maybe there's a way to somehow customize the $links only for blog node type allowing me to remove the words "comment" and "comments" altogether (with it replacing the string override too) with my own string..
#3
It would be very useful if String Overrides somehow worked with http://drupal.org/project/context to allow some strings to only get overridden in some areas.
example i have a website that does donations. So i override "Order" with "Donation" which works great in most cases but when when the visual context is different, and the word Order now means something along the lines of "in the order of" not "my product order".
So i was thinking if you could specify what context (area) those strings should be replaced this would be an easily avoidable problem. Of corse i haven't looked into what it would take to implement the context module. I would think that even if integration was introduced it would gracefully default to what we have now if context was not installed.
Thoughts? Ideas?
#4
subscribing
#5
Subscribe
#6
#1057894: Context Module Integration would do it.