Congratulations to New Zealand for three great games at the World Cup. I’m sorry that they didn’t get in a second round but I expect that they’ll get over there in Brasil.
How to use load_plugin_textdomain on activation of plugin
With my new plugin, Gravatar Signup Encouragement, I had a problem with translation of string that is used only on activation.
That string contains default message that is saved in database. No matter what I tried, it would always save original string, not translation.
After asking question on wp-hackers mailing list and exchanging several replies with Otto, I found solution for this. In your function that is used in register_activation_hook, you need to again use function load_plugin_textdomain, even if you loaded it already in init. It should be used before any string.
So if you encounter this problem, you know how to solve it.
Don’t forget to try my plugin mentioned here, Gravatar Signup Encouragement.
Introducing Gravatar Signup Encouragement
Gravatar Signup Encouragement is my first publicly released plugin for WordPress. I got idea to write it after reading comments on post on Weblog Tools Collection titled “Why Is Gravatar Still Not Mainstream”. At that same day I made first version of plugin and posted link to it’s download page as comment on post waiting for responses but comment never appeared.
For last couple of weeks I was doing slow rewriting of plugin while adding new features and finally decided to release it publicly and to add it to WordPress plugin directory. You can now download it from here.
Google News soon in Serbian, Bulgarian, Romanian and Slovakian
In March, I discovered (via Google Translate) that Google is testing localized version for Serbia. Half a year later, localized version is fully translated and snippets are showing on Google’s main search results page, but is not officially released.
By changing country and language codes, I discovered that localized Google News are also ready for Bulgarian, Romanian and Slovakian markets. You can see if there is a testing for your country and language by changing country and language codes in URL. For example, in http://news.google.com/news/search?um=1&ned=sr_rs&hl=sr&q=obama sr is code for language while rs is code for country.
I hope that Google will soon officially release these products, since now they lack some features like homepage, backlinks in top navbar from other Google’s products, ability to add new sources etc.
New AdSense Unit?
Fourteen months ago, last post here was about new AdSense units that started that day. Later they became usual, but in that time they were new and interesting.
Now I again spotted some unit that I didn’t see earlier. It is something like slideshow of products of particular advertiser. It is not flash but normal JavaScript and it was on 250×250 unit, and it seems that it is on image ad, since after refreshing I always see images (there is that google_ad_slot not google_ad_type). Page where I saw it is here.
Is this really new unit or it is new only for me? I searched on web and didn’t find anything about it.
BTW, I do plan to write something here, I already have some drafts, and also want to publish some WordPress plugins I made so I’ll use this website for it.