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:
parent
f432b372fe
commit
4640447012
3 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
|||
## Changelog
|
||||
|
||||
Here goes the changelog text.
|
||||
# 0.2.0
|
||||
|
||||
Allow translating "General", "Mobile" and "RowEvolution" translation strings.
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue