Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
25d5ab8c
Commit
25d5ab8c
authored
Nov 18, 2016
by
Alexander Yuzhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DE mobile] Localization EditParagraph.
parent
26e5b8bd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
59 additions
and
28 deletions
+59
-28
apps/documenteditor/mobile/app/controller/edit/EditParagraph.js
...ocumenteditor/mobile/app/controller/edit/EditParagraph.js
+3
-3
apps/documenteditor/mobile/app/template/EditParagraph.template
...documenteditor/mobile/app/template/EditParagraph.template
+19
-19
apps/documenteditor/mobile/app/view/edit/EditParagraph.js
apps/documenteditor/mobile/app/view/edit/EditParagraph.js
+21
-5
apps/documenteditor/mobile/locale/en.json
apps/documenteditor/mobile/locale/en.json
+16
-1
No files found.
apps/documenteditor/mobile/app/controller/edit/EditParagraph.js
View file @
25d5ab8c
...
@@ -46,7 +46,7 @@ define([
...
@@ -46,7 +46,7 @@ define([
],
function
(
core
)
{
],
function
(
core
)
{
'
use strict
'
;
'
use strict
'
;
DE
.
Controllers
.
EditParagraph
=
Backbone
.
Controller
.
extend
((
function
()
{
DE
.
Controllers
.
EditParagraph
=
Backbone
.
Controller
.
extend
(
_
.
extend
(
(
function
()
{
// Private
// Private
var
_stack
=
[],
var
_stack
=
[],
_paragraphInfo
=
{},
_paragraphInfo
=
{},
...
@@ -323,5 +323,5 @@ define([
...
@@ -323,5 +323,5 @@ define([
$
(
'
#paragraph-list input[name=paragraph-style]
'
).
val
([
name
]);
$
(
'
#paragraph-list input[name=paragraph-style]
'
).
val
([
name
]);
}
}
}
}
})()
);
})()
,
DE
.
Controllers
.
EditParagraph
||
{}))
});
});
\ No newline at end of file
apps/documenteditor/mobile/app/template/EditParagraph.template
View file @
25d5ab8c
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<a id="paragraph-background" class="item-link">
<a id="paragraph-background" class="item-link">
<div class="item-content">
<div class="item-content">
<div class="item-inner">
<div class="item-inner">
<div class="item-title">
Background
</div>
<div class="item-title">
<%= scope.textBackground %>
</div>
<div class="item-after"><div class="color-preview"></div></div>
<div class="item-after"><div class="color-preview"></div></div>
</div>
</div>
</div>
</div>
...
@@ -20,14 +20,14 @@
...
@@ -20,14 +20,14 @@
<a id="paragraph-advanced" class="item-link">
<a id="paragraph-advanced" class="item-link">
<div class="item-content">
<div class="item-content">
<div class="item-inner">
<div class="item-inner">
<div class="item-title">
Advanced settings
</div>
<div class="item-title">
<%= scope.textAdvSettings %>
</div>
</div>
</div>
</div>
</div>
</a>
</a>
</li>
</li>
</ul>
</ul>
</div>
</div>
<div class="content-block-title">
Paragraph styles
</div>
<div class="content-block-title">
<%= scope.textPrgStyles %>
</div>
<div id="paragraph-list" class="list-block">
<div id="paragraph-list" class="list-block">
<ul></ul>
<ul></ul>
</div>
</div>
...
@@ -37,8 +37,8 @@
...
@@ -37,8 +37,8 @@
<div id="edit-paragraph-color">
<div id="edit-paragraph-color">
<div class="navbar">
<div class="navbar">
<div class="navbar-inner">
<div class="navbar-inner">
<div class="left sliding"><a href="#" class="back link"><i class="icon icon-back"></i><% if (!android) { %><span>
Back
</span><% } %></a></div>
<div class="left sliding"><a href="#" class="back link"><i class="icon icon-back"></i><% if (!android) { %><span>
<%= scope.textBack %>
</span><% } %></a></div>
<div class="center sliding">
Background
</div>
<div class="center sliding">
<%= scope.textBackground %>
</div>
<div class="right"><% if (phone) { %><a href="#" class="link icon-only close-picker"><i class="icon icon-expand-down"></i></a><% } %></div>
<div class="right"><% if (phone) { %><a href="#" class="link icon-only close-picker"><i class="icon icon-expand-down"></i></a><% } %></div>
</div>
</div>
</div>
</div>
...
@@ -52,25 +52,25 @@
...
@@ -52,25 +52,25 @@
<div id="edit-paragraph-advanced">
<div id="edit-paragraph-advanced">
<div class="navbar">
<div class="navbar">
<div class="navbar-inner">
<div class="navbar-inner">
<div class="left sliding"><a href="#" class="back link"><i class="icon icon-back"></i><% if (!android) { %><span>
Back
</span><% } %></a></div>
<div class="left sliding"><a href="#" class="back link"><i class="icon icon-back"></i><% if (!android) { %><span>
<%= scope.textBack %>
</span><% } %></a></div>
<div class="center sliding">
Advanced
</div>
<div class="center sliding">
<%= scope.textAdvanced %>
</div>
<div class="right"><% if (phone) { %><a href="#" class="link icon-only close-picker"><i class="icon icon-expand-down"></i></a><% } %></div>
<div class="right"><% if (phone) { %><a href="#" class="link icon-only close-picker"><i class="icon icon-expand-down"></i></a><% } %></div>
</div>
</div>
</div>
</div>
<div class="page" data-page="edit-paragraph-advanced">
<div class="page" data-page="edit-paragraph-advanced">
<div class="page-content">
<div class="page-content">
<div class="content-block-title">
Distance from text
</div>
<div class="content-block-title">
<%= scope.textFromText %>
</div>
<div class="list-block">
<div class="list-block">
<ul>
<ul>
<li id="paragraph-distance-before">
<li id="paragraph-distance-before">
<div class="item-content">
<div class="item-content">
<div class="item-inner">
<div class="item-inner">
<div class="item-title">
Before
</div>
<div class="item-title">
<%= scope.textBefore %>
</div>
<div class="item-after splitter">
<div class="item-after splitter">
<% if (!android) { %><label>
Auto
</label><% } %>
<% if (!android) { %><label>
<%= scope.textAuto %>
</label><% } %>
<p class="buttons-row">
<p class="buttons-row">
<span class="button decrement"><% if (android) { %><i class="icon icon-expand-down"></i><% } else { %>-<% } %></span>
<span class="button decrement"><% if (android) { %><i class="icon icon-expand-down"></i><% } else { %>-<% } %></span>
<% if (android) { %><label>
Auto
</label><% } %>
<% if (android) { %><label>
<%= scope.textAuto %>
</label><% } %>
<span class="button increment"><% if (android) { %><i class="icon icon-expand-up"></i><% } else { %>+<% } %></span>
<span class="button increment"><% if (android) { %><i class="icon icon-expand-up"></i><% } else { %>+<% } %></span>
</p>
</p>
</div>
</div>
...
@@ -80,12 +80,12 @@
...
@@ -80,12 +80,12 @@
<li id="paragraph-distance-after">
<li id="paragraph-distance-after">
<div class="item-content">
<div class="item-content">
<div class="item-inner">
<div class="item-inner">
<div class="item-title">
After
</div>
<div class="item-title">
<%= scope.textAfter %>
</div>
<div class="item-after splitter">
<div class="item-after splitter">
<% if (!android) { %><label>
Auto
</label><% } %>
<% if (!android) { %><label>
<%= scope.textAuto %>
</label><% } %>
<p class="buttons-row">
<p class="buttons-row">
<span class="button decrement"><% if (android) { %><i class="icon icon-expand-down"></i><% } else { %>-<% } %></span>
<span class="button decrement"><% if (android) { %><i class="icon icon-expand-down"></i><% } else { %>-<% } %></span>
<% if (android) { %><label>
Auto
</label><% } %>
<% if (android) { %><label>
<%= scope.textAuto %>
</label><% } %>
<span class="button increment"><% if (android) { %><i class="icon icon-expand-up"></i><% } else { %>+<% } %></span>
<span class="button increment"><% if (android) { %><i class="icon icon-expand-up"></i><% } else { %>+<% } %></span>
</p>
</p>
</div>
</div>
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
<li id="paragraph-space">
<li id="paragraph-space">
<div class="item-content">
<div class="item-content">
<div class="item-inner">
<div class="item-inner">
<div class="item-title">
Space Between Paragraphs
</div>
<div class="item-title">
<%= scope.textSpaceBetween %>
</div>
<div class="item-after">
<div class="item-after">
<label class="label-switch">
<label class="label-switch">
<input type="checkbox">
<input type="checkbox">
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
<li id="paragraph-page-break">
<li id="paragraph-page-break">
<div class="item-content">
<div class="item-content">
<div class="item-inner">
<div class="item-inner">
<div class="item-title">
Page Break Before
</div>
<div class="item-title">
<%= scope.textPageBreak %>
</div>
<div class="item-after">
<div class="item-after">
<label class="label-switch">
<label class="label-switch">
<input type="checkbox">
<input type="checkbox">
...
@@ -129,7 +129,7 @@
...
@@ -129,7 +129,7 @@
<li id="paragraph-page-orphan">
<li id="paragraph-page-orphan">
<div class="item-content">
<div class="item-content">
<div class="item-inner">
<div class="item-inner">
<div class="item-title">
Orphan Control
</div>
<div class="item-title">
<%= scope.textOrphan %>
</div>
<div class="item-after">
<div class="item-after">
<label class="label-switch">
<label class="label-switch">
<input type="checkbox">
<input type="checkbox">
...
@@ -142,7 +142,7 @@
...
@@ -142,7 +142,7 @@
<li id="paragraph-page-keeptogether">
<li id="paragraph-page-keeptogether">
<div class="item-content">
<div class="item-content">
<div class="item-inner">
<div class="item-inner">
<div class="item-title">
Keep Lines Together
</div>
<div class="item-title">
<%= scope.textKeepLines %>
</div>
<div class="item-after">
<div class="item-after">
<label class="label-switch">
<label class="label-switch">
<input type="checkbox">
<input type="checkbox">
...
@@ -155,7 +155,7 @@
...
@@ -155,7 +155,7 @@
<li id="paragraph-page-keepnext">
<li id="paragraph-page-keepnext">
<div class="item-content">
<div class="item-content">
<div class="item-inner">
<div class="item-inner">
<div class="item-title">
Keep with Next
</div>
<div class="item-title">
<%= scope.textKeepNext %>
</div>
<div class="item-after">
<div class="item-after">
<label class="label-switch">
<label class="label-switch">
<input type="checkbox">
<input type="checkbox">
...
...
apps/documenteditor/mobile/app/view/edit/EditParagraph.js
View file @
25d5ab8c
...
@@ -48,7 +48,7 @@ define([
...
@@ -48,7 +48,7 @@ define([
],
function
(
editTemplate
,
$
,
_
,
Backbone
)
{
],
function
(
editTemplate
,
$
,
_
,
Backbone
)
{
'
use strict
'
;
'
use strict
'
;
DE
.
Views
.
EditParagraph
=
Backbone
.
View
.
extend
((
function
()
{
DE
.
Views
.
EditParagraph
=
Backbone
.
View
.
extend
(
_
.
extend
(
(
function
()
{
// private
// private
// var _paragraphStyles;
// var _paragraphStyles;
...
@@ -81,7 +81,8 @@ define([
...
@@ -81,7 +81,8 @@ define([
render
:
function
()
{
render
:
function
()
{
this
.
layout
=
$
(
'
<div/>
'
).
append
(
this
.
template
({
this
.
layout
=
$
(
'
<div/>
'
).
append
(
this
.
template
({
android
:
Common
.
SharedSettings
.
get
(
'
android
'
),
android
:
Common
.
SharedSettings
.
get
(
'
android
'
),
phone
:
Common
.
SharedSettings
.
get
(
'
phone
'
)
phone
:
Common
.
SharedSettings
.
get
(
'
phone
'
),
scope
:
this
}));
}));
return
this
;
return
this
;
...
@@ -154,7 +155,22 @@ define([
...
@@ -154,7 +155,22 @@ define([
showAdvanced
:
function
()
{
showAdvanced
:
function
()
{
this
.
showPage
(
'
#edit-paragraph-advanced
'
);
this
.
showPage
(
'
#edit-paragraph-advanced
'
);
}
},
textBackground
:
'
Background
'
,
textAdvSettings
:
'
Advanced settings
'
,
textPrgStyles
:
'
Paragraph styles
'
,
textBack
:
'
Back
'
,
textAdvanced
:
'
Advanced
'
,
textFromText
:
'
Distance from Text
'
,
textBefore
:
'
Before
'
,
textAuto
:
'
Auto
'
,
textAfter
:
'
After
'
,
textSpaceBetween
:
'
Space Between Paragraphs
'
,
textPageBreak
:
'
Page Break Before
'
,
textOrphan
:
'
Orphan Control
'
,
textKeepLines
:
'
Keep Lines Together
'
,
textKeepNext
:
'
Keep with Next
'
}
}
})()
);
})()
,
DE
.
Views
.
EditParagraph
||
{}))
});
});
\ No newline at end of file
apps/documenteditor/mobile/locale/en.json
View file @
25d5ab8c
...
@@ -250,5 +250,20 @@
...
@@ -250,5 +250,20 @@
"DE.Views.EditImage.textLinkSettings"
:
"Link Settings"
,
"DE.Views.EditImage.textLinkSettings"
:
"Link Settings"
,
"DE.Views.EditImage.textAddress"
:
"Address"
,
"DE.Views.EditImage.textAddress"
:
"Address"
,
"DE.Views.EditImage.textImageURL"
:
"Image URL"
,
"DE.Views.EditImage.textImageURL"
:
"Image URL"
,
"DE.Views.EditImage.textReplaceImg"
:
"Replace Image"
"DE.Views.EditImage.textReplaceImg"
:
"Replace Image"
,
"DE.Views.EditParagraph.textBackground"
:
"Background"
,
"DE.Views.EditParagraph.textAdvSettings"
:
"Advanced settings"
,
"DE.Views.EditParagraph.textPrgStyles"
:
"Paragraph styles"
,
"DE.Views.EditParagraph.textBack"
:
"Back"
,
"DE.Views.EditParagraph.textAdvanced"
:
"Advanced"
,
"DE.Views.EditParagraph.textFromText"
:
"Distance from Text"
,
"DE.Views.EditParagraph.textBefore"
:
"Before"
,
"DE.Views.EditParagraph.textAuto"
:
"Auto"
,
"DE.Views.EditParagraph.textAfter"
:
"After"
,
"DE.Views.EditParagraph.textSpaceBetween"
:
"Space Between Paragraphs"
,
"DE.Views.EditParagraph.textPageBreak"
:
"Page Break Before"
,
"DE.Views.EditParagraph.textOrphan"
:
"Orphan Control"
,
"DE.Views.EditParagraph.textKeepLines"
:
"Keep Lines Together"
,
"DE.Views.EditParagraph.textKeepNext"
:
"Keep with Next"
,
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment