Skip to content

Commit

Permalink
Added French support to Lightbox. Added override support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Jackson authored and Paul Jackson committed Jul 12, 2012
1 parent d5c4b27 commit 8f139e0
Show file tree
Hide file tree
Showing 12 changed files with 94 additions and 56 deletions.
2 changes: 1 addition & 1 deletion build/js/css/pe-ap-ie-min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/js/css/pe-ap-min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/js/i18n/en-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/js/i18n/fr-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/js/pe-ap-min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demos/lightbox/lightbox-eng.html
Expand Up @@ -270,7 +270,7 @@ <h4 class="background-dark margin-bottom-medium">Hidden Photo Gallery</h4>
<img src="images/1_s.jpg" alt="Photo 1" class="image-actual" />
</a>
</p>
<div class="hidden">
<div class="lightbox-hidden">
<p>
<a class="lightbox-item" rel="hidden-gallery" href="images/2_b.jpg" title="Photo 2">
<img src="images/2_s.jpg" alt="Photo 2" class="image-actual" />
Expand Down
9 changes: 7 additions & 2 deletions src/js/i18n/en.js
Expand Up @@ -74,6 +74,8 @@
"%hide" : "Hide",
"%error" : "Error",
"%colon" : ":",
"%start" : "Start",
"%stop" : "Stop",
"%minute-ago" : "a minute ago",
"%couple-of-minutes" : "couple of minutes ago",
"%minutes-ago" : {
Expand All @@ -98,7 +100,7 @@
},
/* Multimedia player */
"%play" : "Play",
"%stop" : "Pause",
"%pause" : "Pause",
"%close" : "Close",
"%rewind" : "Rewind ",
"%next" : "Next",
Expand Down Expand Up @@ -143,7 +145,10 @@
"%hide-image" : "hide.png",
"%table-contents" : " table of contents",
/* Lightbox */
"%lightbox-error" : "The requested content cannot be loaded.<br />Please try again later."
"%lightbox-current" : "Image {current} of {total}",
"%lightbox-xhr-error" : "This content failed to load.",
"%lightbox-img-error" : "This image failed to load.",
"%lightbox-slideshow" : "slideshow"
}
};
$(document).trigger("languageloaded");
Expand Down
9 changes: 7 additions & 2 deletions src/js/i18n/fr.js
Expand Up @@ -70,6 +70,8 @@
"%hide" : "Masquer",
"%error" : "Erreur",
"%colon" : "&#160;:",
"%start" : "Lancer",
"%stop" : "SArrêter",
"%minute-ago": "il ya une minute",
"%couple-of-minutes": "il ya quelques minutes",
"%minutes-ago": {
Expand All @@ -94,7 +96,7 @@
},
/* Multimedia player */
"%play": "Jouer",
"%stop": "Pause",
"%pause": "Pause",
"%close": "Fermer",
"%rewind": "Reculer ",
"%next" : "Prochaine",
Expand Down Expand Up @@ -137,7 +139,10 @@
"%hide-image" : "cacher.png",
"%table-contents" : " la table des matières",
/* Lightbox */
"%lightbox-error" : "Le contenu demandé ne peut pas être chargé.<br />S'il vous plaît essayer encore plus tard."
"%lightbox-current" : "Image {current} de {total}",
"%lightbox-xhr-error" : "Le chargement de ce contenu a échoué.",
"%lightbox-img-error" : "Le chargement de cette image a échoué.",
"%lightbox-slideshow" : "la diaporama"
}
};
$(document).trigger("languageloaded");
Expand Down
29 changes: 29 additions & 0 deletions src/js/sass/lightbox-ie6.scss
@@ -0,0 +1,29 @@
@charset "utf-8";
/*
* Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
* www.tbs.gc.ca/ws-nw/wet-boew/terms / www.sct.gc.ca/ws-nw/wet-boew/conditions
*/

/*
The following provides PNG transparency support for IE6
Feel free to remove this and the /ie6/ directory if you have dropped IE6 support.
*/
.cboxIE6 #cboxTopLeft{background:url(../images/lightbox/ie6/borderTopLeft.png);}
.cboxIE6 #cboxTopCenter{background:url(../images/lightbox/ie6/borderTopCenter.png);}
.cboxIE6 #cboxTopRight{background:url(../images/lightbox/ie6/borderTopRight.png);}
.cboxIE6 #cboxBottomLeft{background:url(../images/lightbox/ie6/borderBottomLeft.png);}
.cboxIE6 #cboxBottomCenter{background:url(../images/lightbox/ie6/borderBottomCenter.png);}
.cboxIE6 #cboxBottomRight{background:url(../images/lightbox/ie6/borderBottomRight.png);}
.cboxIE6 #cboxMiddleLeft{background:url(../images/lightbox/ie6/borderMiddleLeft.png);}
.cboxIE6 #cboxMiddleRight{background:url(../images/lightbox/ie6/borderMiddleRight.png);}

.cboxIE6 #cboxTopLeft,
.cboxIE6 #cboxTopCenter,
.cboxIE6 #cboxTopRight,
.cboxIE6 #cboxBottomLeft,
.cboxIE6 #cboxBottomCenter,
.cboxIE6 #cboxBottomRight,
.cboxIE6 #cboxMiddleLeft,
.cboxIE6 #cboxMiddleRight {
_behavior: expression(this.src = this.src ? this.src : this.currentStyle.backgroundImage.split('"')[1], this.style.background = "none", this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=" + this.src + ", sizingMethod='scale')");
}
21 changes: 21 additions & 0 deletions src/js/sass/lightbox-ie7.scss
@@ -0,0 +1,21 @@
@charset "utf-8";
/*
* Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
* www.tbs.gc.ca/ws-nw/wet-boew/terms / www.sct.gc.ca/ws-nw/wet-boew/conditions
*/

/*
The following fixes a problem where IE7 and IE8 replace a PNG's alpha transparency with a black fill
when an alpha filter (opacity change) is set on the element or ancestor element. This style is not applied to or needed in IE9.
See: http://jacklmoore.com/notes/ie-transparency-problems/
*/
.cboxIE #cboxTopLeft,
.cboxIE #cboxTopCenter,
.cboxIE #cboxTopRight,
.cboxIE #cboxBottomLeft,
.cboxIE #cboxBottomCenter,
.cboxIE #cboxBottomRight,
.cboxIE #cboxMiddleLeft,
.cboxIE #cboxMiddleRight {
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);
}

0 comments on commit 8f139e0

Please sign in to comment.