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
978fd8e1
Commit
978fd8e1
authored
Nov 18, 2016
by
Alexander Yuzhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DE mobile] Localization AddImage.
parent
a7cf6004
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
16 deletions
+34
-16
apps/documenteditor/mobile/app/controller/add/AddImage.js
apps/documenteditor/mobile/app/controller/add/AddImage.js
+2
-3
apps/documenteditor/mobile/app/template/AddImage.template
apps/documenteditor/mobile/app/template/AddImage.template
+8
-8
apps/documenteditor/mobile/app/view/add/AddImage.js
apps/documenteditor/mobile/app/view/add/AddImage.js
+13
-4
apps/documenteditor/mobile/locale/en.json
apps/documenteditor/mobile/locale/en.json
+11
-1
No files found.
apps/documenteditor/mobile/app/controller/add/AddImage.js
View file @
978fd8e1
...
...
@@ -84,11 +84,10 @@ define([
var
me
=
this
;
$
(
'
#addimage-insert a
'
).
single
(
'
click
'
,
_
.
buffered
(
me
.
onInsertByUrl
,
100
,
me
));
$
(
'
#addimage-url input[type="url"]
'
).
single
(
'
input
'
,
_
.
bind
(
me
.
onUrlChange
,
me
));
$
(
'
#addimage-url input[type=url]
'
).
single
(
'
input
'
,
_
.
bind
(
me
.
onUrlChange
,
me
));
_
.
delay
(
function
()
{
$
(
'
#addimage-link-url input[type=
"url"
]
'
).
focus
();
$
(
'
#addimage-link-url input[type=
url
]
'
).
focus
();
},
1000
);
},
...
...
apps/documenteditor/mobile/app/template/AddImage.template
View file @
978fd8e1
...
...
@@ -9,7 +9,7 @@
<i class="icon icon-search"></i>
</div>
<div class="item-inner">
<div class="item-title">
Picture from Library
</div>
<div class="item-title">
<%= scope.textFromLibrary %>
</div>
</div>
</div>
</a>
...
...
@@ -21,7 +21,7 @@
<i class="icon icon-link"></i>
</div>
<div class="item-inner">
<div class="item-title">
Picture from URL
</div>
<div class="item-title">
<%= scope.textFromURL %>
</div>
</div>
</div>
</a>
...
...
@@ -34,20 +34,20 @@
<div id="addimage-url-view">
<div class="navbar">
<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="center sliding">
Link Settings
</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">
<%= scope.textLinkSettings %>
</div>
</div>
</div>
<div class="page" id="addimage-url">
<div class="page-content">
<div class="content-block-title">
Address
</div>
<div class="content-block-title">
<%= scope.textAddress %>
</div>
<div class="list-block">
<ul>
<li>
<div id="addimage-link-url" class="item-content">
<div class="item-inner">
<div class="item-input">
<input type="url" placeholder="
Image URL
">
<input type="url" placeholder="
<%= scope.textImageURL %>
">
</div>
</div>
</div>
...
...
@@ -56,11 +56,11 @@
</div>
<div class="list-block disabled" id="addimage-insert">
<% if (android) { %>
<a href="#" class="button button-fill button-raised" style="margin: 20px 16px;">
Insert Image
</a>
<a href="#" class="button button-fill button-raised" style="margin: 20px 16px;">
<%= scope.textInsertImage %>
</a>
<% } else { %>
<ul>
<li>
<a href="#" class="list-button item-link">
Insert Image
</a>
<a href="#" class="list-button item-link">
<%= scope.textInsertImage %>
</a>
</li>
</ul>
<% } %>
...
...
apps/documenteditor/mobile/app/view/add/AddImage.js
View file @
978fd8e1
...
...
@@ -49,7 +49,7 @@ define([
],
function
(
addTemplate
,
$
,
_
,
Backbone
)
{
'
use strict
'
;
DE
.
Views
.
AddImage
=
Backbone
.
View
.
extend
((
function
()
{
DE
.
Views
.
AddImage
=
Backbone
.
View
.
extend
(
_
.
extend
(
(
function
()
{
// private
return
{
...
...
@@ -76,7 +76,8 @@ define([
render
:
function
()
{
this
.
layout
=
$
(
'
<div/>
'
).
append
(
this
.
template
({
android
:
Common
.
SharedSettings
.
get
(
'
android
'
),
phone
:
Common
.
SharedSettings
.
get
(
'
phone
'
)
phone
:
Common
.
SharedSettings
.
get
(
'
phone
'
),
scope
:
this
}));
return
this
;
...
...
@@ -117,7 +118,15 @@ define([
showImageUrl
:
function
()
{
this
.
showPage
(
'
#addimage-url-view
'
);
}
},
textFromLibrary
:
'
Picture from Library
'
,
textFromURL
:
'
Picture from URL
'
,
textBack
:
'
Back
'
,
textLinkSettings
:
'
Link Settings
'
,
textAddress
:
'
Address
'
,
textImageURL
:
'
Image URL
'
,
textInsertImage
:
'
Insert Image
'
}
})()
);
})()
,
DE
.
Views
.
AddImage
||
{}))
});
\ No newline at end of file
apps/documenteditor/mobile/locale/en.json
View file @
978fd8e1
...
...
@@ -140,5 +140,15 @@
"DE.Controllers.AddContainer.textTable"
:
"Table"
,
"DE.Controllers.AddContainer.textShape"
:
"Shape"
,
"DE.Controllers.AddContainer.textImage"
:
"Image"
,
"DE.Controllers.AddContainer.textOther"
:
"Other"
"DE.Controllers.AddContainer.textOther"
:
"Other"
,
"DE.Controllers.AddImage.textEmptyImgUrl"
:
"You need to specify image URL."
,
"DE.Controllers.AddImage.txtNotUrl"
:
"This field should be a URL in the format 'http://www.example.com'"
,
"DE.Views.AddImage.textFromLibrary"
:
"Picture from Library"
,
"DE.Views.AddImage.textFromURL"
:
"Picture from URL"
,
"DE.Views.AddImage.textBack"
:
"Back"
,
"DE.Views.AddImage.textLinkSettings"
:
"Link Settings"
,
"DE.Views.AddImage.textAddress"
:
"Address"
,
"DE.Views.AddImage.textImageURL"
:
"Image URL"
,
"DE.Views.AddImage.textInsertImage"
:
"Insert Image"
}
\ 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