Sngine using gettext technology for Sngine multiple language system.

Check the benefits of gettext vs Array from here:

Using PHP Gettext Extension vs PHP Arrays in Multilingual Websites?

To edit your language just follow this video tutorial

NOTE: Language code in video was “xx-YY” and it should be now “xx_yy” for examples: ro_ro & it_it

You can get the PoEdit for FREE from here https://poedit.net/

After you made your create the new files “messages.po” & “messages.mo” and save it you need to upload both files

messages.po
messages.mo

To your server in the new location as described in the video.

NOTE:

After edit/add your language make sure there is no console error on your browser, For example you can in Google Chrome press F12 and click console Tab

Why?

There are some string Sngine use in JavaScript you can check them all from the following template file:

content/themes/default/templates/_js_files.tpl

You must make sure you didn’t added translated text with special characters like double quotes “

You need to escape special characters by using “\” the slash. Like this

Save message.po to get new message.mo files and upload new files

And now there is no errors

That’s it.

Happy Sngine 🙂

Buy Sngine or Extend your support: https://bit.ly/BuySngine