CommentMailer Localization on The Fly

Being one of WordPress localization maintainer, I’m concerned to the fact that WP should be internationally accepted and easily localized into many languages. It applies to plugins too, so I always gettext all WP plugins I ever wrote (unfortunately only 2 of them are fully maintained and available for download here). :)

Lately I’ve been working on my 2nd plugin–commentmailer (currently in ver 0.1)–and found that it needs special i18n treatment. Unlike most plugins that need gettext to localize their appearance on the web page, commentmailer prints the localized strings into an e-mail.

Even as a non-English blog author, sometimes you do need to answer your visitor’s comment in English. More than that, if you are a true polyglot and writes your blog in several languages, you will also have to answer the comment in as many languages as you use. If you use commentmailer plugin to email those answers, you probably want to localize the email depending on the content language.

I’ve provided the localization schema to commentmailer since the first time I released it. But switching which language to use is as painful as changing your WordPress locale environment, unless you are using some multilingual plugin.

So I put some function that makes commentmailer prompt the user (blog author) with an option of which language he/she want to use to answer the visitor’s comment. It searches for commentmailer localization files inside your plugin dir and print a locale selection menu to your comment form.

Here’s what you need to do to take some advantage of this new feature:

  1. Update your commentmailer plugin to the latest version
  2. Use the localization template (commentmailer.pot) included in the distribution file to localize the plugin. Name your localization file (the machine object) commentmailer-[locale].mo and put it directly inside the plugin directory–next to commentmailer.php
  3. Using the corresponding WordPress localization is recommended since it will localize the date format printed in you e-mail
  4. When you are writing a reply in the comment form, select the language in which you are writing
  5. Of course you have to write the comment content in your language to match your preferred locale

WordPress untuk Situs Surat Kabar Harian

Jangan anggap bahwa WordPress hanya cocok digunakan untuk membuat blog. WordPress memang diciptakan sedemikian rupa sehingga kemasan distribusinya kecil dan sederhana. Hal itu sebenarnya ditujukan agar pengguna tidak dijejali dengan berbagai fitur-fitur yang tidak semua format situs membutuhkan. Aplikasi ini bahkan dilengkapi dengan API yang membuatnya sangat fleksibel. Itu membuatnya mudah dikembangkan menjadi apapun–hanya imajinasi kita yang dapat membatasinya.

Salah satu contoh sederhana penerapan penggunaan WordPress yang ingin saya bahas di sini ialah sebagai engine sebuah situs surat kabar harian. Ini bukan artikel tutorial lengkap, sekedar sebuah wacana, dilengkapi dengan sedikit scripting kasar yang membantu Anda melangkah ke sana.

Fitur-fitur yang menjadi persyaratan untuk sebuah situs surat kabar antara lain:

  1. Halaman utama dapat berupa halaman selamat datang ataupun langsung cuplikan berita-berita hari ini. Namun bentuk yang pertama saya sebutkan agaknya sedikit merepotkan bagi pengunjung.
  2. Halaman yang menampilkan suatu berita secara utuh
  3. Halaman yang menampilkan cuplikan seluruh berita pada tanggal tertentu.
  4. Menu yang disajikan sedemikian rupa sehingga memudahkan pengunjung untuk memilih hari/tanggal/edisi tertentu dari surat kabar yang bersangkutan. Biasanya disajikan dalam bentuk kalender bertaut.

Untuk mewujudkan fitur-fitur yang ada di atas, kita dapat membuat templat suai (custom template) yang agak berbeda dengan templat blog biasa.

Selengkapnya

CommentMailer

Comment Mailer is a WordPress plugin that helps you maintaining the discussion on your blog by letting the commenters know that you have replied their comments on the comment section of your post. Everytime you post a comment to answer previous comments from your visitors, you’ll be given an option to send a notification email to a spcecific commenters. It’s simple and easy.

Why You Should Use This Plugin

  • You’ll never know whether your blog commenters is going to visit back to look for your reply for his/her comment, subscribe a comment feed for a specific post, or choose to receive notification e-mail (if you provide one). By using this plugin, you’ll have a full control to decide whether it is necessary to notify a commenter for a new reply.
  • It keeps the discussion rolling on your blog comment system.

Grab it

Currently there is only unstable version of this plugin. But yet, you can still take the advantage by installing it. Use the following link to download the plugin.

commentmailer-0.1-beta

Selengkapnya

Yahoo Messenger Online Status Plugin for WordPress

Now this plugin has its own page. For newer and more up to date information about this plugin, please refer to the new page.

Do you love telling everybody whether you are online or not by adding your Yahoo Messenger online status to your blog? If you do, you might have been familiar to these standard YM online status button:

online0.gif online1.gif online2.gif online3.gif online4.gif online5.gif

offline0.gif offline1.gif offline2.gif offline3.gif offline4.gif offline5.gif

Bored with these button?

For you, WordPress users, I’ve written a simple plugin which allows you to show your YM online status using your custom images, so you can make sure that your online status button looks good on your blog’s theme and layout. My Yahoo Messenger online status button on the sidebar of this blog is a simple example for this plugin. Of course, this is only an example. You can create better buttons on your own.

Interested? Just download the latest version of this plugin and put it on your blog
Selengkapnya