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.