Windows users can download a self-installing file from Gettext For Windows which will take care of any complexities. GNU gettext can be installed easily enough on Linux using a package management tool appropriate to your installation. From the poEdit menu select Preferences to bring up the settings. This is very simple and just requires your name and email address, which will be embedded in any files you produce. Windows and Mac OS X users can download a self-installing file from the poEdit download page, while Linux users will need to install it via their package administration system.Īfter installation you should take a few moments to configure poEdit. PoEdit is a localization tool with a graphical interface. Use of these tools is considered advanced, and is more appropriate to people who want to automate the translation processīefore you continue you should ensure you have one of the above tools installed. GNU gettext – The framework has its own set of command-line tools to produce the POT file and to compile the MO file.poEdit – A cross-platform graphical tool that is available for Windows, Linux, and Mac OS X.There are many available options here and this guide will show you how to use two Open Source tools: Special software tools are needed in the translation process. Compile the PO file to produce a MO file (Machine Object), which can then be used in the theme or plugin.The only difference between a POT and PO file is that the PO file contains translations This produces a PO file (Portable Object). Use a plain text editor or a special localization tool to generate a translation for each piece of text.Some themes and plugins may already provide you with this Run a tool over the code to produce a POT file (Portable Object Template), simply a list of all localizable text.With a suitably localized theme, plugin, or WordPress, the steps involved in translating it are: If number is more than 1 then looks for a translated version of $plural. _ngettext($single,$plural,$number) – If $number is 1 then looks for a translated version of $single._e($text) – Looks for a translated version of $text and echo the result to the screen (i.e. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |