1
0
Fork 0
mirror of https://github.com/Findus23/plugin-CustomiseTranslations.git synced 2024-09-19 15:53:49 +02:00

allow translating non-plugin translation strings

This commit is contained in:
Lukas Winkler 2020-10-10 18:24:21 +02:00
parent f432b372fe
commit 4640447012
Signed by: lukas
GPG key ID: 54DE4D798D244853
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,5 @@
## Changelog
Here goes the changelog text.
# 0.2.0
Allow translating "General", "Mobile" and "RowEvolution" translation strings.

View file

@ -27,6 +27,9 @@ class SystemSettings extends \Piwik\Settings\Plugin\SystemSettings
private function createTranslationsSetting() {
return $this->makeSetting('translations', array(), FieldConfig::TYPE_ARRAY, function (FieldConfig $field) {
$plugins = Manager::getAllPluginsNames();
$plugins[] = "General";
$plugins[] = "Mobile";
$plugins[] = "RowEvolution";
$field->description = Piwik::translate('CustomiseTranslations_Description');
$field->uiControl = FieldConfig::UI_CONTROL_MULTI_TUPLE;
$field1 = new FieldConfig\MultiPair(Piwik::translate('CustomiseTranslations_TranslationKey'), 'translationKey', FieldConfig::UI_CONTROL_TEXT);

View file

@ -1,7 +1,7 @@
{
"name": "CustomiseTranslations",
"description": "This plugin allows you to modify all translateable strings in Matomo",
"version": "0.1.2",
"version": "0.2.0",
"theme": false,
"require": {
"piwik": ">=3.6.0,<4.0.0-b1"