{"id":17727,"date":"2020-09-01T12:39:16","date_gmt":"2020-09-01T12:39:16","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?post_type=ht_kb&#038;p=17727"},"modified":"2020-09-01T14:40:19","modified_gmt":"2020-09-01T14:40:19","slug":"how-to-use-pot-file-to-translate-amp-settings-panel","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/how-to-use-pot-file-to-translate-amp-settings-panel\/","title":{"rendered":"How to use POT file to translate amp settings panel"},"content":{"rendered":"\n<p> <a rel=\"noreferrer noopener\" href=\"http:\/\/www.poedit.net\/\" target=\"_blank\">Poedit<\/a>&nbsp;is a software (available for Windows, Mac and Linux) which you can use to translate the theme or plugin. It\u2019s available for free on&nbsp;<a rel=\"noreferrer noopener\" href=\"http:\/\/www.poedit.net\/\" target=\"_blank\">poedit.net<\/a>. <\/p>\n\n\n\n<p><strong>Here are the steps:<\/strong><\/p>\n\n\n\n<p><strong>Step 1 &#8211;<\/strong> Open Poedit and select\u00a0File -> New Catalog from POT \/ PO file<\/p>\n\n\n\n<p> <strong>Step <\/strong> <strong>2<\/strong> <strong>&#8211; <\/strong>Select the accelerated-mobile-pages .POT file which you can find under this path <strong>( wp-content\\plugins\\ accelerated-mobile-pages \\languages\\accelerated-mobile-pages.pot)<\/strong><\/p>\n\n\n\n<p> <strong>Step <\/strong> <strong>3 &#8211;<\/strong> \u00a0A box will pop up asking for language of the translation. Select your language:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/wplang.org\/wp-content\/uploads\/2014\/07\/Poedit-Select-Language.jpg\" alt=\"Poedit Select Language\" class=\"wp-image-4975\"\/><\/figure><\/div>\n\n\n\n<p> <strong>Step <\/strong> <strong>4<\/strong> <strong>&#8211;<\/strong> \u00a0Hit OK and Poedit will name automatically your file. If you select Spanish (Spain):\u00a0<strong>es_ES.po<\/strong><\/p>\n\n\n\n<p> <strong>Step <\/strong> <strong>5<\/strong> <strong>&#8211;<\/strong> \u00a0Save your file in your computer<\/p>\n\n\n\n<p> <strong>Step <\/strong> <strong>6<\/strong> <strong>&#8211;<\/strong> \u00a0Now you can start translating your theme or your plugin. The space at the top will display all the text ready to translate, and any completed translations will display to the right. The boxes underneath show the source text, your translation and any notes for translators. Translating is really easy \u2013 just select a word or phrase, enter your translation and click \u201cValidate\u201d.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"565\" height=\"575\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/09\/3.png\" alt=\"\" class=\"wp-image-17729\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/09\/3.png 565w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/09\/3-295x300.png 295w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/09\/3-50x50.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/09\/3-60x60.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/09\/3-98x100.png 98w\" sizes=\"(max-width: 565px) 100vw, 565px\" \/><\/figure><\/div>\n\n\n\n<p><strong>IMPORTANT<\/strong>:<\/p>\n\n\n\n<ul><li>You have to respect all special characters from the original text when translating (look at\u00a0the screen capture)<\/li><li>It\u00b4s not necessary to translate all text strings. Perhaps you can save the file after translating the required text. <\/li><\/ul>\n\n\n\n<p> <strong>Step <\/strong> <strong>7<\/strong> <strong>&#8211;<\/strong> When you\u2019ve finished, save your file. Poedit will automatically create both .po and .mo files. You\u00b4ll have to upload both to your directory.<\/p>\n\n\n\n<p><strong>The directory will look like<\/strong><\/p>\n\n\n\n<p>ex: \\wp-content\\languages\\Plugins folder<\/p>\n\n\n\n<p>If in wp-content languages folder does not exist then create a languages folder and after that if in languages folder plugins folder does not exist then create a plugins folder in this plugins folder save you file.<\/p>\n\n\n\n<p><strong>  Like this you need to create file name <\/strong><\/p>\n\n\n\n<p><strong> accelerated-mobile-pages-language code_country code <\/strong><\/p>\n\n\n\n<p> If you select Spanish (Spain):\u00a0<strong>es_ES.po<\/strong>  <\/p>\n\n\n\n<p><strong>For example &#8211;<\/strong> accelerated-mobile-pages-es_ES.po<\/p>\n\n\n\n<p><strong>Note:<\/strong> Make sure you are placing both po and mo files in languages\/plugins folder<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"783\" height=\"56\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/09\/photo_2020-09-01_20-06-44.jpg\" alt=\"\" class=\"wp-image-17741\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/09\/photo_2020-09-01_20-06-44.jpg 783w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/09\/photo_2020-09-01_20-06-44-300x21.jpg 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/09\/photo_2020-09-01_20-06-44-768x55.jpg 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/09\/photo_2020-09-01_20-06-44-50x4.jpg 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/09\/photo_2020-09-01_20-06-44-60x4.jpg 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/09\/photo_2020-09-01_20-06-44-100x7.jpg 100w\" sizes=\"(max-width: 783px) 100vw, 783px\" \/><\/figure>\n\n\n\n<h4>To make it easy, we have created a video also<\/h4>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/09\/Recording-2-1.mp4\"><\/video><\/figure>\n\n\n\n<p><strong>That\u2019s it for this tutorial!<\/strong><\/p>\n\n\n\n<p>We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.<\/p>\n<div id=\"div-1\" class=\"hkb-feedback\">\n\t\t\t<strong class=\"ht-mobile-exit__title\">Ask your Questions Directly!<\/strong><br>\n\t\t\t<div class=\"hkb_widget_exit__content\" style=\"font-size: 14px;\">If you can't find the solutions in this article, then just ask us in the comments and we will answer it for you!<\/div>\n\t\t\t<a href=\"https:\/\/ampforwp.com\/support\/#contact\" id=\"button\" target=\"_blank\" rel=\"noopener noreferrer\"><button>Yes, I have a Question<\/button><\/a>\n\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Poedit&nbsp;is a software (available for Windows, Mac and Linux) which you can use to translate the theme or plugin. It\u2019s available for free on&nbsp;poedit.net. Here are the steps: Step 1 &#8211; Open Poedit and select\u00a0File -> New Catalog from POT \/ PO file Step 2 &#8211; Select the accelerated-mobile-pages .POT&#8230;<\/p>\n","protected":false},"author":18,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[34],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/17727"}],"collection":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/comments?post=17727"}],"version-history":[{"count":11,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/17727\/revisions"}],"predecessor-version":[{"id":17742,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/17727\/revisions\/17742"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=17727"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=17727"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=17727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}