Download the PHP package raffaelj/cockpit-babel without Composer
On this page you can find all versions of the php package raffaelj/cockpit-babel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download raffaelj/cockpit-babel
More information about raffaelj/cockpit-babel
Files in raffaelj/cockpit-babel
Download raffaelj/cockpit-babel
More information about raffaelj/cockpit-babel
Files in raffaelj/cockpit-babel
Vendor raffaelj
Package cockpit-babel
Short Description Manage translations of Cockpit CMS v1 and v2 modules
License MIT
Homepage https://github.com/raffaelj/cockpit_Babel
Package cockpit-babel
Short Description Manage translations of Cockpit CMS v1 and v2 modules
License MIT
Homepage https://github.com/raffaelj/cockpit_Babel
Keywords cockpitcpmultiplane
Please rate this library. Is it a good library?
Informations about the package cockpit-babel
Babel addon for Cockpit CMS v1 and v2
Manage translations of Cockpit CMS v1, Cockpit CMS v2 modules and Multiplane themes with a graphical user interface.
Usage
- Login as admin (or with manage rights for babel)
- Go to "Settings" --> "Babel"
- If you use Cockpit CMS v1
- Click on "Other" tab
- Click on "Restructure i18n files" button. Now the Babel addon is initialized and the file/folder structure is adapted to new locations.
- Translate strings and click the "Save" button
Config
Requirements
- PHP >= 7.4
Concepts
Cockpit CMS v1
File/folder structure:
config/cockpit/i18n/{locale}.php
- must exist for user language selection
- wysiwyg field (tinymce):
#pstorage:assets/cockpit/i18n/tinymce/{locale}.js
Cockpit CMS v2
File/folder structure:
config/i18n/App/{locale}.php
- must exist for user language selection
- must exist to load other module i18n files
- wysiwyg field (tinymce): should be translatable via
App.on('field-wysiwyg-init', function(opts) {opts.language_url = 'path/to/tinymce/locale.js';});
(not tested)
Babel addon
I like the new folder structure of Cockpit v2 and adapted it in this addon.
File/folder structure:
Installation
Copy this repository into /addons
and name it Babel
or use the cli.
via git
via cp cli (Cockpit CMS v1)
via composer (Cockpit CMS v1)
Make sure, that the path to cockpit addons is defined in your projects' composer.json
file.
Copyright and License
Copyright 2022 Raffael Jesche under the MIT license.
See LICENSE for more information.
All versions of cockpit-babel with dependencies
PHP Build Version
Package Version
The package raffaelj/cockpit-babel contains the following files
Loading the files please wait ....