Saturday, December 03, 2005

Do not place localization in global variables.

I was just viewing the source code for a page here at and found a gutbuster:
// Do not place hardcoded english grammar or sentences into JavaScript, 
// place them here.
var bold_tt = 'Bold';
var italic_tt = 'Italic';
var text_color_tt = 'Text Color';
...and so on. Mmm, tasty global variables for the localization crew! This one goes out to you again, . You've got $1.3 billion burning a hole in your pocket, so how about hiring someone to refactor that out of Blogger before it shows up on ?

No comments: