diff --git a/en/extras/babel/babel-settings.png b/en/extras/babel/babel-settings.png deleted file mode 100644 index a97e9ee4b..000000000 Binary files a/en/extras/babel/babel-settings.png and /dev/null differ diff --git a/en/extras/babel/babel-setup.png b/en/extras/babel/babel-setup.png deleted file mode 100644 index 2ff633811..000000000 Binary files a/en/extras/babel/babel-setup.png and /dev/null differ diff --git a/en/extras/babel/babel-translate.png b/en/extras/babel/babel-translate.png deleted file mode 100644 index 7f1c71d10..000000000 Binary files a/en/extras/babel/babel-translate.png and /dev/null differ diff --git a/en/extras/babel/babel-unlink.png b/en/extras/babel/babel-unlink.png deleted file mode 100644 index 030926b03..000000000 Binary files a/en/extras/babel/babel-unlink.png and /dev/null differ diff --git a/en/extras/babel/babel.png b/en/extras/babel/babel.png deleted file mode 100644 index 57768845d..000000000 Binary files a/en/extras/babel/babel.png and /dev/null differ diff --git a/en/extras/babel/babellinks.md b/en/extras/babel/babellinks.md deleted file mode 100644 index fd4ba74ba..000000000 --- a/en/extras/babel/babellinks.md +++ /dev/null @@ -1,54 +0,0 @@ ---- -title: "BabelLinks" -_old_id: "787" -_old_uri: "revo/babel/babel.babellinks" ---- - -BabelLinks is a snippet which displays links to other languages (contexts) in the frontend. - -## Available Parameters - -| Name | Description | Default | Version | -| --------------- | ----------------------------------------------------------------------------- | --------------------- | ------- | -| resourceId | (optional) ID of resource of which links to translations should be displayed. | current resource's ID | | -| tpl | (optional) Chunk to display a language link. | babelLink | | -| activeCls | (optional) CSS class name for the current active language. | active | | -| showUnpublished | (optional) Flag whether to show unpublished translations. | 0 | | -| showCurrent | Flag whether to show current translation. | 0 | 3.0.0 | -| outputSeparator | Character to implode the list | "\\n" | 3.0.0 | -| includeUnlinked | Flag whether to show unlinked translation. | 0 | 3.0.0 | -| toArray | Flag whether to dump the output as an array instead. | 0 | 3.0.0 | -| toPlaceholder | Flag whether to dump the output into the given placeholder's name. | | 3.0.0 | -| ignoreSiteStatus | Option to ignore site_status (when the site is offline) | 0 | 3.0.0 | - -## BabelLink Chunk - -If the &tpl parameter is not set the default chunk will be used with the following code: - -``` php -
  • [[%babel.language_[[+cultureKey]]? &topic=`default` &namespace=`babel`]]
  • -``` - -When using your own chunk to display the language links you can use the following placeholders: - -| Name | Description | -| ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| url | Url to linked translation (or site\_url of specific language if there is no translated resource available). | -| cultureKey | Culture key of translation (e.g en, de, fr oder es). You may use the babel lexicon to display the language's name: ```[[%babel.language_`[[+cultureKey]]`? &topic=`default` &namespace=`babel`]]``` | -| active | If link points to a resource of the current active language (context) this placeholder is set to the active CSS class name specified by the &activeCls parameter (default=active). Otherwise this placeholder is empty. | -| id | ID of tranlated resource. If no translation is available this placeholder is empty (''). | - -## Example - -``` html - -``` - -## See also - -1. [Babel.BabelLinks](extras/babel/babellinks) -2. [Babel.BabelTranslation](extras/babel/babeltranslation) - -[Offical Babel project website: Multilingual websites with MODX](http://www.multilingual-modx.com/) diff --git a/en/extras/babel/babeltranslation.md b/en/extras/babel/babeltranslation.md deleted file mode 100644 index ef727df3d..000000000 --- a/en/extras/babel/babeltranslation.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -title: "BabelTranslation" -_old_id: "788" -_old_uri: "revo/babel/babel.babeltranslation" ---- - -The BabelTranslation snippets returns the ID of a translated resource in a given context. - -## Available Parameters - -| Name | Description | Default | -| --------------- | ------------------------------------------------------------------------------ | --------------------- | -| resourceId | (optional) ID of resource of which a translated resource should be determined. | current resource's ID | -| contextKey | Key of context in which translated resource should be determined. | | -| showUnpublished | (optional) Flag whether to show unpublished translations. | 0 | - -## Example - -``` php -[[BabelTranslation? &contextKey=`de`]] -``` - -This will return the ID of the translated resource located in the "de" context of the current resource. - -## See Also - -1. [Babel.BabelLinks](extras/babel/babellinks) -2. [Babel.BabelTranslation](extras/babel/babeltranslation) - -[Offical Babel project website: Multilingual websites with MODX](http://www.multilingual-modx.com/) diff --git a/en/extras/babel/index.md b/en/extras/babel/index.md index b87ee2e9a..fc688f4b8 100644 --- a/en/extras/babel/index.md +++ b/en/extras/babel/index.md @@ -12,12 +12,7 @@ Babel maintains links between translated resources. In the manager you can use t Additionally, Babel can be used to synchronize certain template variables (TVs) of translated resources which should be the same in every context (language). -## Requirements - -- MODX Revolution 2.8 or later -- PHP 7.2 or later - -## History& Info +## History & Info The Babel project was started in 2010 by [Jakob Class](https://github.com/mikrobi). It was improved further by [Rico Goldsky](https://github.com/goldsky), [Joshua Luckers](https://github.com/JoshuaLuckers) and [Thomas Jakobi](https://github.com/Jako). @@ -31,4 +26,4 @@ Babel has a GitHub repository at ### Documentation -The package documentation can be found at +The package documentation can be found at diff --git a/redirects.json b/redirects.json index 4f5390b82..1f31f676e 100644 --- a/redirects.json +++ b/redirects.json @@ -1593,8 +1593,8 @@ "/extras/revo/articles/articles.roadmap": "en/extras/articles", "/extras/revo/articles/articles.theming-articles": "en/extras/articles/theming-articles", "/extras/revo/babel": "en/extras/babel/index", - "/extras/revo/babel/babel.babellinks": "en/extras/babel/babellinks", - "/extras/revo/babel/babel.babeltranslation": "en/extras/babel/babeltranslation", + "/extras/revo/babel/babel.babellinks": "en/extras/babel/index", + "/extras/revo/babel/babel.babeltranslation": "en/extras/babel/index", "/extras/revo/bannerx": "en/extras/bannerx/index", "/extras/revo/bannery": "en/extras/bannery/index", "/extras/revo/batcher": "en/extras/batcher/index", @@ -2270,7 +2270,7 @@ "/display/revolution20/structuring+your+site": "en/getting-started", "/display/revolution20/accessing+template+variable+values+via+the+api": "en/extending-modx/snippets/accessing-tvs", "/display/addon/home": "en/extras", - "/display/addon/babel.babeltranslation": "en/extras/babel/babeltranslation", + "/display/addon/babel.babeltranslation": "en/extras/babel/index", "/display/addon/siblingnav": "en/extras/siblingnav", "/display/revolution20/creating+a+resource+class": "en/extending-modx/custom-resources", "/display/addon/wayfinder+introductory+examples": "en/extras/wayfinder/wayfinder-introductory-examples", @@ -2278,7 +2278,7 @@ "/display/revolution20/advanced+installation": "en/getting-started/installation/advanced", "/display/addon/handyman.roadmap": "en/extras/handyman", "/display/addon/sekfancybox": "en/extras/sekfancybox", - "/display/addon/babel": "en/extras/babel", + "/display/addon/babel": "en/extras/babel/index", "/display/revolution20/creating+a+3rd+party+component+build+script": "en/extending-modx/transport-packages/build-script", "/display/revolution20/templates": "en/building-sites/elements/templates", "/display/addon/modextra": "en/extras/modextra",