> Life is like biryani. You move the good stuff towards you & you push the weird shit to the side.  

post a new message


lorem ipsum

May 06, 2025 -- 5:36 AM
posted by ( )

Add an image    

Add a link


go back to maingo to old version

February 24, 2012 -- 7:43 PM
posted by Beck

And awesome news about Hemsky!

February 24, 2012 -- 7:42 PM
posted by Beck

No, if it was placeholders I wouldn't be annoyed. It was actually 2 or 3 sentences in english, and then the same 2 or 3 sentences run through google translate french. Hard coded and committed to the repository.

February 24, 2012 -- 5:20 PM
posted by Par

February 24, 2012 -- 2:42 PM
posted by Par

Are those placeholders, or was it really "Some english phrase"? In any case, clearly it's far better than t(). Because it is.

February 23, 2012 -- 1:20 PM
posted by Beck

So in the theme of the project I'm working on, there's a relic bit of code that isn't even used anymore that looks like this: t('Comments');

The t() is a native Drupal translation function that takes the input "Comments" and translates it to the users current language. He doesn't really like it that way though, he wants it directly through the database of the CMS (which will just run it through t anyway)... fair enough, it can be done either way and both is technically acceptable.

So he creates a bug report for it.

Then he goes and adds to the theme himself.


if($language->language == "en"){
echo "Some english phrase";
}

if($language->language == "fr"){
echo "Some french phrase";
}

February 22, 2012 -- 9:14 AM
posted by Tonestar Runner

February 16, 2012 -- 7:52 PM
posted by Al



Porcupine Tree- Lazarus

New kid at work suggested this band to me. Maybe we'll keep him around.

February 16, 2012 -- 7:09 PM
posted by Tonestar Runner

Und hier auch: fröhe Geburtstag, Paras!

February 16, 2012 -- 4:36 PM
posted by Nadeesha

Happy Birthday Par!!!!!!!!!!!!!!!!!!!!!!!!

February 16, 2012 -- 12:03 PM
posted by Al

Happy Birthday Par!

load more posts . . .