This post is part of the sub-series on Translating a ClassicPress plugin which is part of the Translating a ClassicPress plugin series.
ClassicPress uses the gettext libraries and tools for internationalization; gettext is an old and respectable piece of software which is widely used in the world of open-source.
The basics of how it works are:
- Developers wrap translatable strings in special gettext functions.
- Special tools parse the source code files and extract the translatable strings into POT (Portable Objects Template) files.
- Translators translate the strings in the POT file and save the translations into a PO file.
- PO files are compiled to binary MO files, which give faster access to the strings at run-time.
Over the next few posts, I’ll be stepping through what you have to do while developing an internationalized plugin to allow a POT file to be created.
Translating a ClassicPress plugin
What should we write about next?
If there is a topic which fits the typical ones of this site, which you would like to see me write about, please use the form, below, to submit your idea.