{"id":34912,"date":"2014-07-16T09:59:37","date_gmt":"2014-07-16T13:59:37","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=34912"},"modified":"2016-02-18T06:28:22","modified_gmt":"2016-02-18T11:28:22","slug":"opencart-fixing-the-missing-translations-issues","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/opencart-fixing-the-missing-translations-issues.html","title":{"rendered":"OpenCart 1.5.x. Fixing the missing translations issues"},"content":{"rendered":"<p><\/p>\r\n<p>The following tutorial will show you how to fix missing translations after a new language installation in an OpenCart template.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=qIJV5fmIETU?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart. Fixing missing translations issues<\/a><\/p>\r\n<ol>\r\n<li>\r\n<p>If you have added a new language to your OpenCart, but instead of some translations you see just pieces of code like <strong>text_follow<\/strong>, that means the used language pack is incomplete.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_fixing_missing_translations_issues_1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_fixing_missing_translations_issues_1-300x168.jpg\" alt=\"opencart_fixing_missing_translations_issues_1\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-34913\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_fixing_missing_translations_issues_1-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_fixing_missing_translations_issues_1-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_fixing_missing_translations_issues_1.jpg 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>Let&#8217;s show how to add translations manually.<\/p>\r\n<\/li>\r\n<li>\r\n<p> Copy the code of the missing translation from your browser. That is <strong>text_follow<\/strong> in our case. <\/p>\r\n<\/li>\r\n<li>\r\n<p> Open the theme fullpackage folder with some file manager software that allows search by text function. We prefer <strong>Total Commander<\/strong>.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Click the <strong>Alt + F7<\/strong> hotkeys and activate the <strong>Find text<\/strong> option. Paste the code of missing translation into the search bar and click the <strong>Start search <\/strong>button.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_fixing_missing_translations_issues_2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_fixing_missing_translations_issues_2-300x168.jpg\" alt=\"opencart_fixing_missing_translations_issues_2\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-34914\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_fixing_missing_translations_issues_2-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_fixing_missing_translations_issues_2-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_fixing_missing_translations_issues_2.jpg 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>The software shows the list of files containing this code.<\/p>\r\n<p class=\"attention\">NOTE: Original files with translations are located either in &#8220;catalog\/language\/english&#8221; or in &#8220;vqmod\/xml&#8221; folders of your theme package.<\/p>\r\n<\/li>\r\n<li>\r\n<p> In our case, the required file is <strong>&#8220;vqmod\\xml\\tm_footer.xml.&#8221;<\/strong> Open it with some code editor, for instance, Adobe DreamWeaver or Notepad ++, and look for the missing translation code.<\/p>\r\n<\/li>\r\n<li>\r\n<p> Here we can see the following code:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_fixing_missing_translations_issues_3.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_fixing_missing_translations_issues_3-300x168.jpg\" alt=\"opencart_fixing_missing_translations_issues_3\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-34915\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_fixing_missing_translations_issues_3-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_fixing_missing_translations_issues_3-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_fixing_missing_translations_issues_3.jpg 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<pre class=\"brush:php\">      \r\n     \t\t$_['text_follow']   = 'Follow Us';\r\n    \t\t$_['text_support']   = 'Online support';\r\n    \t\t$_['text_fb']   = 'Facebook';\r\n   \t\t\t$_['text_twi']   = 'Twitter';\r\n    \t\t$_['text_rss']   = 'RSS';\r\n    \t\t$_['text_yt']   = 'You Tube';\r\n        <\/pre>\r\n<p>These are PHP language commands that define titles for the Follow us footer block in the English version. Copy them all.<\/p>\r\n<\/li>\r\n<li>\r\n<p>If you look a few lines above, you will see the code:<\/p>\r\n<pre class=\"brush:xml\"> <file name=\"catalog\/language\/*\/common\/footer.php\"> <\/pre>\r\n<p> That means the English language file for this block is called <strong>footer.php<\/strong> and is located in the <strong>catalog\/language\/english\/common<\/strong> folder. We need to add missing translations to the footer.php file of our new language pack.<\/p>\r\n<\/li>\r\n<li>\r\n<p> Enter your hosting server using CPanel File Manager or FTP-client software (Total Commander, FileZilla, etc).<\/p>\r\n<\/li>\r\n<li>\r\n<p> Nagivate to the <strong>&#8220;catalog\/language\/your_new_language\/common&#8221;<\/strong> folder of your OpenCart installation and open the <strong>footer.php<\/strong> file with some code editor.<\/p>\r\n<\/li>\r\n<li>\r\n<p> Paste the code you copied from tm_footer.xml within PHP code block (within <strong>&lt;?php   ?&gt;<\/strong>) and translate English words into the required language.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_fixing_missing_translations_issues_4.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_fixing_missing_translations_issues_4-300x168.jpg\" alt=\"opencart_fixing_missing_translations_issues_4\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-34916\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_fixing_missing_translations_issues_4-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_fixing_missing_translations_issues_4-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_fixing_missing_translations_issues_4.jpg 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p> Save the changes. Check your website front end. We managed to fix the missing translation issue successfully.<\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=qIJV5fmIETU?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart. Fixing missing translations issues<\/a><\/p>\r\n<p><\/p>\r\n<p><\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>The following tutorial will show you how to fix missing translations after a new language installation in an OpenCart template.<\/p>\n","protected":false},"author":49,"featured_media":34919,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1156],"tags":[1373,777,1157,1485,518,1262,1696],"class_list":["post-34912","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-opencart-tutorials","tag-fix","tag-missing","tag-opencart-2","tag-solution","tag-text","tag-translations","tag-untranslated"],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/34912","targetHints":{"allow":["GET"]}}],"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\/49"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=34912"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/34912\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/34919"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=34912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=34912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=34912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}