How to edit your language in Sngine?

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

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

After you made your changes to the file “messages.po” and save it you need to upload both files

  • messages.po
  • messages.mo

to your server in the same location and replace the old files.

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 ๐Ÿ˜‰