![]() ![]() ![]() ![]() The name of your theme can be found in your theme folder. You will use WordPress to translate the files. You can purchase either a free or a premium version, with the latter costing $28.98 per year. WordPress’s tool is not a plugin, but rather an extension. Poedit is a tool that you can use to translate WordPress themes and plugins. In this article, we’ll show you how to use Poedit to translate a WordPress plugin. It’s available for Windows, macOS, and Linux. Poedit is a free, open source program that helps you manage and translate software projects. There are a few ways to approach this, but the most common is to use a tool like Poedit. While WordPress itself is available in many languages, not all plugins are. To do so, go to WPML > Translation Management > Multilingual Content Setup and tick the ” When deleting a post, delete translations as well” checkbox.If you’re a WordPress plugin developer, sooner or later you’ll need to translate your plugin into other languages. If you use WPML plugin to show the site in multiple languages, than in order to see the translated WooCommerce assets for each language, you should duplicate all the WooCommerce extra pages (Cart page, Account page, etc.).Īlso, make sure that you have WooCommerce Multilingual installed in order to see the translated links.Īlso, when you delete a product, you will probably want it’s translation to be automatically deleted. If you have any caching plugins enabled, make sure that you disable them until your translations are ready. Repeat the process above with the po file that you ‘ll find there. Check in the theme’s folder and check for a folder named “lang” or “languages” or something similar. If you use a WooCommerce theme, it may be possible that the theme contains its own translations for some of the buttons. Refresh your WooCommerce page to see the changes. po file, make your changes and just press save. To update your WooCommerce translations, open the. To make your localization upgrade safe, create this folder wp-content/languages/woocommerce/ and paste inside the 2 files (the. mo file you have already generated with PoEdit. define ('WPLANG', 'el_GR') įinally, you need to include the. See the complete list of language codes and country codes to find your exact locale. We’ve set it to Greek in the example below. Open wp-config.php and modify the line below, or add it if it is missing. WordPress needs to be told which language it should run under. mo file will also be generated automatically. Now the strings will be listed.Īfter translating all strings you can save – the. po file – name it based on what you are translating to, for example, a GB translation would be saved as woocommerce-el_GR.po. After this you will be prompted to save your. Once you have done this, choose woocommerce.pot (the file you ‘ve pasted to your desktop) and PoEdit will show the catalog properties window:Įnter your name etc so other translators know who you are and click ‘ok’. To get started open PoEdit and go to File > New catalog from POT file. Translating with PoEditĭonwload PoEdit and install. Copy this file and paste it to your desktop. The default woocommerce frontend translation is inside the file woocommerce.pot. You can find this language file inside the plugin folder in woocommerce/i18n/languages/. pot file) which contains all of the English text. WooCommerce includes a language file (.po or. WooCommerce comes localisation ready out of the box – all that’s needed is your translation (if the plugin does not come bundled with one for your language). Click Editor, select strings you want and click save.Greek), click move and make sure that Custom is selected (so that you do not lose translations on woocommerce update). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |