At the moment i’m developing my first wordpress plugin and want to include multi-language function in it. May be there is some manuals on it? Tried to google, but only get best wordpress language switcher plugin
.
Leave a Reply
You must be logged in to post a comment.
Basically read the source for the function
load_plugin_textdomain()
:Ignore the second parameter, it was deprecated a long time ago.
An example from my plugin T5 Taxonomy Location:
The first parameter is the text domain, the last the path to the
languages
directory in the plugin.Now you can use strings in your plugin with that text domain:
There are multiple tools available to create new translations. I have used Codestyling Localization in the past, but it is broken now unfortunately.