From 20c211c1daf2edf2828479ff821fdf2a5e9f926e Mon Sep 17 00:00:00 2001 From: Julia Svinareva Date: Thu, 11 Apr 2019 16:36:29 +0300 Subject: [PATCH] [de mobile] change application settings and add traslation --- apps/documenteditor/mobile/app/controller/edit/EditImage.js | 3 ++- apps/documenteditor/mobile/app/controller/edit/EditShape.js | 3 +-- apps/documenteditor/mobile/app/view/Settings.js | 2 +- apps/documenteditor/mobile/locale/en.json | 5 +++++ 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/apps/documenteditor/mobile/app/controller/edit/EditImage.js b/apps/documenteditor/mobile/app/controller/edit/EditImage.js index a8ad16c6e..8e3c9de4b 100644 --- a/apps/documenteditor/mobile/app/controller/edit/EditImage.js +++ b/apps/documenteditor/mobile/app/controller/edit/EditImage.js @@ -142,12 +142,13 @@ define([ initSettings: function (pageId) { var me = this; + _metricText = Common.Utils.Metric.getMetricName(Common.Utils.Metric.getCurrentMetric()); + if (_imageObject) { if (pageId == '#edit-image-wrap-view') { me._initWrapView(); } } - _metricText = Common.Utils.Metric.getMetricName(Common.Utils.Metric.getCurrentMetric()); }, _initWrapView: function() { diff --git a/apps/documenteditor/mobile/app/controller/edit/EditShape.js b/apps/documenteditor/mobile/app/controller/edit/EditShape.js index 34eaa64e4..7c1e9272a 100644 --- a/apps/documenteditor/mobile/app/controller/edit/EditShape.js +++ b/apps/documenteditor/mobile/app/controller/edit/EditShape.js @@ -171,7 +171,7 @@ define([ var me = this; // me.api && me.api.UpdateInterfaceState(); - + _metricText = Common.Utils.Metric.getMetricName(Common.Utils.Metric.getCurrentMetric()); if (_shapeObject) { if (pageId == '#edit-shape-wrap') { me._initWrapView(); @@ -181,7 +181,6 @@ define([ me.getView('EditShape').isShapeCanFill = _shapeObject.get_ShapeProperties().get_CanFill(); } } - _metricText = Common.Utils.Metric.getMetricName(Common.Utils.Metric.getCurrentMetric()); }, _initWrapView: function() { diff --git a/apps/documenteditor/mobile/app/view/Settings.js b/apps/documenteditor/mobile/app/view/Settings.js index 47e18307f..e0c329237 100644 --- a/apps/documenteditor/mobile/app/view/Settings.js +++ b/apps/documenteditor/mobile/app/view/Settings.js @@ -279,7 +279,7 @@ define([ textLeft: 'Left', textBottom: 'Bottom', textRight: 'Right', - textAdvancedSettings: 'Advanced Settings', + textAdvancedSettings: 'Application Settings', textUnitOfMeasurement: 'Unit of Measurement', textCentimeter: 'Centimeter', textPoint: 'Point', diff --git a/apps/documenteditor/mobile/locale/en.json b/apps/documenteditor/mobile/locale/en.json index 6efabb094..eb0849b2a 100644 --- a/apps/documenteditor/mobile/locale/en.json +++ b/apps/documenteditor/mobile/locale/en.json @@ -414,5 +414,10 @@ "DE.Views.Settings.textVersion": "Version", "DE.Views.Settings.textWords": "Words", "DE.Views.Settings.unknownText": "Unknown", + "DE.Views.Settings.textAdvancedSettings": "Application Settings", + "DE.Views.Settings.textUnitOfMeasurement": "Unit of Measurement", + "DE.Views.Settings.textCentimeter": "Centimeter", + "DE.Views.Settings.textPoint": "Point", + "DE.Views.Settings.textInch": "Inch", "DE.Views.Toolbar.textBack": "Back" } \ No newline at end of file