{"id":79887,"date":"2017-03-07T10:23:57","date_gmt":"2017-03-07T15:23:57","guid":{"rendered":"https:\/\/www.templatemonster.com\/help\/?p=79887"},"modified":"2017-05-25T04:42:09","modified_gmt":"2017-05-25T08:42:09","slug":"opencart-2-x-deal-missing-translations-new-languages","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/opencart-2-x-deal-missing-translations-new-languages.html","title":{"rendered":"OpenCart 2.x. How to deal with missing translations in new languages"},"content":{"rendered":"<p>It often happens that after <a target=\"_blank\" href=\"\/help\/opencart-2-x-how-to-install-a-new-language-and-set-default-frontendbackend-language.html\">adding a new language in OpenCart<\/a> templates and copying language files from the sample languages, some translations are still missing.<\/p>\r\n<p>In this tutorial we will show you how to deal with missing translations in the newly added languages in Opencart 2x templates.<\/p>\r\n\r\n<div class=\"video-container\">\r\n\t<iframe src=\"https:\/\/www.youtube.com\/embed\/24P13WtcBWo\"><\/iframe>\r\n<\/div>\r\n<ol>\r\n    <li><p>Log into your hosting cPanel account or connect to your server via the FTP.<\/p><\/li>\r\n\t<li><p>Locate the file in which the missing section may be added. Most likely it is a file from the <strong>&#8216;common&#8217;<\/strong> folder (header.php or footer.php) or <strong>&#8216;modules&#8217;<\/strong> in <strong>catalog\/language\/your language&#8217;<\/strong>. <\/p><\/li>\r\n\t<li><p>Navigate to <strong>&#8216;system\/storage\/modification\/catalog\/language\/en-gb&#8217;<\/strong> folder, then select either &#8216;common&#8217; or &#8216;modules&#8217;, and open the correct file with a code editor.<\/p>\r\n\t\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2017\/03\/OpenCart_2.x_How_to_deal_with_missing_translations_in_new_languages_1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2017\/03\/OpenCart_2.x_How_to_deal_with_missing_translations_in_new_languages_1.jpg\" alt=\"\" width=\"1288\" height=\"424\" class=\"alignnone size-full wp-image-79888\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/03\/OpenCart_2.x_How_to_deal_with_missing_translations_in_new_languages_1.jpg 1288w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/03\/OpenCart_2.x_How_to_deal_with_missing_translations_in_new_languages_1-150x49.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/03\/OpenCart_2.x_How_to_deal_with_missing_translations_in_new_languages_1-300x99.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/03\/OpenCart_2.x_How_to_deal_with_missing_translations_in_new_languages_1-768x253.jpg 768w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/03\/OpenCart_2.x_How_to_deal_with_missing_translations_in_new_languages_1-1024x337.jpg 1024w\" sizes=\"(max-width: 1288px) 100vw, 1288px\" \/><\/a>\t\r\n\t<\/li>\r\n\t<li><p>Copy the phrase you want to translate to the same file of your language in <strong>catalog\/language\/your language\/common or modules<\/strong> folder, and add the correct translation for it.<\/p>\r\n\t\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2017\/03\/OpenCart_2.x_How_to_deal_with_missing_translations_in_new_languages_2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2017\/03\/OpenCart_2.x_How_to_deal_with_missing_translations_in_new_languages_2.jpg\" alt=\"\" width=\"1292\" height=\"476\" class=\"alignnone size-full wp-image-79889\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/03\/OpenCart_2.x_How_to_deal_with_missing_translations_in_new_languages_2.jpg 1292w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/03\/OpenCart_2.x_How_to_deal_with_missing_translations_in_new_languages_2-150x55.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/03\/OpenCart_2.x_How_to_deal_with_missing_translations_in_new_languages_2-300x111.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/03\/OpenCart_2.x_How_to_deal_with_missing_translations_in_new_languages_2-768x283.jpg 768w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/03\/OpenCart_2.x_How_to_deal_with_missing_translations_in_new_languages_2-1024x377.jpg 1024w\" sizes=\"(max-width: 1292px) 100vw, 1292px\" \/><\/a>\t\r\n\t<\/li>\r\n\t<li><p>Save the file and check the change on your site frontend.<\/p><\/li> \r\n<\/ol>\r\n<p><strong>The most frequently asked phrases and their location in the English (sample) language:<\/strong><\/p>\r\n<ul class=\"list\">\r\n        <li><p><strong>Shopping cart<\/strong> (in header section): <strong>cart.php<\/strong> in &#8216;system\/storage\/modification\/catalog\/language\/en-gb\/common&#8217; folder.<\/p><\/li>\r\n\t\t<li><p><strong>Quick View:<\/strong> any of the product modules files (&#8216;bestseller.php&#8217;, &#8216;featured.php&#8217;, &#8216;latest.php&#8217;, &#8216;special.php&#8217; in &#8216;system\/storage\/modification\/catalog\/language\/en-gb\/module&#8217; folder.<\/p><\/li>\r\n\t\t<li><p><strong>New<\/strong> and <strong>Sale<\/strong> labels on products: any of the product modules files (&#8216;bestseller.php&#8217;, &#8216;featured.php&#8217;, &#8216;latest.php&#8217;, &#8216;special.php&#8217; in &#8216;system\/storage\/modification\/catalog\/language\/en-gb\/module&#8217; folder.<\/p><\/li>\r\n\t\t<li><p>The product tabs names (New, Featured, Specials): <strong>tm_module_tab.php<\/strong> file in <strong>&#8216;catalog\/language\/en-gb\/module&#8217;<\/strong> folder (not in &#8216;system\/storage\/modification&#8217;).<\/p><\/li>\r\n\t\t<li><p>The contact information in header (in some templates): <strong>header.php<\/strong> in &#8216;system\/storage\/modification\/catalog\/language\/en-gb\/common&#8217; folder.<\/p><\/li>\r\n   <\/ul>\r\n<p class=\"attention\">Note: you shouldn&#8217;t create a folder for the newly added language in <strong>&#8216;system\/storage\/modification\/catalog\/language&#8217;<\/strong> folder, but copy the missing phrases from English to the <strong>catalog\/language\/your language&#8217;<\/strong>.<\/p>\r\n<p>We hope the tutorial was useful for you.<\/p>\r\n<p>Need more templates? Have a look at our collection of high-quality <a href=\"https:\/\/www.templatemonster.com\/opencart-templates.php\" target=\"_blank\" title=\"OpenCart Templates\">OpenCart themes<\/a>.<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=24P13WtcBWo?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart 2.x. How to deal with missing translations in new languages<\/a>","protected":false},"excerpt":{"rendered":"<p>In this tutorial we will show you how to deal with missing translations in the newly added languages in Opencart 2x templates.<\/p>\n","protected":false},"author":78,"featured_media":79890,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1156],"tags":[540,777,2285,701],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/79887"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/78"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=79887"}],"version-history":[{"count":5,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/79887\/revisions"}],"predecessor-version":[{"id":80763,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/79887\/revisions\/80763"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/79890"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=79887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=79887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=79887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}