{"id":4899,"date":"2018-08-22T09:35:05","date_gmt":"2018-08-22T04:05:05","guid":{"rendered":"https:\/\/www.hiddentechies.com\/blog\/?p=4899"},"modified":"2020-10-09T18:52:01","modified_gmt":"2020-10-09T13:22:01","slug":"translate-new-strings-of-default-theme-prestashop-1-7","status":"publish","type":"post","link":"https:\/\/www.hiddentechies.com\/blog\/prestashop\/translate-new-strings-of-default-theme-prestashop-1-7\/","title":{"rendered":"How to translate new strings of default theme in PrestaShop 1.7"},"content":{"rendered":"<p>Your custom theme might contain new strings that are not present in the default theme of PrestaShop. Developers don\u2019t always create translation ready themes, so when you\u2019re buying a premium theme make sure to ask if it\u2019s translation ready. If your theme doesn&#8217;t have the language that you want, then you can create the translations yourself.<\/p>\n<div style=\"display: block; float: left; width: 100%; padding: 30px 0; background: black; border-radius: 5px; margin: 0 0 25px 0;\">\n<p style=\"text-align: center;\"><a style=\"color: #fff; font-size: 28px; font-weight: 600;\" href=\"https:\/\/www.hiddentechies.com\/blog\/ecommerce-tips\/why-choose-premium-prestashop-themes\/\" target=\"_blank\" rel=\"noopener noreferrer\"> Why to Choose Our Premium Prestashop Themes <\/a><\/p>\n<\/div>\n<p>Follow these few steps to translate your new strings in PrestaShop 1.7.<\/p>\n<p><span style=\"color: red;\"><strong>NOTE :<\/strong><\/span> You can only follow this process, If your files are indeed in the theme folder.<\/p>\n<p class=\"ht-sub-heading\">1. Use a custom domain for the new strings<\/p>\n<p>For example \u201cShop.Test\u201d<\/p>\n<p>It must :<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Start by \u201cShop\u201d<\/li>\n<li>Have 2 levels only. Like \u201cShop.Test\u201d- \u201cShop.Test.Contact\u201d won\u2019t work.<\/li>\n<li>Not be in CamelCase. Like \u201cShop.Testtheme\u201d<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&#8211; \u201cShop.TestTheme\u201d won\u2019t work.<\/p>\n<p>See below Example :<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4910\" src=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/string-translation-prestashop.png\" alt=\"string-translation-prestashop\" width=\"469\" height=\"84\" srcset=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/string-translation-prestashop.png 469w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/string-translation-prestashop-300x54.png 300w\" sizes=\"(max-width: 469px) 100vw, 469px\" \/><\/p>\n<hr \/>\n<p class=\"ht-sub-heading\">2. Now, Export the language zip file from the Back-office.<\/p>\n<p>Go to International <strong>&gt;<\/strong> Translations <strong>&gt;<\/strong> Export a language and select a language.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4916\" src=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/translate-prestashop-1.7-1.png\" alt=\"translate-prestashop-1.7\" width=\"1349\" height=\"569\" srcset=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/translate-prestashop-1.7-1.png 1349w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/translate-prestashop-1.7-1-300x127.png 300w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/translate-prestashop-1.7-1-768x324.png 768w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/translate-prestashop-1.7-1-1024x432.png 1024w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/translate-prestashop-1.7-1-800x337.png 800w\" sizes=\"(max-width: 1349px) 100vw, 1349px\" \/><\/p>\n<p>This will export language zip file.<\/p>\n<p>For example :<\/p>\n<p>If you\u2019ve chosen Spanish language, It will export file \u201ctest.es-ES.zip\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4914\" src=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/export-translate-prestashop-1.7.png\" alt=\"export-translate-prestashop-1.7\" width=\"1135\" height=\"315\" srcset=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/export-translate-prestashop-1.7.png 1135w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/export-translate-prestashop-1.7-300x83.png 300w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/export-translate-prestashop-1.7-768x213.png 768w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/export-translate-prestashop-1.7-1024x284.png 1024w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/export-translate-prestashop-1.7-800x222.png 800w\" sizes=\"(max-width: 1135px) 100vw, 1135px\" \/><\/p>\n<hr \/>\n<p class=\"ht-sub-heading\">3. Extract the zip file and copy all .xlf file.<\/p>\n<p>Here you will find all .xlf files. Copy that all <strong>.xlf<\/strong> file.<\/p>\n<hr \/>\n<p class=\"ht-sub-heading\">4. Paste the all files into the translation folder of your theme.<\/p>\n<p>If necessary, create a folder for the language.<\/p>\n<p>For example:<\/p>\n<p>If you exported the Spanish, you have to add \u201ces-ES\u201d folder in translations folder.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4928\" src=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/xlf-translate-prestashop-1.7.png\" alt=\"xlf-translate-prestashop-1.7\" width=\"351\" height=\"467\" srcset=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/xlf-translate-prestashop-1.7.png 351w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/xlf-translate-prestashop-1.7-225x300.png 225w\" sizes=\"(max-width: 351px) 100vw, 351px\" \/><\/p>\n<hr \/>\n<p class=\"ht-sub-heading\">5. Translate the new strings from the Back-office.<\/p>\n<p>Go to International <strong>&gt;<\/strong> Translations <strong>&gt;<\/strong> Modify translations.<\/p>\n<p>Select \u201cThemes translation\u201d, your theme, and the language you want to translate.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4918\" src=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/modify-translate-prestashop-1.7.png\" alt=\"modify-translate-prestashop-1.7\" width=\"1117\" height=\"344\" srcset=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/modify-translate-prestashop-1.7.png 1117w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/modify-translate-prestashop-1.7-300x92.png 300w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/modify-translate-prestashop-1.7-768x237.png 768w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/modify-translate-prestashop-1.7-1024x315.png 1024w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/modify-translate-prestashop-1.7-800x246.png 800w\" sizes=\"(max-width: 1117px) 100vw, 1117px\" \/><\/p>\n<p>You will find your domain name in the Shop section, with all your strings of your theme:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4920\" src=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/replace-translate-prestashop-1.7.png\" alt=\"replace-translate-prestashop-1.7\" width=\"1149\" height=\"502\" srcset=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/replace-translate-prestashop-1.7.png 1149w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/replace-translate-prestashop-1.7-300x131.png 300w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/replace-translate-prestashop-1.7-768x336.png 768w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/replace-translate-prestashop-1.7-1024x447.png 1024w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/replace-translate-prestashop-1.7-800x350.png 800w\" sizes=\"(max-width: 1149px) 100vw, 1149px\" \/><\/p>\n<p>Translate your new strings, You can use a simple search to find all of the strings quickly then Click Save to confirm the change to your theme.<\/p>\n<hr \/>\n<p class=\"ht-sub-heading\">6. Then, Export your theme from the Back-office<\/p>\n<p>Once you change the all translations you need, export your theme.<\/p>\n<p>Go to Design <strong>&gt;<\/strong> Theme &amp; Logo <strong>&gt;<\/strong> Export current theme.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4922\" src=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/export-theme-translate-prestashop.png\" alt=\"export-theme-translate-prestashop\" width=\"1139\" height=\"185\" srcset=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/export-theme-translate-prestashop.png 1139w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/export-theme-translate-prestashop-300x49.png 300w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/export-theme-translate-prestashop-768x125.png 768w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/export-theme-translate-prestashop-1024x166.png 1024w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/08\/export-theme-translate-prestashop-800x130.png 800w\" sizes=\"(max-width: 1139px) 100vw, 1139px\" \/><\/p>\n<p>Your theme is translated!<\/p>\n<p>If you still have any doubts, feel free to ask in comments and we\u2019ll reply as soon as possible.<\/p>\n<div class=\"angwp_12010 _ning_cont _ning_hidden _ning_outer _align_center responsive\" data-size=\"custom\" data-bid=\"12010\" data-aid=\"0\" style=\"max-width:800px; width:100%;height:inherit;\"><div class=\"_ning_label _left\" style=\"\"><\/div><div class=\"_ning_inner\" style=\"\"><a href=\"https:\/\/www.hiddentechies.com\/blog?_dnlink=12010&t=1776005034\" class=\"strack_cli _ning_link\" target=\"_blank\">&nbsp;<\/a><div class=\"_ning_elmt\"><img decoding=\"async\" src=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/angwp\/items\/12010\/Banner-2.png\" \/><\/div><\/div><\/div><div class=\"clear\"><\/div>","protected":false},"excerpt":{"rendered":"<p>Your custom theme might contain new strings that are not present in the default theme of PrestaShop. Developers don\u2019t always create translation ready themes, so when you\u2019re buying a premium theme make sure to ask if it\u2019s translation ready. If your theme doesn&#8217;t have the language that you want, then you can create the translations&#8230; <\/p>\n<div class=\"actions\"><a href=\"https:\/\/www.hiddentechies.com\/blog\/prestashop\/translate-new-strings-of-default-theme-prestashop-1-7\/\">Continue Reading<\/a><\/div>\n","protected":false},"author":1,"featured_media":4976,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[221,222,2139],"tags":[385,382,384,381,313,329,348,331,383,386],"_links":{"self":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/4899"}],"collection":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/comments?post=4899"}],"version-history":[{"count":29,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/4899\/revisions"}],"predecessor-version":[{"id":10571,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/4899\/revisions\/10571"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/media\/4976"}],"wp:attachment":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/media?parent=4899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/categories?post=4899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/tags?post=4899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}