Smarty Modifier
Home
Smarty Modifier, including smarty modifier in my blog, any mentions of smarty m0difier in my family tree and smarty modifier talk in Folkestone.
Blog / forum etc:
Nov12
FAIL
I can't seem to do it, have et my tin of spaghetti bolognaise (nice one Sainsbury's for stocking a vegan friendly version of this convenient lunch again, it's been a while) and have things going round in my mind. BUT trying to take a proper break so as to keep me fresh for the afternoon. If I blog about what I'm thinking about at work do you think that will keep me fresh enough? Here's what's troubling me anyway, I want a smarty plugin that is REALLY REALLY REALLY simple so it can be called like{translate 'hello'}
I've already got the back end actually doing the translation so that's fine, and I know I can do {translate word='hello'}
but I want something even simpler. For a while I tried a modifier instead of a function like{'hello'|translate}
But I want something more. A modifier like that doesn't have access to the $smarty object for one thing, so I can't see (for example) if other things have been assigned on the page without a whole lot of globalising...
Maybe @theHuzz has solved this while I've been writing this, as I twittered it too hoping someone would:
@pauly what about a block function then you could use {translate}hello{/translate} ?
It's a bit longer, and is slightly more complex for my target audience to use but it might do the job. In fact the example here is, um, a translation function.
I will carry on thinking about this after lunch.
Should have spent that time working on making my venue urls look like this as an seo experiment...
2009 :: Comment / reply
Also there's an xml feed of smarty modifier, a JSON feed , search my smarty modifier venue info, smarty modifier on Your Folkestone.
Hope you found what you're looking for, if not please leave a message about "smarty modifier".
Google the site here

