Skip to content

Commit

Permalink
improved internationalization
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Moore committed May 8, 2012
1 parent e87538e commit 71d7c77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 0 additions & 4 deletions colorbox/jquery.colorbox-min.js

This file was deleted.

8 changes: 6 additions & 2 deletions colorbox/jquery.colorbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@
rel: false,
opacity: 0.9,
preloading: true,

current: "image {current} of {total}",
previous: "previous",
next: "next",
close: "close",
xhrError: "This content failed to load.",
imgError: "This image failed to load.",

open: false,
returnFocus: true,
reposition: true,
Expand Down Expand Up @@ -804,7 +808,7 @@
.addClass(prefix + 'Photo')
.error(function () {
settings.title = false;
prep($tag(div, 'Error').text('This image could not be loaded'));
prep($tag(div, 'Error').text(settings.imgError));
})
.load(function () {
var percent;
Expand Down Expand Up @@ -850,7 +854,7 @@
}, 1);
} else if (href) {
$loadingBay.load(href, settings.data, function (data, status, xhr) {
prep(status === 'error' ? $tag(div, 'Error').text('Request unsuccessful: ' + xhr.statusText) : $(this).contents());
prep(status === 'error' ? $tag(div, 'Error').text(settings.xhrError) : $(this).contents());
});
}
};
Expand Down

2 comments on commit 71d7c77

@skovmose
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file "colorbox/jquery.colorbox-min.js" disappears after this commit.

@jackmoore
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I stopped including a minified file. It's still in the download on my site, but I don't think it belongs in the repository.

Please sign in to comment.