This module is used by the HumHub community to maintain the translations of the HumHub core and marketplace modules.
This module is not intended for use in HumHub instances!
-
Install
- Download & Put files into /protected/modules/translation/
- Or: git submodule add https://github.com/humhub/humhub-modules-translation.git protected/modules/translation
-
Enable it under Admin -> Modules
-
Open via Administration -> Manage -> Translation
In order to initialize the message files of an installed custom module with id my-module
, execute the following command within the
protected
directory of your installation:
php yii message/extract-module my-module
The following command is used to build the message archive. The message archive includes all
php yii translation/build-archive
For automatic translation:
- Activate the API Cloud Translation: https://console.developers.google.com/apis/library
- Get your Google API key: https://console.developers.google.com/apis/api/translate.googleapis.com/credentials
- In
protected/config/common.php
, add:
'modules' => [
'translation' => [
'googleApiKey' => 'YOUR-API-KEY-HERE',
]
],