melisplatform / melis-site-translation
Melis Platform Site Translation module
Installs: 720
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 8
Forks: 0
Open Issues: 0
Type:melisplatform-module
Requires
- php: ^7.0
- melisplatform/melis-cms: ^3.0
- melisplatform/melis-core: ^3.0
- melisplatform/melis-engine: ^3.0
- melisplatform/melis-front: ^3.0
This package is auto-updated.
Last update: 2024-10-03 03:38:18 UTC
README
MelisSiteTranslation allows to manage the text translation of every module.
Getting Started
These instructions will get you a copy of the project up and running on your machine.
Prerequisites
You will need to install melisplatform/melis-core, melisplatform/melis-cms and melisplatform/melis-engine in order to have this module running.
This will automatically be done when using composer.
Installing
Run the composer command:
composer require melisplatform/melis-site-translation
Database
Database model is accessible on the MySQL Workbench file:
/melis-site-translation/install/model
Database will be installed through composer and its hooks.
In case of problems, SQL files are located here:
/melis-site-translation/install/sql
Tools & Elements provided
- Site Translation tool
Running the code
MelisSiteTranslation Services
- MelisSiteTranslationService
Provides services to translate text and list all translations
File: /melis-site-translation/src/Service/MelisSiteTranslationService.php
//Get the service
$melisSiteTranslationService = $this->getServiceLocator()->get('MelisSiteTranslationService');
//translate a certain text using translation key(eg. tr_translation_name)
//$langId - (optional) language id
$translatedText = $melisSiteTranslationService->getText($key, $langId);
Authors
- Melis Technology - www.melistechnology.com
See also the list of contributors who participated in this project.
License
This project is licensed under the OSL-3.0 License - see the LICENSE file for details