{"id":870282,"date":"2016-04-28T12:35:51","date_gmt":"2016-04-28T12:35:51","guid":{"rendered":"https:\/\/wpml.org\/?p=870282"},"modified":"2017-11-30T13:29:54","modified_gmt":"2017-11-30T13:29:54","slug":"multilingual-tools-plugin","status":"publish","type":"post","link":"https:\/\/wpml.org\/vi\/announcements\/2016\/04\/multilingual-tools-plugin\/","title":{"rendered":"Multilingual Tools Plugin"},"content":{"rendered":"<h2><img decoding=\"async\" class=\"aligncenter wp-image-871046 size-full\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Multilingual-Tools-Plugin.png\" alt=\"Multilingual Tools Plugin\" width=\"680\" height=\"205\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Multilingual-Tools-Plugin.png 680w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Multilingual-Tools-Plugin-150x45.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Multilingual-Tools-Plugin-300x90.png 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/h2>\n<h2>Why do I need the Multilingual Tools plugin?<\/h2>\n<p>The Multilingual Tools plugin can help theme and plugin developers to test their products\u2019 multilingual capabilities. It will automatically add language code or custom notices to translated content, allowing the developer to review what is working correctly and what requires modification to be translated.<\/p>\n<p>With this tool you can:<\/p>\n<ul>\n<li>Automatically generate strings for translations<\/li>\n<li>Add language information to duplicated posts<\/li>\n<li>Generate a WPML configuration file (wpml-config.xml)<\/li>\n<\/ul>\n<p>The end result of using the Multilingual Tools plugin is shown below:<\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>English<\/strong><\/td>\n<td><strong>French<\/strong><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/English-1.png\"><img decoding=\"async\" class=\"alignnone wp-image-870298 size-medium\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/English-1-286x300.png\" alt=\"English\" width=\"286\" height=\"300\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/English-1-286x300.png 286w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/English-1-143x150.png 143w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/English-1-768x805.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/English-1-977x1024.png 977w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/English-1.png 1386w\" sizes=\"(max-width: 286px) 100vw, 286px\" \/><\/a><\/td>\n<td><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/French-1.png\"><img decoding=\"async\" class=\"alignnone wp-image-870299 size-medium\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/French-1-295x300.png\" alt=\"French\" width=\"295\" height=\"300\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/French-1-295x300.png 295w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/French-1-147x150.png 147w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/French-1-768x781.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/French-1-1007x1024.png 1007w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/French-1.png 1386w\" sizes=\"(max-width: 295px) 100vw, 295px\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>How do I install and use Multilingual Tools to automatically generate translations?<\/h2>\n<p>This tool allows developers running development sites to check if their theme\/plugin is multilingual ready.It is free and available to download <a href=\"https:\/\/github.com\/OnTheGoSystems\/multilingual-tools\">here<\/a>. It will produce a duplicate of the original content appended with the language code and modify any existing translations; therefore, you should never run it on production or client sites.<\/p>\n<p>Note that WPML Multilingual CMS, WPML String Translation, and WPML Translation Management plugins are required for Multilingual Tools to work.<\/p>\n<p>The Multilingual Tools plugin will automatically generate translations (appending language code with original strings) for:<\/p>\n<ul>\n<li>Posts, pages, and custom types<\/li>\n<li>Custom fields<\/li>\n<li>Tags, categories, and custom taxonomies<\/li>\n<li>All translatable strings<\/li>\n<\/ul>\n<p>Automatic translation generation is achieved by following these three steps:<\/p>\n<h2>Basic WPML setup<\/h2>\n<p>In this tutorial, we will activate the \u201cTwenty Sixteen\u201d theme, and install and activate WPML Multilingual CMS, WPML String Translation, WPML Translation Management, and Multilingual Tools plugins.<\/p>\n<p>WPML\u2019s <a href=\"https:\/\/wpml.org\/documentation\/getting-started-guide\/\">Getting Started Guide<\/a> will help you to set up WPML in only a few minutes. Make sure to add at least one secondary language and set the language switcher (which is an easy way to switch between languages) to be displayed in the footer area in the front end.<\/p>\n<h2>Scanning your theme\/plugin code for text<\/h2>\n<p>Every WordPress theme and plugin has some hard-coded text. If you\u2019ve followed the WordPress coding guidelines, all these texts will be wrapped in gettext calls, described in the <a href=\"https:\/\/codex.wordpress.org\/I18n_for_WordPress_Developers\">WordPress i18n guide<\/a>. If not, now would be a great time to fix this.<\/p>\n<ol>\n<li>Navigate to WPML &gt; Theme and plugins localization.<\/li>\n<li>Choose the \u201cTranslate the theme and plugins using WPML&#8217;s String Translation\u201d option in the \u201cSelect how to translate strings in the theme and plugins\u201d section.<\/li>\n<li>Choose the \u201cWPML will automatically download translations for WordPress\u201d option in the \u201cSelect how to get translations for WordPress core\u201d section.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Theme-and-plugins-localization-1.png\"><img decoding=\"async\" class=\"aligncenter wp-image-870303\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Theme-and-plugins-localization-1-300x94.png\" alt=\"Theme and plugins localization-1\" width=\"540\" height=\"169\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Theme-and-plugins-localization-1-300x94.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Theme-and-plugins-localization-1-150x47.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Theme-and-plugins-localization-1-768x241.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Theme-and-plugins-localization-1-1024x321.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Theme-and-plugins-localization-1.png 1345w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><\/a><\/p>\n<ol start=\"4\">\n<li>Follow this guide to <a href=\"\/?page_id=72727\">Download translations for WordPress<\/a> \u2013 this will take care of any WordPress core strings that your theme is using.<\/li>\n<li>Scroll down and click on the \u201cScan theme for strings\u201d button. If you are testing a plugin, select the checkbox next to it and click on \u201cScan the selected plugins for strings\u201d.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Scan-theme-or-plugin-for-strings.png\"><img decoding=\"async\" class=\"aligncenter wp-image-870307\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Scan-theme-or-plugin-for-strings-300x130.png\" alt=\"Scan theme or plugin for strings\" width=\"540\" height=\"235\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Scan-theme-or-plugin-for-strings-300x130.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Scan-theme-or-plugin-for-strings-150x65.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Scan-theme-or-plugin-for-strings-768x334.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Scan-theme-or-plugin-for-strings-1024x445.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Scan-theme-or-plugin-for-strings.png 1326w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><\/a><\/p>\n<p>Now, WPML is capable of translating all strings that are wrapped in Gettext calls and also has translations for the WordPress core text.<\/p>\n<h2>Auto-duplicate content for other languages<\/h2>\n<p>Now that we have all strings scanned, we can generate translations for the site. Remember that the Multilingual Tools plugin will only translate the sample content that you\u2019ve created. If your theme or plugin requires test content, you should populate it first.<\/p>\n<ol>\n<li>Navigate to Multilingual Tools &gt; Settings<\/li>\n<li>From the \u201cAdd language information to post duplicate\u201d section choose which elements in the posts to auto-translate.<\/li>\n<li>Choose the template of the automatic translated text from the drop-down menu, for example, ([%language_name%] %original_string%). This will append the language name, code, or custom formatted string to your translation.&#8221;<\/li>\n<li>Click on the \u201cSave\u201d button.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Add-language-information-to-post-duplicate.png\"><img decoding=\"async\" class=\"aligncenter wp-image-870310\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Add-language-information-to-post-duplicate-300x128.png\" alt=\"Add language information to post duplicate\" width=\"540\" height=\"230\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Add-language-information-to-post-duplicate-300x128.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Add-language-information-to-post-duplicate-150x64.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Add-language-information-to-post-duplicate-768x328.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Add-language-information-to-post-duplicate-1024x437.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Add-language-information-to-post-duplicate.png 1334w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><\/a><\/p>\n<ol start=\"5\">\n<li>Navigate to WPML &gt; Translation Management<\/li>\n<li>On the \u201cTranslation Dashboard\u201d tab, scroll down and choose the pages and posts that you want to set as translatable.<\/li>\n<li>From the \u201cTranslation options\u201d section, choose the \u201cDuplicate content\u201d option and click on the \u201cDuplicate\u201d button.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Duplicate-content.png\"><img decoding=\"async\" class=\"aligncenter wp-image-870322\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Duplicate-content-300x133.png\" alt=\"Duplicate content\" width=\"540\" height=\"239\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Duplicate-content-300x133.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Duplicate-content-150x66.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Duplicate-content-768x340.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Duplicate-content-1024x454.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/Duplicate-content.png 1331w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><\/a><\/p>\n<ol start=\"8\">\n<li>Navigate back to \u201cMultilingual Tools\u201d &gt; Settings.<\/li>\n<li>Choose the strings within a specific context to translate from the drop-down menu.<\/li>\n<li>Choose the translation languages.<\/li>\n<li>Choose the template of translation from the drop-down menu.<\/li>\n<li>Click on \u201cGenerate strings translations\u201d.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/auto-generate-strings-translations.png\"><img decoding=\"async\" class=\"aligncenter wp-image-870326\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/auto-generate-strings-translations-300x132.png\" alt=\"auto generate strings translations\" width=\"540\" height=\"237\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/auto-generate-strings-translations-300x132.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/auto-generate-strings-translations-150x66.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/auto-generate-strings-translations-768x337.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/auto-generate-strings-translations-1024x450.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/auto-generate-strings-translations.png 1336w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><\/a><\/p>\n<p>Now, you can review your site\u2019s front-end and see the results. In our example, we\u2019ve selected the default Twenty Sixteen theme. You can see that all of the site\u2019s content appears perfectly translated when we view the French content.<\/p>\n<p><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/French-1.png\"><img decoding=\"async\" class=\"aligncenter wp-image-870299\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/French-1-295x300.png\" alt=\"French\" width=\"540\" height=\"549\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/French-1-295x300.png 295w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/French-1-147x150.png 147w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/French-1-768x781.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/French-1-1007x1024.png 1007w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/French-1.png 1386w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><\/a><\/p>\n<p>Hopefully, your theme\/plugin translations will be complete too. If they aren\u2019t, have a look at the <a href=\"https:\/\/codex.wordpress.org\/I18n_for_WordPress_Developers\">WordPress i18n guide<\/a> to learn how to achieve this.<\/p>\n<p>Remember, the purpose of the Multilingual Tools plugin is to quickly show you what needs attention by illustrating what is translatable (and what is not) on the front-end and help you to re-test after you\u2019ve made changes to your code. The tool cannot automatically edit code and fix compatibility problems.<\/p>\n<h2>How do I generate language configuration files using Multilingual Tools?<\/h2>\n<p>WPML can read a configuration file that points out strings that need translation and saves preferred translation options for themes and plugins. The file is named wpml-config.xml and it\u2019s placed in the root folder of the plugin or theme. Read more about how the <a href=\"https:\/\/wpml.org\/documentation\/support\/language-configuration-files\/\">language configuration file<\/a><u>s<\/u> work.<\/p>\n<p>To generate your theme\/plugin language configuration file, follow these steps:<\/p>\n<p>Go to the Multilingual Tools &gt; Configuration Generation screen. You will find four sections:<\/p>\n<ul>\n<li>Custom Post Types (CPTs)<\/li>\n<li>Custom Taxonomies (CTs)<\/li>\n<li>Custom fields<\/li>\n<li>Admin Texts<\/li>\n<\/ul>\n<p>Each section will allow you to set whether it is to be translatable. Note that for this example, we activated the Larx theme because it includes CPT, CT, custom fields, and admin texts.<\/p>\n<ol>\n<li>In the CPT section, choose the custom posts that you want to set for translation and choose the translate option. In our case, these are \u201ctestimonials\u201d and \u201cportfolio\u201d.<\/li>\n<li>In the CTs section, choose the CTs that you want to set for translation and choose the translate option. In our case, it is \u201cproject-type\u201d.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-CPTs-and-CTs-for-translation.png\"><img decoding=\"async\" class=\"aligncenter wp-image-870339\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-CPTs-and-CTs-for-translation-300x128.png\" alt=\"set CPTs and CTs for translation\" width=\"540\" height=\"230\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-CPTs-and-CTs-for-translation-300x128.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-CPTs-and-CTs-for-translation-150x64.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-CPTs-and-CTs-for-translation-768x328.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-CPTs-and-CTs-for-translation-1024x437.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-CPTs-and-CTs-for-translation.png 1329w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><\/a><\/p>\n<ol start=\"3\">\n<li>Custom fields are set for translation in a different manner, as custom fields can be found in regular posts, pages, or custom posts of the theme. You will need to create a test post, add values to the custom fields, and publish it.<\/li>\n<\/ol>\n<p style=\"padding-left: 30px;\">As an example, we will create a regular post and set its custom fields; in our case, they are \u201cSidebar Position\u201d and \u201cTheme style\u201d. Then, click on the \u201cPublish\u201d button.<\/p>\n<ol start=\"4\">\n<li>Navigate to Multilingual Tools &gt; Configuration Generator to find the custom fields, (_cmb_post_sidebar_layout) and (_cmb_theme_style), registered. Choose them and set them to copy, as they are layout settings and don\u2019t require actual translation. If the custom filed is a user input and requires translation, set it to translate.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-custom-fields-for-translation.png\"><img decoding=\"async\" class=\"aligncenter wp-image-870342\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-custom-fields-for-translation-300x135.png\" alt=\"set custom fields for translation\" width=\"540\" height=\"243\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-custom-fields-for-translation-300x135.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-custom-fields-for-translation-150x68.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-custom-fields-for-translation-768x346.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-custom-fields-for-translation-1024x461.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-custom-fields-for-translation.png 1332w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-custom-fields-for-translation-2.png\"><img decoding=\"async\" class=\"aligncenter wp-image-870344\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-custom-fields-for-translation-2-300x135.png\" alt=\"set custom fields for translation-2\" width=\"540\" height=\"242\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-custom-fields-for-translation-2-300x135.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-custom-fields-for-translation-2-150x67.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-custom-fields-for-translation-2-768x345.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-custom-fields-for-translation-2-1024x460.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-custom-fields-for-translation-2.png 1332w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><\/a><\/p>\n<p>Note that for custom fields that require translation (a CT that requires the user to type in a string), you will choose the translate option.<\/p>\n<ol start=\"5\">\n<li>To set admin texts for translation, we will need to take the option name from the database. Follow these steps:<\/li>\n<\/ol>\n<ul type=\"a\">\n<li>Go to the page where admin texts are saved. In our case, we will navigate to the Larx &gt; Footer settings tab.<\/li>\n<li>Copy the footer text.<\/li>\n<li>Open phpMyAdmin or Adminer. Then, choose the \u201cwp_options\u201d table and search for the text, as shown below.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/search-DB-for-theme-option-name.png\"><img decoding=\"async\" class=\"aligncenter wp-image-870357\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/search-DB-for-theme-option-name-300x138.png\" alt=\"search DB for theme option name\" width=\"540\" height=\"249\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/search-DB-for-theme-option-name-300x138.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/search-DB-for-theme-option-name-150x69.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/search-DB-for-theme-option-name-768x354.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/search-DB-for-theme-option-name-1024x472.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/search-DB-for-theme-option-name.png 1353w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><\/a><\/p>\n<ul type=\"a\">\n<li>Now, we have the theme option name from the database.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-870366\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/search-DB-for-theme-option-name-2-300x110.png\" alt=\"search DB for theme option name-2\" width=\"540\" height=\"198\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/search-DB-for-theme-option-name-2-300x110.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/search-DB-for-theme-option-name-2-150x55.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/search-DB-for-theme-option-name-2-768x282.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/search-DB-for-theme-option-name-2-1024x376.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/search-DB-for-theme-option-name-2.png 1331w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><\/p>\n<ul type=\"a\">\n<li>Navigate back to Multilingual Tools and choose the theme options name from the drop-down menu.<\/li>\n<li>You will need to decide which options need to be translated. For the theme in this example, we set the Logo and Footer Text to be translated.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-870367\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-admin-text-to-be-translatable-300x135.png\" alt=\"set admin text to be translatable\" width=\"540\" height=\"244\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-admin-text-to-be-translatable-300x135.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-admin-text-to-be-translatable-150x68.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-admin-text-to-be-translatable-768x347.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-admin-text-to-be-translatable-1024x462.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/04\/set-admin-text-to-be-translatable.png 1338w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><\/p>\n<ul type=\"a\">\n<li>Scroll down and choose \u201cSave to theme directory\u201d to automatically place the language configuration file in the theme folder or choose \u201cSave to file\u201d to download the file. Then, click on the \u201cGenerate\u201d button.<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>The Multilingual Tools plugin can help you to automatically generate translations by appending language code to your theme\/plugin original strings; thus, you can test the multilingual abilities of your theme\/plugin. It can also help you to generate a WPML language configuration file in a few minutes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Why do I need the Multilingual Tools plugin? The Multilingual Tools plugin can help theme and plugin developers to test their products\u2019 multilingual capabilities. It will automatically add language code or custom notices to translated content, allowing the developer to review what is working correctly and what requires modification to be translated. With this tool [&hellip;]<\/p>\n","protected":false},"author":76577,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"ep_exclude_from_search":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-870282","post","type-post","status-publish","format-standard","hentry","category-announcements"],"_links":{"self":[{"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/posts\/870282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/users\/76577"}],"replies":[{"embeddable":true,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/comments?post=870282"}],"version-history":[{"count":8,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/posts\/870282\/revisions"}],"predecessor-version":[{"id":1445912,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/posts\/870282\/revisions\/1445912"}],"wp:attachment":[{"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/media?parent=870282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/categories?post=870282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/tags?post=870282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}