Posts Tagged ‘Tutorials’

GD Star Rating 0.9.6 Beta 2

datePosted on 01:43, October 3rd, 2008 by Millan

Finally, new version is here. Before I get on with what’s new in this one, I would like to remind you all about the new development website for this plugin hosted on Google Code where you can access lates development source code that’s updated daily. Also, there you can add bug reports, read wiki pages (in works) or comment the soruce code if you fee like it.

Also, since the 1.0.0 is very near, I would like to call on for the translators. Currently beside standard english, I am doing translation to serbian, and Angel Guzman Maeso translated plugin to spanish. There is also french translation but it’s not updated for the last few versions. So, it would be great to have more languages available, so if you are up to the task, get yourself POT file and translate it. There is also a tutorial on this website about that, so you might wanna check that out also.

And now to the new stuff in this latest version of the plugin.

Read the rest of this entry »

Using POEdit for translating plugin or theme

datePosted on 14:18, August 30th, 2008 by Millan

All plugin and theme authors that added multilanguage support to their plugins and themes, should provide valid POT file with all needed translation strings. This is not required, but it saves a lot of time for the translators.

Translation process needs to produce two files, one with extension MO and the other PO. MO file is the file with actual translation, and the PO is more of a template file that looks like POT but has translation string in it. This PO file is needed if you later need to change and update translation.

There are different tools you can use to translate POT file in PO/MO files, and this post will be about POEdit. This is free and multi platform program that works on Windows, Linux and MacOS. I have noticed that POEdit is not working with plural translations as it should, at least with the ones used by WordPress.

Read the rest of this entry »

Create multi instances widget

datePosted on 12:39, July 6th, 2008 by Millan

Since I have started developing my ‘GD Pages Navigator’ widget plugin, I wanted to upgrade it so it can support more then one instance on a page. Unfortunatly there are limited resources available for that task, and almost no info about it in the official documentation. There are plugins that use different methods of achiving this, but best method is the one used by plugins build into Wordpress.

So, my starting point was ‘widget.php’ file where this default widgets are located. They also provided a short example of multi instance widget at the end of this file. This example in is good, but it has few errors (copy-paste errors mostly). This function is in the sample code class

I have decided to walk you throught the process of creating a widget that will support more then one instance. This example will show you how to work with different types of settings and it will provide you with some practicle code snippets you can use in your own plugins. Tutorial will be based on my ‘GD Pages Navigator’ plugin. This widget supports multiple instances from the version 3.0.0.
Read the rest of this entry »