Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b76737bb
authored
Feb 07, 2013
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one: mark cloud.js for i18n
parent
d29820ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
one/static/cloud.js
+15
-7
No files found.
one/static/cloud.js
View file @
b76737bb
...
@@ -187,7 +187,7 @@ $(function() {
...
@@ -187,7 +187,7 @@ $(function() {
if
(
a
.
type
===
b
.
type
)
{
if
(
a
.
type
===
b
.
type
)
{
return
a
.
originalName
.
localeCompare
(
b
.
originalName
);
return
a
.
originalName
.
localeCompare
(
b
.
originalName
);
}
}
if
(
a
.
type
===
'fájl'
)
{
if
(
a
.
type
===
gettext
(
'file'
)
)
{
return
1
;
return
1
;
}
}
return
-
1
;
return
-
1
;
...
@@ -196,7 +196,7 @@ $(function() {
...
@@ -196,7 +196,7 @@ $(function() {
if
(
a
.
type
===
b
.
type
)
{
if
(
a
.
type
===
b
.
type
)
{
return
new
Date
(
b
.
mTime
).
getTime
()
-
new
Date
(
a
.
mTime
).
getTime
();
return
new
Date
(
b
.
mTime
).
getTime
()
-
new
Date
(
a
.
mTime
).
getTime
();
}
}
if
(
a
.
type
===
'fájl'
)
{
if
(
a
.
type
===
gettext
(
'file'
)
)
{
return
1
;
return
1
;
}
}
return
-
1
;
return
-
1
;
...
@@ -205,7 +205,7 @@ $(function() {
...
@@ -205,7 +205,7 @@ $(function() {
if
(
a
.
type
===
b
.
type
)
{
if
(
a
.
type
===
b
.
type
)
{
return
b
.
originalSize
-
a
.
originalSize
;
return
b
.
originalSize
-
a
.
originalSize
;
}
}
if
(
a
.
type
===
'fájl'
)
{
if
(
a
.
type
===
gettext
(
'file'
)
)
{
return
1
;
return
1
;
}
}
return
-
1
;
return
-
1
;
...
@@ -301,7 +301,7 @@ $(function() {
...
@@ -301,7 +301,7 @@ $(function() {
originalSize
:
d
.
SIZE
,
originalSize
:
d
.
SIZE
,
name
:
d
.
NAME
.
length
>
30
?
(
d
.
NAME
.
substr
(
0
,
27
)
+
'...'
)
:
d
.
NAME
,
name
:
d
.
NAME
.
length
>
30
?
(
d
.
NAME
.
substr
(
0
,
27
)
+
'...'
)
:
d
.
NAME
,
size
:
convert
(
d
.
SIZE
),
size
:
convert
(
d
.
SIZE
),
type
:
'fájl'
,
type
:
gettext
(
'file'
)
,
mTime
:
d
.
MTIME
,
mTime
:
d
.
MTIME
,
getTypeClass
:
'name filetype-'
+
type
,
getTypeClass
:
'name filetype-'
+
type
,
clickHandler
:
function
(
item
,
e
)
{
clickHandler
:
function
(
item
,
e
)
{
...
@@ -350,7 +350,15 @@ $(function() {
...
@@ -350,7 +350,15 @@ $(function() {
*/
*/
self
.
delete
=
function
(
item
)
{
self
.
delete
=
function
(
item
)
{
$
(
'#modal'
).
show
();
$
(
'#modal'
).
show
();
$
(
'#modal-container'
).
html
(
'Biztosan törlöd a(z) <strong>'
+
item
.
originalName
+
'</strong> '
+
(
item
.
type
==
'fájl'
?
'fájlt'
:
'mappát (és a teljes tartalmát)'
)
+
'? <br /><input class="ok" type="button" value="Naná!" style="float: left"/><input class="cancel" type="button" value="Fittyfenét!" style="float: right" />'
);
s
=
""
;
if
(
item
.
type
==
gettext
(
'file'
))
{
s
=
gettext
(
"You are removing the file <strong>%s</strong>."
);
}
else
{
s
=
gettext
(
"You are removing the folder <strong>%s</strong> (and its content)."
);
}
$
(
'#modal-container'
).
html
(
interpolate
(
s
,
[
item
.
originalName
])
+
" "
+
gettext
(
"Are you sure?"
)
+
'<br /><input class="ok" type="button" value="'
+
gettext
(
"Delete"
)
+
'" style="float: left"/><input class="cancel" type="button" value="'
+
gettext
(
'Cancel'
)
+
'" style="float: right" />'
);
$
(
'#modal-container .ok'
).
click
(
function
()
{
$
(
'#modal-container .ok'
).
click
(
function
()
{
$
(
'#modal'
).
hide
();
$
(
'#modal'
).
hide
();
$
.
ajax
({
$
.
ajax
({
...
@@ -496,9 +504,9 @@ $(function() {
...
@@ -496,9 +504,9 @@ $(function() {
t
=
t
.
toFixed
(
1
)
+
' '
+
suffix
[
i
];
t
=
t
.
toFixed
(
1
)
+
' '
+
suffix
[
i
];
var
diff
=
new
Date
().
getTime
()
-
start
;
var
diff
=
new
Date
().
getTime
()
-
start
;
if
(
complete
<
100
)
{
if
(
complete
<
100
)
{
$
(
'#upload-progress-text'
).
html
(
'Feltöltés
: '
+
convert
(
event
.
loaded
/
diff
*
1000
)
+
'/s ('
+
(
event
.
loaded
/
event
.
total
*
100
).
toFixed
(
2
)
+
'%)'
);
$
(
'#upload-progress-text'
).
html
(
gettext
(
'Upload'
)
+
'
: '
+
convert
(
event
.
loaded
/
diff
*
1000
)
+
'/s ('
+
(
event
.
loaded
/
event
.
total
*
100
).
toFixed
(
2
)
+
'%)'
);
}
else
{
}
else
{
$
(
'#upload-progress-text'
).
html
(
'Feltöltés: Kész, feldolgozás...'
);
$
(
'#upload-progress-text'
).
html
(
gettext
(
'Upload'
)
+
': '
+
gettext
(
'done, processing...'
)
);
}
}
}
}
}
}
...
...
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