[contact-form-7 id="24078" title="Feedback EN"]

Featured templates

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

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