/seigerlang

Seiger Lang Management Module for Evolution CMS admin panel. Based on templatesEdit3 plugin.

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

This is an old module, it is no longer supported. Use the new sLang module instead.

Welcome to sLang

slang GitHub version CMS Evolution PHP version

Seiger Lang multi language Management Module for Evolution CMS admin panel.

The work of the module is based on the use of the standard Laravel functionality for multilingualism.

Features

  • Based on templatesEdit3 plugin.
  • Automatic translation of phrases through Google
  • Automatic search for translations in templates
  • Unlimited translation languages

Requirements

Before installing the module, make sure you have the templatesEdit3 plugin installed.

Use in controllers

For using this module on front pages your need add few includes to base controller

require_once MODX_BASE_PATH . 'assets/modules/seigerlang/sLang.class.php';

Use in templates

Current language:

[(lang)]

Translation of phrases:

@lang('phrase')

Default language:

[(s_lang_default)]

List of frontend languages by comma:

[(s_lang_front)]

Multilingual link:

[~~[(catalog_root)]~~]

Localized versions of your page for Google hreflang

@php($sLang = new sLang())
{!!$sLang->hrefLang()!!}

See documentation here