9/19/2023 0 Comments Poedit pluginPO files), and are a “compiled” version of the PO file. These are machine-readable, binary files that the gettext functions actually use (they don’t care about. There is one PO file per language.įrom every translated PO file a MO file is built. The result is a PO file with the same format as a POT, but with translations and some specific headers. Here is an example POT file entry: #: plugin-name.php:123Įvery translator will take the POT file and translate the msgstr sections in their own language. This file contains the original strings (in English) in your plugin/theme. Top ↑ POT (Portable Object Template) files MO files: compiled versions of the PO files, actually used by the application.PO files: editable file with the translations to one language (one file per language).POT files: a template file with all your original strings.There are three types of Localiztion files you need in order to translate your plugin/theme: If you want to translating plugins and themes that are not hosted on, or if, for any reason, you want to translate themes or plugins offline and directly in the plugins/themes files, you can do this creating and editing Localization Files. There you will get to know all the translators teams and learn about, where you can work on translations online and in collaboration with thousands of translators around the world. If you want to help translating WordPress, or any Theme or Plugin hosted in themes and plugins directories, you should go to Translate WordPress. Top ↑ Translating WordPress, Plugins and Themes WordPress has already been localized into many languages (see the list of polyglots teams for more information). The second step is the actual localization (l10n), the process by which the text on the page and other settings are translated and adapted to another language and culture, using the framework prescribed by the developers of the software. WordPress developers have done this already, so in theory, WordPress can be used in any language. This process is internationalization (i18n). The first step is when the developers provide a mechanism and method for the eventual translation of the program and its interface to suit local preferences and languages for users worldwide. The process of localizing software has two steps. Localization is abbreviated as l10n (because there are 10 letters between the l and the n.) Localization describes the process of translating a software and adapting its strings to a specific location. Read other software’s localizations in your language.Don’t use slang or audience-specific terms.Try to keep the same level of formality (or informality).Don’t translate literally, translate organically.Translating WordPress, Plugins and Themes.It's very easy to translate with Loco plugin. Click Save to save your changes Poedit will generate a fr.mo file which Wordpress uses to load translations Ow you can translate each item in the catalog. pot file and name it (this example is for French replace "fr" with your language code): fr.po Poedit pluginĭownload and install Poedit, this is needed to generate the localization files Run Poedit Go to File > New catalog from POT file and open the plugin's language template file located in /wp-content/themes/zoa/languages/Ĭlick OK to confirm the new catalog properties Poedit will prompt you to Save the file. Open your wp-config.php file and find the line containing: define('WPLANG', '') And replace it with (this example is for French): define('WPLANG', 'fr_FR') Remember to replace "fr_FR" with your language code. If you downloaded a translated Wordpress package, they are located in /wp-content/languages/.Ĭopy these files to wp-content/languages/. Locate the localization files They are named. For multiple languages, please use the WPML plugin.įirst, configure Wordpress to be displayed in your language Obtain the localization files for Wordpress by going to and download either a completely translated Wordpress package, or just the localization files (.mo and.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |