Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
/ seigerlang Public archive

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

License

Notifications You must be signed in to change notification settings

Seiger/seigerlang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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