How to add new language in 19.0

Hnin Yu

How to add new language in 19.0

Comments

5 comments

  • Comment author
    Chris Muench
    • Official comment

    Sure here are the instructions for Chinese obviously you would do it for your language:

    1. In the PHP Point Of Sale folder, navigate to system/language/
    2. Copy the english folder and create a chinese folder
    3. Open the text files and translate as necessary (optional)
    4. In the PHP Point Of Sale folder, navigate to application/language/
    5. Copy the english folder and create a chinese folder
    6. Open the text files and translate as necessary (required)
    7. In the PHP Point Of Sale folder, navigate and open application/views/config.php. application/views/employees/form.php, application/views/partial/header.php, application/views/login/edit_profile.php

    Find:

    and add your chinese language as shown by example in the code.

    save the file.

    8. Modify application/helpers/MY_date_helper.php —> function get_js_locale add

    ‘chinese' => 'zh-cn',

    Now you will be able to pick the Chinese language from the config AND employee section of the page, and the program will be translated.

  • Comment author
    Hnin Yu

    Thanks. However In Header, Not showing the flags even we added flag. Only can see until Vietnamese. 

    Any suggestion , please

    0
  • Comment author
    Chris Muench

    Did you put in 

    assets/assets/images/flags/language.png?

    0
  • Comment author
    Hnin Yu

    Yes. I did. 

    0
  • Comment author
    Chris Muench

    Please open support ticket and shared your modified code

    0

Please sign in to leave a comment.