diff --git a/src/ConfigElement/Operator/Group.php b/src/ConfigElement/Operator/Group.php index 6ef1ce5..de4fdc9 100644 --- a/src/ConfigElement/Operator/Group.php +++ b/src/ConfigElement/Operator/Group.php @@ -30,7 +30,7 @@ public function getLabeledValue($object) $c->setClassificationstoreGroup($this->getClassificationstoreGroup()); } $value = $c->getLabeledValue($object); - if (!empty($value) && !$value->empty && (!method_exists($value, 'isEmpty') || !$value->isEmpty())) { + if (!empty($value) && (!property_exists($value, 'empty') || !$value->empty) && (!method_exists($value, 'isEmpty') || !$value->isEmpty())) { $valueArray[] = $value; } } diff --git a/src/ConfigElement/Value/Numeric.php b/src/ConfigElement/Value/Numeric.php index a7ea554..c14e18b 100644 --- a/src/ConfigElement/Value/Numeric.php +++ b/src/ConfigElement/Value/Numeric.php @@ -43,8 +43,10 @@ public function getLabeledValue($object) if ($this->formatNumber) { $formatter = \Pimcore::getContainer()->get(\Pimcore\Localization\IntlFormatter::class); - //TODO consider precision - $labeledValue->value = $formatter->formatNumber($labeledValue->value); + if (!$labeledValue->empty) { + //TODO consider precision + $labeledValue->value = $formatter->formatNumber((float)$labeledValue->value); + } } return $labeledValue; diff --git a/src/Resources/public/js/OutputDataConfigTab.js b/src/Resources/public/js/OutputDataConfigTab.js index b7c9ea8..6a1367e 100644 --- a/src/Resources/public/js/OutputDataConfigTab.js +++ b/src/Resources/public/js/OutputDataConfigTab.js @@ -55,6 +55,7 @@ pimcore.bundle.outputDataConfigToolkit.Tab = Class.create({ layout: "fit", iconCls: "bundle_outputdataconfig_icon_material pimcore_material_icon", tbar: toolbarConfig, + tooltip: t("outputdataconfig"), listeners: { afterrender: function(){ this.layout.insert(this.layout.items.length, this.getGrid()); diff --git a/src/Resources/translations/admin.de.yml b/src/Resources/translations/admin.de.yml index c0023d9..76ecdb2 100644 --- a/src/Resources/translations/admin.de.yml +++ b/src/Resources/translations/admin.de.yml @@ -51,7 +51,7 @@ headline: "\xDCberschrift" tablerow_operator_settings: Operator Table Zeile Einstellungen force_value: immer Wert anzeigen keyvalue_tag_col_group_description: Gruppenbeschreibung -keyvalue_selected_keys: "Ausgew\xE4hlte Attribute" +keyvalue_selected_keys: "Ausgew\xE4hlte Schl\xFCssel" format_number: Zahl formatieren precision: Nachkommastellen operator_translate_value_settings: "Operator Wert \xFCbersetzen Einstellungen" diff --git a/src/Resources/translations/admin.pt_br.yml b/src/Resources/translations/admin.pt_br.yml new file mode 100644 index 0000000..05d554f --- /dev/null +++ b/src/Resources/translations/admin.pt_br.yml @@ -0,0 +1,66 @@ +--- +reset: Reset +operator_concatenator: Operator Concatenator +operator_text: Operator Text +operator_translate_value: Operator Translate Value +class_definition: Class definition +operators: Operators +operator_group: Operator Group +output_channel_definition: Output Channel Definition +output_channel_definition_for: Output Channel Definition for +channel: Channel +objectid: Object ID +overwrite/edit: Overwrite/Edit +outputdataconfig: Output Data Configuration +attribute_settings: Attribute Settings +config_title: Title +config_title_original: Original Title +config_title_custom: Custom Title +custom_title: Custom Title +custom_icon: Custom Icon +dimension_unit_mode: Dimension Unit Mode +value_with_unit: Value with Unit +raw_data: Raw Data +only_value: Only Value +config_table: Config Table +config_whole_table: Get Whole Table +config_specific_field: Get Specific Field +row: Row +column: Column +text_operator_settings: Operator Text Settings +glue: Glue +concatenator_operator_settings: Operator Concatenator Settings +group_operator_settings: Operator Group Settings +reset_outputdataconfig: Reset Output Data Config +reset_outputdataconfig_text: Reset Output Data Config and use it from parent data + object. +error_reseting_output_config: Error during resetting Output Config Data. +error_opening_output_config: Error during opening Output Config Data. +output_config_saved: Output Config Data saved successfully +error_saving_output_config: Error during saving Output Config Data. +error_getting_field_definition: Error during getting Field Definition. +operator_table: Operator Table +table_operator_settings: Operator Table Settings +operator_tablerow: Operator Table Row +operator_tablecol: Operator Table Column +tablecol_operator_settings: Operator Table Column Settings +colspan: Column span +permissions_bundle_outputDataConfigToolkit: Output Data Configurations +bundle_outputDataConfigToolkit: Output Data Configurations +headline: Headline +tablerow_operator_settings: Operator Table Row Settings +force_value: Force Value +keyvalue_tag_col_group_description: Group Description +keyvalue_selected_keys: Selected Keys +format_number: Format number +precision: Precision +operator_translate_value_settings: Operator Translate Value Settings +operator_translate_value_prefix: Prefix +operator_cell_formater: Operator Cell Formater +operator_cell_formater_settings: Operator 'Cell Formater' Settings +operator_cell_formater_css_class: CSS Class +operator_cell_formater_css_styles: CSS Style +operator_textaddon: Operator Text Addon +operator_textaddon_addon: Text Addon +add_all: Add all +... diff --git a/src/Resources/translations/admin.ro.yml b/src/Resources/translations/admin.ro.yml new file mode 100644 index 0000000..05d554f --- /dev/null +++ b/src/Resources/translations/admin.ro.yml @@ -0,0 +1,66 @@ +--- +reset: Reset +operator_concatenator: Operator Concatenator +operator_text: Operator Text +operator_translate_value: Operator Translate Value +class_definition: Class definition +operators: Operators +operator_group: Operator Group +output_channel_definition: Output Channel Definition +output_channel_definition_for: Output Channel Definition for +channel: Channel +objectid: Object ID +overwrite/edit: Overwrite/Edit +outputdataconfig: Output Data Configuration +attribute_settings: Attribute Settings +config_title: Title +config_title_original: Original Title +config_title_custom: Custom Title +custom_title: Custom Title +custom_icon: Custom Icon +dimension_unit_mode: Dimension Unit Mode +value_with_unit: Value with Unit +raw_data: Raw Data +only_value: Only Value +config_table: Config Table +config_whole_table: Get Whole Table +config_specific_field: Get Specific Field +row: Row +column: Column +text_operator_settings: Operator Text Settings +glue: Glue +concatenator_operator_settings: Operator Concatenator Settings +group_operator_settings: Operator Group Settings +reset_outputdataconfig: Reset Output Data Config +reset_outputdataconfig_text: Reset Output Data Config and use it from parent data + object. +error_reseting_output_config: Error during resetting Output Config Data. +error_opening_output_config: Error during opening Output Config Data. +output_config_saved: Output Config Data saved successfully +error_saving_output_config: Error during saving Output Config Data. +error_getting_field_definition: Error during getting Field Definition. +operator_table: Operator Table +table_operator_settings: Operator Table Settings +operator_tablerow: Operator Table Row +operator_tablecol: Operator Table Column +tablecol_operator_settings: Operator Table Column Settings +colspan: Column span +permissions_bundle_outputDataConfigToolkit: Output Data Configurations +bundle_outputDataConfigToolkit: Output Data Configurations +headline: Headline +tablerow_operator_settings: Operator Table Row Settings +force_value: Force Value +keyvalue_tag_col_group_description: Group Description +keyvalue_selected_keys: Selected Keys +format_number: Format number +precision: Precision +operator_translate_value_settings: Operator Translate Value Settings +operator_translate_value_prefix: Prefix +operator_cell_formater: Operator Cell Formater +operator_cell_formater_settings: Operator 'Cell Formater' Settings +operator_cell_formater_css_class: CSS Class +operator_cell_formater_css_styles: CSS Style +operator_textaddon: Operator Text Addon +operator_textaddon_addon: Text Addon +add_all: Add all +...