What’s New with Sngine v5! - a brand-new default theme, a full Dating module, rebuilt Stories, Reels, Live and Chat, and a faster core that stays quick as your community grows. Más información
Sngine 5.0 Release! - Our Sngine team is so pleased to announce the release of Sngine 5.0! With some improvements, Más información

How to translate the static pages like about us to different languages?

Go to admin panel and edit the page you want to edit or add a new

Zamblek Zamblek 1 min de lectura
How to translate the static pages like about us to different languages?

Go to admin panel and edit the page you want to edit or add a new page as you want

Then Click View -> Source Code

and make the text like that

{if $system['language']['code'] == 'ar_sa'} 

تجربة بالعربية 

{elseif $system['language']['code'] == 'fr_fr'} 

Expérience arabe 

{else} 

English Test 

{/if} 

Notice that you will put the text of each language you want after the if statement and you can repeat the else if statement for all languages you have. Also you can get the language code from admin panel -> Languages

The result will be like this:

Now change the language to Arabic and to French and English and will see the text has translated to according to the user selected language.

That’s it.

Happy Sngine 🙂

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