{"id":67314,"date":"2016-03-24T05:00:27","date_gmt":"2016-03-24T09:00:27","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=67314"},"modified":"2016-04-07T08:48:47","modified_gmt":"2016-04-07T12:48:47","slug":"prestashop-1-6-x-how-to-display-full-language-name-instead-of-its-iso-code-and-vice-versa-in-the-language-switcher","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/prestashop-1-6-x-how-to-display-full-language-name-instead-of-its-iso-code-and-vice-versa-in-the-language-switcher.html","title":{"rendered":"PrestaShop 1.6.x How to display full language name instead of its ISO code (and vice versa) in the language switcher"},"content":{"rendered":"<a href=\"http:\/\/www.youtube.com\/watch?v=XAPgZPqa2vQ?width=1280&amp;height=720\" rel=\"prettyPhoto\">PrestaShop 1.6.x How to display full language name instead of its ISO code (and vice versa) in the language switcher<\/a>\r\n<p>This tutorial will show you how to display <strong>full language name<\/strong> instead of its <strong>ISO code<\/strong> in the language switcher of your PrestaShop website: <\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2016\/03\/PrestaShop_How_to_display_full_language_name_instead_of_its-_ISO-_code_1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/03\/PrestaShop_How_to_display_full_language_name_instead_of_its-_ISO-_code_1-300x162.png\" alt=\"PrestaShop_How_to_display_full_language_name_instead_of_its _ISO _code_1\" width=\"300\" height=\"162\" class=\"aligncenter size-medium wp-image-67315\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/03\/PrestaShop_How_to_display_full_language_name_instead_of_its-_ISO-_code_1-300x162.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/03\/PrestaShop_How_to_display_full_language_name_instead_of_its-_ISO-_code_1-150x81.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/03\/PrestaShop_How_to_display_full_language_name_instead_of_its-_ISO-_code_1.png 408w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<ol>\r\n<li><p>Access your server using any <strong>FTP<\/strong> software of <strong>FileManager<\/strong> provided by your host.<\/p><\/li>\r\n<li><p>Navigate to <strong>\/themes\/themeXXXX\/modules\/blocklanguages\/<\/strong> directory where <strong>XXXX<\/strong> is the number of your theme: <\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2016\/03\/PrestaShop_How_to_display_full_language_name_instead_of_its-_ISO-_code_2.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/03\/PrestaShop_How_to_display_full_language_name_instead_of_its-_ISO-_code_2-300x161.png\" alt=\"PrestaShop_How_to_display_full_language_name_instead_of_its _ISO _code_2\" width=\"300\" height=\"161\" class=\"aligncenter size-medium wp-image-67316\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/03\/PrestaShop_How_to_display_full_language_name_instead_of_its-_ISO-_code_2-300x161.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/03\/PrestaShop_How_to_display_full_language_name_instead_of_its-_ISO-_code_2-150x80.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/03\/PrestaShop_How_to_display_full_language_name_instead_of_its-_ISO-_code_2.png 943w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li><p>Open <strong>&#8216;blocklanguages.tpl&#8217;<\/strong> file for editing. Locate the following code:<\/p>\r\n<pre class=\"brush:html\">\r\n&lt;div class=&quot;current&quot;&gt;\r\n&lt;span&gt;{$language.iso_code}&lt;\/span&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\r\n<\/li>\r\n\r\n<li><p>Replace <strong>{$language.iso_code}<\/strong> with <strong>{$language.name|regex_replace:&quot;\/\\s.*$\/&quot;:&quot;&quot;}<\/strong>;<\/p>\r\n<p>You should get the following result:<\/p>\r\n<pre class=\"brush:html\">&lt;div class=&quot;current&quot;&gt;\r\n&lt;span&gt;{$language.name|regex_replace:&quot;\/\\s.*$\/&quot;:&quot;&quot;}&lt;\/span&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\r\n<\/li>\r\n<li><p>We&#8217;ve successfully changed ISO code to full language name in the language folder:<\/p>\r\n\r\n<a href=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/03\/PrestaShop_How_to_display_full_language_name_instead_of_its-_ISO-_code_3.png\"><img loading=\"lazy\" src=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/03\/PrestaShop_How_to_display_full_language_name_instead_of_its-_ISO-_code_3-300x154.png\" alt=\"PrestaShop_How_to_display_full_language_name_instead_of_its _ISO _code_3\" width=\"300\" height=\"154\" class=\"aligncenter size-medium wp-image-67317\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/03\/PrestaShop_How_to_display_full_language_name_instead_of_its-_ISO-_code_3-300x154.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/03\/PrestaShop_How_to_display_full_language_name_instead_of_its-_ISO-_code_3-150x77.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/03\/PrestaShop_How_to_display_full_language_name_instead_of_its-_ISO-_code_3.png 428w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li><p>In order to change <strong>full language name<\/strong> to <strong>ISO code<\/strong> back, simply revert the changes done to <strong>&#8216;blocklanguages.tpl&#8217;<\/strong> file.<\/p><\/li>\r\n<\/ol>\r\n\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=XAPgZPqa2vQ?width=1280&amp;height=720\" rel=\"prettyPhoto\">PrestaShop 1.6.x How to display full language name instead of its ISO code (and vice versa) in the language switcher<\/a>","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to display <strong>full language name<\/strong> instead of its <strong>ISO code<\/strong> in the language switcher of your PrestaShop website.<\/p>\n","protected":false},"author":37,"featured_media":67318,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[732],"tags":[859,2222,540,660,552,1993],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/67314"}],"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\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=67314"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/67314\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/67318"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=67314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=67314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=67314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}