Trying to avoid thinking about work for a whole hour

Home

Trying to avoid thinking about work for a whole hour

Nov122009
Recommended / related

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 has solved this while I've been writing this, as I twittered it too hoping someone would:

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...

:: :: Comment / reply

Paul Clarke's blog - I live and work near Folkestone. Married to Clare and father to Harry, I am a web dev, and I like javascript, PHP, Folkestone Gerald, pubs, restaurants, history, genealogy, TV, music, popbitch, squirrels, pirates ☠, time travel, stained glass...

Also from the same week

Some more blog posts from the same week as .

A day in an out of health centres Not me, but Clare and Harry, all is good though [Monday 9 November 2009]

I'm just waiting for the call I expect that Aerosmith job is down to the final two [Tuesday 10 November 2009]

RE: My one is DAB only [Tuesday 10 November 2009]

RE: Kent libraries Amazon Firefox Greasemonkey mashup [Tuesday 10 November 2009]

Roast potato O'Clock GREAT lunch, now back to work... [Wednesday 11 November 2009]

Swine Flu Essentials RT amazing marketing strategy! http://tinyurl.com/y8klw7r [Thursday 12 November 2009]

iphone app developer up for sale on ebay Starting bids at $100,000. vi [Thursday 12 November 2009]

Trying to avoid thinking about work for a whole hour FAIL [Thursday 12 November 2009]

Photoshop project Let me know if you'd like to download the original! [Sunday 15 November 2009]

Noisy night in tonight I'm ripping a Revolting Cocks bootleg from 1991 [Sunday 15 November 2009]

X-Factor rejects at Chicago Rock in Fareham Everyone I know who's on Twitter seems to be watching x-factor [Sunday 15 November 2009]

Good weekend Funeral notwithstanding, went out Friday night with Clare, a rarity [Sunday 15 November 2009]

Two trips to The Crown in one weekend (a Wetherspoons). That is the end of my weekend roundup. [Sunday 15 November 2009]

Kent libraries Amazon Firefox Greasemonkey mashup Can you call it a mash up if you used greasemonkey? Works anyway [Monday 25 May 2009]

Anyone need anything washing up? My kitchen radio rocks [Thursday 5 November 2009]

RE: Anyone need anything washing up? [Friday 6 November 2009]

My one is DAB only [Friday 6 November 2009]

Whether you are Ian or someone pretending to be Ian [Wednesday 11 November 2009]

ah forgot to attach my own take on that here http://bit.ly/3qzm0r [Thursday 12 November 2009]

ah man having done 90 mins of ripping of that vid I think it's going to crash without saving it :-( http://bit.ly/6DF15 [Sunday 15 November 2009]