Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
1c311c36
Commit
1c311c36
authored
13 years ago
by
Robin Appelman
Browse files
Options
Downloads
Patches
Plain Diff
add translation wrappers to gallery strings in js
parent
42ef44e1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/gallery/js/album_cover.js
+6
-6
6 additions, 6 deletions
apps/gallery/js/album_cover.js
with
6 additions
and
6 deletions
apps/gallery/js/album_cover.js
+
6
−
6
View file @
1c311c36
...
...
@@ -37,14 +37,14 @@ var totalAlbums = 0;
function
scanForAlbums
()
{
var
albumCounter
=
0
;
var
totalAlbums
=
0
;
$
(
'
#notification
'
).
text
(
"
Scanning directories
"
);
$
(
'
#notification
'
).
text
(
t
(
'
gallery
'
,
"
Scanning directories
"
)
)
;
$
(
"
#notification
"
).
fadeIn
();
$
(
"
#notification
"
).
slideDown
();
$
.
getJSON
(
'
ajax/galleryOp.php?operation=filescan
'
,
function
(
r
)
{
if
(
r
.
status
==
'
success
'
)
{
totalAlbums
=
r
.
paths
.
length
;
$
(
'
#notification
'
).
text
(
"
Creating thumbnails ...
"
+
Math
.
floor
((
albumCounter
/
totalAlbums
)
*
100
)
+
"
%
"
);
$
(
'
#notification
'
).
text
(
t
(
'
gallery
'
,
'
Creating thumbnails
'
)
+
'
...
'
+
Math
.
floor
((
albumCounter
/
totalAlbums
)
*
100
)
+
"
%
"
);
for
(
var
a
in
r
.
paths
)
{
$
.
getJSON
(
'
ajax/galleryOp.php?operation=partial_create&path=
'
+
r
.
paths
[
a
],
function
(
r
)
{
...
...
@@ -53,7 +53,7 @@ function scanForAlbums() {
}
albumCounter
++
;
$
(
'
#notification
'
).
text
(
"
Creating thumbnails ...
"
+
Math
.
floor
((
albumCounter
/
totalAlbums
)
*
100
)
+
"
%
"
);
$
(
'
#notification
'
).
text
(
t
(
'
gallery
'
,
'
Creating thumbnails
'
)
+
'
...
'
+
Math
.
floor
((
albumCounter
/
totalAlbums
)
*
100
)
+
"
%
"
);
if
(
albumCounter
==
totalAlbums
)
{
$
(
"
#notification
"
).
fadeOut
();
$
(
"
#notification
"
).
slideUp
();
...
...
@@ -74,7 +74,7 @@ function scanForAlbums() {
}
function
galleryRemove
(
albumName
)
{
if
(
confirm
(
"
Do you wan't to remove album
"
+
albumName
+
"
?
"
))
{
if
(
confirm
(
t
(
'
gallery
'
,
"
Do you wan't to remove album
"
)
+
'
'
+
albumName
+
"
?
"
))
{
$
.
getJSON
(
"
ajax/galleryOp.php
"
,
{
operation
:
"
remove
"
,
name
:
albumName
},
function
(
r
)
{
if
(
r
.
status
==
"
success
"
)
{
$
(
"
#gallery_album_box[title='
"
+
albumName
+
"
']
"
).
remove
();
...
...
@@ -87,7 +87,7 @@ function galleryRemove(albumName) {
}
function
galleryRename
(
name
)
{
var
result
=
window
.
prompt
(
"
Input new gallery name
"
,
name
);
var
result
=
window
.
prompt
(
t
(
'
gallery
'
,
"
Input new gallery name
"
)
,
name
);
if
(
result
)
{
if
(
Albums
.
find
(
result
))
{
alert
(
"
Album named '
"
+
result
+
"
' already exists
"
);
...
...
@@ -102,7 +102,7 @@ function galleryRename(name) {
});
}
else
{
alert
(
"
Album name can't be empty
"
)
alert
(
t
(
'
gallery
'
,
"
Album name can't be empty
"
)
)
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment