-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #198 from Jako/master
Update to 3.2.0
- Loading branch information
Showing
146 changed files
with
13,297 additions
and
5,208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
_build/build.config.php | ||
core.config.php | ||
.settings/ | ||
.project | ||
.buildpath | ||
/nbproject | ||
*.iml | ||
.idea/ | ||
*.ipr | ||
*.iws | ||
/config.core.php | ||
config.core.php | ||
|
||
_build/site | ||
|
||
icon/*.svg | ||
|
||
_packages/*.* | ||
!_packages/.gitignore | ||
!_packages/*.zip | ||
|
||
node_modules/ | ||
core/components/*/vendor/ |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[![Default Lexicon](https://hosted.weblate.org/widget/modx-extras/babel/standard/svg-badge.svg)](https://hosted.weblate.org/projects/modx-extras/babel/) | ||
|
||
# Babel | ||
|
||
The easy way for your multilingual site! | ||
|
||
## Features | ||
|
||
Babel is an Extra for MODx Revolution that helps you to manage your multilingual | ||
websites using different contexts. Babel even supports managing several different | ||
multilingual websites within one MODx instance by using so-called context groups. | ||
|
||
Babel maintains links between translated resources. In the manager you can use | ||
the Babel Box to easily switch between the different language versions | ||
of your resources. Translations can be created automatically by Babel or defined | ||
manually. | ||
|
||
Additionally, Babel can be used to synchronize certain template variables (TVs) | ||
of translated resources which should be the same in every context (language). | ||
|
||
## Installation | ||
|
||
MODX Package Management | ||
|
||
## Usage | ||
|
||
Install via package manager and fill the system setting `babel.contextKeys` with | ||
a comma separated list of context keys which should be used to link multilingual | ||
resources. | ||
|
||
## Documentation | ||
|
||
For more information please read the [documentation](https://mikrobi.github.io/babel/). | ||
|
||
## License | ||
|
||
The project is licensed under the [GPLv2 license](https://github.com/mikrobi/babel/LICENSE.md). | ||
|
||
## Translations | ||
|
||
Translations of the package can be made for the [Default Lexicon](https://hosted.weblate.org/projects/modx-extras/babel/standard/), the [Permissions Lexicon](https://hosted.weblate.org/projects/modx-extras/babel/permissions/), the [Properties Lexicon](https://hosted.weblate.org/projects/modx-extras/babel/properties/) and the [System Settings Lexicon](https://hosted.weblate.org/projects/modx-extras/babel/system-settings/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,12 @@ | ||
<?php | ||
/** | ||
* Babel | ||
* | ||
* Copyright 2010 by Jakob Class <[email protected]> | ||
* | ||
* This file is part of Babel. | ||
* | ||
* Babel is free software; you can redistribute it and/or modify it under the | ||
* terms of the GNU General Public License as published by the Free Software | ||
* Foundation; either version 2 of the License, or (at your option) any later | ||
* version. | ||
* | ||
* Babel is distributed in the hope that it will be useful, but WITHOUT ANY | ||
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR | ||
* A PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License along with | ||
* Babel; if not, write to the Free Software Foundation, Inc., 59 Temple Place, | ||
* Suite 330, Boston, MA 02111-1307 USA | ||
* | ||
* @package babel | ||
*/ | ||
/** | ||
* Resolves creating/removing babel events. | ||
* | ||
* @author Jakob Class <[email protected]> | ||
* | ||
* @package babel | ||
* @subpackage build | ||
* | ||
* @var array $options | ||
* @var xPDOObject $object | ||
*/ | ||
|
||
/** | ||
|
@@ -36,7 +15,7 @@ | |
* @param integer $service see https://github.com/modxcms/revolution/blob/2.x/core/model/modx/modx.class.php#L2005-L2010 | ||
* @return bool | ||
*/ | ||
function createEvent(modX &$modx, $name, $service = 0) | ||
function createEvent(modX $modx, $name, $service = 0) | ||
{ | ||
$success = true; | ||
$ct = $modx->getCount('modEvent', [ | ||
|
@@ -67,7 +46,7 @@ function createEvent(modX &$modx, $name, $service = 0) | |
* @param string $name | ||
* @return bool | ||
*/ | ||
function removeEvent(modX &$modx, $name) | ||
function removeEvent(modX $modx, $name) | ||
{ | ||
$success = true; | ||
/** @var modEvent $event */ | ||
|
Oops, something went wrong.