From 918babe69029474f40bd74d1335ecf817fcf4b0b Mon Sep 17 00:00:00 2001 From: Vladimir Malik Date: Mon, 20 Jan 2020 11:15:01 +0300 Subject: [PATCH] Cleanup translations. Added missed phrases. (#14) --- .../Resources/public/js/config/item.js | 4 ++-- .../AlternateObjectTreesBundle/Resources/public/js/tree.js | 2 +- .../Resources/translations/admin.de.yml | 2 -- .../Resources/translations/admin.en.yml | 3 +-- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/Elements/Bundle/AlternateObjectTreesBundle/Resources/public/js/config/item.js b/src/Elements/Bundle/AlternateObjectTreesBundle/Resources/public/js/config/item.js index 082c806..c0be4b1 100644 --- a/src/Elements/Bundle/AlternateObjectTreesBundle/Resources/public/js/config/item.js +++ b/src/Elements/Bundle/AlternateObjectTreesBundle/Resources/public/js/config/item.js @@ -102,7 +102,7 @@ pimcore.plugin.alternateObjectTrees.config.item = Class.create({ height: 100 }, { xtype: "textfield", - fieldLabel: t("root_folder"), + fieldLabel: t("plugin_alternate_object_trees_root_folder"), name: "basePath", width: 400, cls: "input_drop_target", @@ -171,7 +171,7 @@ pimcore.plugin.alternateObjectTrees.config.item = Class.create({ xtype: "textfield", name: "customTreeBuilderClass", value: this.data.customTreeBuilderClass, - fieldLabel: t("customTreeBuilderClass"), + fieldLabel: t("plugin_alternate_object_trees_customTreeBuilderClass"), width: 400 } ] diff --git a/src/Elements/Bundle/AlternateObjectTreesBundle/Resources/public/js/tree.js b/src/Elements/Bundle/AlternateObjectTreesBundle/Resources/public/js/tree.js index 8e111c8..90e3734 100644 --- a/src/Elements/Bundle/AlternateObjectTreesBundle/Resources/public/js/tree.js +++ b/src/Elements/Bundle/AlternateObjectTreesBundle/Resources/public/js/tree.js @@ -32,7 +32,7 @@ pimcore.plugin.alternateObjectTrees.tree = Class.create(pimcore.object.tree, { // }, treeId: "pimcore_panel_tree_alternate_object_tree_" + config.id, treeIconCls: "pimcore_panel_tree_objects_alternate_tree", - treeTitle: config.name, //t('pimcore_panel_tree_objects_alternate_tree'), + treeTitle: config.name, parentPanel: Ext.getCmp("pimcore_panel_tree_left"), index: 4 }; diff --git a/src/Elements/Bundle/AlternateObjectTreesBundle/Resources/translations/admin.de.yml b/src/Elements/Bundle/AlternateObjectTreesBundle/Resources/translations/admin.de.yml index fca930e..43c6fe2 100644 --- a/src/Elements/Bundle/AlternateObjectTreesBundle/Resources/translations/admin.de.yml +++ b/src/Elements/Bundle/AlternateObjectTreesBundle/Resources/translations/admin.de.yml @@ -6,10 +6,8 @@ plugin_alternate_object_trees_condition: "Bedingung" plugin_alternate_object_trees_showEmpty: "Zeige leere an" plugin_alternate_object_trees_levels: "Levels" plugin_alternate_object_trees_config: " Alternative Bäume" -pimcore_panel_tree_objects_alternate_tree: "Alternative Objekt Bäume" plugin_alternate_object_trees_add_config: "Baum hinzufügen" plugin_alternate_object_trees_config_saved_successfully: "Erfolgreich" plugin_alternate_object_trees_add_tree: "Baum hinzufügen" plugin_alternate_object_trees_name: "Geben Sie den neuen Namen des Baums ein" -plugin_alternateobjecttrees_config: "Alternative Objekt Bäume Konfiguration" plugin_alternate_object_trees_customTreeBuilderClass: "Custom Tree Builder Class" \ No newline at end of file diff --git a/src/Elements/Bundle/AlternateObjectTreesBundle/Resources/translations/admin.en.yml b/src/Elements/Bundle/AlternateObjectTreesBundle/Resources/translations/admin.en.yml index 8596632..238a7e7 100644 --- a/src/Elements/Bundle/AlternateObjectTreesBundle/Resources/translations/admin.en.yml +++ b/src/Elements/Bundle/AlternateObjectTreesBundle/Resources/translations/admin.en.yml @@ -6,10 +6,9 @@ plugin_alternate_object_trees_condition: "Condition" plugin_alternate_object_trees_showEmpty: "Show Empty" plugin_alternate_object_trees_levels: "Levels" plugin_alternate_object_trees_config: " Alternate Trees Config" -pimcore_panel_tree_objects_alternate_tree: "Alternate Object Trees" plugin_alternate_object_trees_add_config: "Add Tree" plugin_alternate_object_trees_config_saved_successfully: "Successfully" plugin_alternate_object_trees_add_tree: "Add Tree" plugin_alternate_object_trees_name: "Enter the name for the new tree" -plugin_alternateobjecttrees_config: "Alternate Object Trees Config" +plugin_alternate_object_trees_root_folder: "Custom Tree Root Folder" plugin_alternate_object_trees_customTreeBuilderClass: "Custom Tree Builder Class" \ No newline at end of file