Free
Download the package from the manager of your site.
How to download?
The author
MODX.pro
Packages
13
Downloads
108 077
Автор дополнения
Packages
13
Downloads
108 077
Version 1.0.8-beta
Release date 07.18.2022
Downloads 1 797
Views 3 168
Warning! This component requires PHP version 5.6 or higher! If your site uses PHP less than required, the installation of this package could break it.
Warning! This package requires MODX not less than 2.5 !


Language versions / satellites without contexts, with automatic translation of all fields of the resource + seo, and even the translation of lexicons — that I put in the name localizator .

Why did I do this: I was not approached by a babel, I kept one project for migx «localization» for a long time, but too it is not convenient, collected all the minuses that managed to reveal and solved them in its component.

Features
1. Creating pseudo-contexts «localization» (you can work together through site.ru/en/ and ch.site.ru)


2. The resource has a tab, where all standard fields of the resource + seo are filled, then at the push of a button this all can be translated into other languages.




3. For ease of use of lexicons, there are separate tabs on the component page where only the lexicon of the component is visible. There is also a choice of language. There is also automation of translation, one button click.


Localization of pdoTools
Example of pdoMenu (similarly for other snippets):
{'!Localizator' | snippet : [
        'snippet' => 'pdoMenu',
        'parents' => 0,
        'includeTVs'     => 'img',
        'processTVs' => 'img',
        'parents' => 0,
        'level' => 1,
]}
Totally, all the resource fields are replaced with the translated ones.
For TV to be replaced, you need to change the pdoFetch.class setting to pdotools.pdofetchlocalizator

How to use
All fields of the resource are replaced by localized, except content, it is output through {$_modx->resource.localizator_content}.

Settings
To automate the translation, you need api key for the Yandex translator, you can get it here: translate.yandex.ru/developers/keys and specify in the localizator_key_yandex setting, also what would the translator understand from which language to translate you need to specify the localization key in localizator_default_language

Cost
The component is completely free, did for my project, I think many will make life easier.
You can send your thanks here: 410015133943061

1.0.7-beta

  • Fixed TV checkbox (9-issue)
  • Fixed content field (4-issue)
  • Added modifier "locfield"
  • Removed setting localizator_tv_fields
  • Added checkbox "TV is available in localizations" in TV settings
  • Fixed mse2LocalizatorFilter

1.0.6-beta

  • Fixed TV tabs
  • Added events

1.0.5-beta1

  • Fixed processTVs
  • Added policy template for editing localizations
  • Added german lexicon (by Ibochkarev).
  • Added franch lexicon (by Ibochkarev).

1.0.4-beta1

  • Fixed error modWebLink resources
  • Fixed error tinymce_rte

1.0.4-beta

  • Fixed snippet Localizator
  • Fixed plugin Localizator
  • Fixed localizator.class.php
  • Added mse2_filters_handler_class
  • Added localization fields indexing in mSearch2 (by pavelgvozdb - https://modx.pro/howto/16466)

1.0.3-beta

  • Fixed snippet Localizator

1.0.2-beta

  • Added translate for migxtv fields (by nizart91)
  • Fixed localizatorcontent.class.php
  • Fixed snippet Localizator

1.0.1-beta

  • Added localization for tv fields (by nizart91)

1.0.0-beta

  • First release