Trying to avoid thinking about work for a whole hour
Home
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...
pauly :: 2009 :: Comment / reply
Over to you, discussion about anything local, but please be considerate... Folkestone on TV, Kent gigs, Find a flatmate, rent a room, property queries, current news, what's new, local events, for sale, local services, what I like about Folkestone, ask questions, offer advice, plug yourself... the more it's used the more useful a resource it will become. If you want a gig listed click here to add it (fixed now!), or just click here to post a message...
Also from the same week
Some more blog posts from the same week as .
RE: If you are under 18 do not bother going they will Starve you!!! [Monday 9 November 2009]
Whether you are Ian or someone pretending to be Ian [Wednesday 11 November 2009]
RE: Open Mic night at the Whole World cafe this Friday [Saturday 14 November 2009]
Open Mic night at the Whole World cafe this Friday [Wednesday 6 February 2008]
RE: Open Mic night at the Whole World cafe this Friday [Wednesday 6 February 2008]
Small world! [Thursday 7 February 2008]
RE: Open Mic night at the Whole World cafe this Friday [Monday 14 April 2008]
RE: Open Mic night at the Whole World cafe this Friday [Monday 14 April 2008]
Kent libraries Amazon Firefox Greasemonkey mashup Can you call it a mash up if you used greasemonkey? Works anyway [Monday 25 May 2009]
If you are under 18 do not bother going they will Starve you!!! [Saturday 1 August 2009]
RE: If you are under 18 do not bother going they will Starve you!!! [Sunday 2 August 2009]
RE: Kent libraries Amazon Firefox Greasemonkey mashup [Tuesday 10 November 2009]


