Skip to content

Commit

Permalink
2006-01-05 Pierre-Luc Paour <gallery@paour.com> (1.5.1-b9)
Browse files Browse the repository at this point in the history
	* Japanese translation by Yosuke Suzuki.
	* Spanish translation by Mikel Pascual Aldabaldetreku.
  • Loading branch information
Pierre-Luc Paour committed Jan 5, 2006
1 parent b06876e commit 0f96efd
Show file tree
Hide file tree
Showing 5 changed files with 771 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2006-01-05 Pierre-Luc Paour <gallery@paour.com> (1.5.1-b9)

* Japanese translation by Yosuke Suzuki.
* Spanish translation by Mikel Pascual Aldabaldetreku.

2005-12-22 Pierre-Luc Paour <gallery@paour.com> (1.5.1-b8)

* Fixed slideshow threading issues.
Expand Down
9 changes: 8 additions & 1 deletion com/gallery/GalleryRemote/GalleryComm2_5.java
Expand Up @@ -31,6 +31,7 @@ public class GalleryComm2_5 extends GalleryComm2 {
private static int[] capabilities4;
private static int[] capabilities6;
private static int[] capabilities7;
private static int[] capabilities8;

protected GalleryComm2_5(Gallery g) {
super(g);
Expand All @@ -50,12 +51,16 @@ protected GalleryComm2_5(Gallery g) {
capabilities7 = new int[]{CAPA_UPLOAD_FILES, CAPA_FETCH_ALBUMS, CAPA_UPLOAD_CAPTION,
CAPA_FETCH_HIERARCHICAL, CAPA_ALBUM_INFO, CAPA_NEW_ALBUM, CAPA_FETCH_ALBUMS_PRUNE,
CAPA_FETCH_ALBUM_IMAGES, CAPA_INCREMENT_VIEW_COUNT};
capabilities8 = new int[]{CAPA_UPLOAD_FILES, CAPA_FETCH_ALBUMS, CAPA_UPLOAD_CAPTION,
CAPA_FETCH_HIERARCHICAL, CAPA_ALBUM_INFO, CAPA_NEW_ALBUM, CAPA_FETCH_ALBUMS_PRUNE,
CAPA_FETCH_ALBUM_IMAGES, CAPA_INCREMENT_VIEW_COUNT, CAPA_FETCH_ALBUMS};

Arrays.sort(capabilities2);
Arrays.sort(capabilities3);
Arrays.sort(capabilities4);
Arrays.sort(capabilities6);
Arrays.sort(capabilities7);
Arrays.sort(capabilities8);

g.setGalleryVersion(2);
}
Expand Down Expand Up @@ -150,7 +155,9 @@ public NVPair[] fudgeFormParameters(NVPair form_data[]) {
}

void handleCapabilities() {
if (serverMinorVersion >= 7) {
if (serverMinorVersion >= 8) {
capabilities = capabilities8;
} else if (serverMinorVersion >= 7) {
capabilities = capabilities7;
} else if (serverMinorVersion >= 6) {
capabilities = capabilities6;
Expand Down

0 comments on commit 0f96efd

Please sign in to comment.