Categories

Featured templates

PrestaShop 1.6.x How to display full language name instead of its ISO code (and vice versa) in the language switcher

Daniel Morales March 24, 2016
Rating: 5.0/5. From 3 votes.
Please wait...
PrestaShop 1.6.x How to display full language name instead of its ISO code (and vice versa) in the language switcher

This tutorial will show you how to display full language name instead of its ISO code in the language switcher of your PrestaShop website:

PrestaShop_How_to_display_full_language_name_instead_of_its _ISO _code_1
  1. Access your server using any FTP software of FileManager provided by your host.

  2. Navigate to /themes/themeXXXX/modules/blocklanguages/ directory where XXXX is the number of your theme:

    PrestaShop_How_to_display_full_language_name_instead_of_its _ISO _code_2
  3. Open ‘blocklanguages.tpl’ file for editing. Locate the following code:

    <div class="current">
    <span>{$language.iso_code}</span>
    </div>
    
  4. Replace {$language.iso_code} with {$language.name|regex_replace:"/\s.*$/":""};

    You should get the following result:

    <div class="current">
    <span>{$language.name|regex_replace:"/\s.*$/":""}</span>
    </div>
    
  5. We’ve successfully changed ISO code to full language name in the language folder:

    PrestaShop_How_to_display_full_language_name_instead_of_its _ISO _code_3
  6. In order to change full language name to ISO code back, simply revert the changes done to ‘blocklanguages.tpl’ file.

Feel free to check the detailed video tutorial below:

PrestaShop 1.6.x How to display full language name instead of its ISO code (and vice versa) in the language switcher
Prestashop Themes
This entry was posted in PrestaShop Tutorials and tagged code, ISO, language, name, Prestashop, switcher. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket