From 235c476513c03452fa4d3eabb08e74c50be61ce9 Mon Sep 17 00:00:00 2001 From: Alexander Yuzhin Date: Mon, 21 Nov 2016 10:49:04 +0300 Subject: [PATCH] [DE mobile] Localization EditShape. --- .../mobile/app/controller/edit/EditShape.js | 4 +- .../mobile/app/template/EditShape.template | 78 +++++++++---------- .../mobile/app/view/edit/EditShape.js | 37 ++++++++- apps/documenteditor/mobile/locale/en.json | 28 +++++++ 4 files changed, 102 insertions(+), 45 deletions(-) diff --git a/apps/documenteditor/mobile/app/controller/edit/EditShape.js b/apps/documenteditor/mobile/app/controller/edit/EditShape.js index 06746a0ce..e93c2f5c2 100644 --- a/apps/documenteditor/mobile/app/controller/edit/EditShape.js +++ b/apps/documenteditor/mobile/app/controller/edit/EditShape.js @@ -46,7 +46,7 @@ define([ ], function (core) { 'use strict'; - DE.Controllers.EditShape = Backbone.Controller.extend((function() { + DE.Controllers.EditShape = Backbone.Controller.extend(_.extend((function() { // Private var _stack = [], _shapeObject = undefined, @@ -558,5 +558,5 @@ define([ return shapeExist; } }; - })()); + })(), DE.Controllers.EditShape || {})) }); \ No newline at end of file diff --git a/apps/documenteditor/mobile/app/template/EditShape.template b/apps/documenteditor/mobile/app/template/EditShape.template index aacee4a09..6c844241b 100644 --- a/apps/documenteditor/mobile/app/template/EditShape.template +++ b/apps/documenteditor/mobile/app/template/EditShape.template @@ -6,7 +6,7 @@
-
Style
+
<%= scope.textStyle %>
@@ -15,7 +15,7 @@
-
Wrap
+
<%= scope.textWrap %>
@@ -24,7 +24,7 @@
-
Replace
+
<%= scope.textReplace %>
@@ -33,7 +33,7 @@
-
Reorder
+
<%= scope.textReorder %>
@@ -44,9 +44,9 @@ @@ -57,8 +57,8 @@
@@ -71,7 +71,7 @@
-
Bring to Foreground
+
<%= scope.textToForeground %>
@@ -81,7 +81,7 @@
-
Send to Background
+
<%= scope.textToBackground %>
@@ -91,7 +91,7 @@
-
Move Forward
+
<%= scope.textForward %>
@@ -101,7 +101,7 @@
-
Move Backward
+
<%= scope.textBackward %>
@@ -116,8 +116,8 @@
@@ -140,8 +140,8 @@
@@ -158,7 +158,7 @@
<% } %>
-
Inline
+
<%= scope.textInline %>
@@ -171,7 +171,7 @@
<% } %>
-
Square
+
<%= scope.textSquare %>
@@ -184,7 +184,7 @@
<% } %>
-
Tight
+
<%= scope.textTight %>
@@ -197,7 +197,7 @@
<% } %>
-
Through
+
<%= scope.textThrough %>
@@ -210,7 +210,7 @@
<% } %>
-
Top and Bottom
+
<%= scope.textTopAndBottom %>
@@ -223,7 +223,7 @@
<% } %>
-
In Front
+
<%= scope.textInFront %>
@@ -236,13 +236,13 @@
<% } %>
-
Behind
+
<%= scope.textBehind %>
-
Align
+
<%= scope.textAlign %>
  • @@ -263,7 +263,7 @@
  • -
    Move with Text
    +
    <%= scope.textWithText %>
  • -
    Allow Overlap
    +
    <%= scope.textOverlap %>
-
Distance from text
+
<%= scope.textFromText %>
  • @@ -313,21 +313,21 @@