Page 1 of 1

Some Suggestions: multi-lan and sort photo

Posted: 18 Jan 2010, 18:44
by link4you
Hello everyone, first of all, thank you guys for this great gallery.

I have a few suggestions about the gallery:

1. After been hanging around in the forum, I noticed that a few people have suggested a multi-language gallery, however, there seems no good solution yet.
After I studied a few code of this gallery, I've noticed that the core codes are in the "imagevue" folder, and I am not a programer, so what I am suggesting might be a huge work that is hard to be done, but anyways, I have this idea:
if you guys can make the gallery in different language version, for example:
we can have a index page at the root for choosing language, and then have different language version of the gallery in sub folder, like "/en" or "/fr", then the "content"folder remains in the root folder, and when different language version of the gallery read the floder, it reaches for folderdata-en.xml or folderdata-fr.xml, also in differnent language folder we will have a complete set of file for the gallery, for example in "/en", we will have common.inc-en.php, and other files in imagevue folder for all file like *****-en.php, etc.
In this way, we can put different names on the same photo...etc...etc... and when poeple need to expend their gallery into different languages, what they need to do is just request different language packs, put it under root, and it will read the same photo in content folder but created different names and discriptions.

Again, I am not a programer, I am just wondering how doable this might be, if you guys can see this, please at least let me know if this could be done, or it is just too much work to do.

Another suggestion is about another function in the main menu, now upload photo is very simple already, just upload , no code need to be set, however, if the gallery keeps updates, maybe some photo falls into the same cateloge, but uploaded in a different time, the returning visitors might confuse which ones they saw before, which ones are new.
So if we can have some functions in the main menu like "sort by month", then all the photo will be sorted by the date of uploads (yes, upload time, no matter when the photos were shot, I would think here only the upload time matters, cuz, newly uploaded photo are new for your viewers no matter when they were shot), and then your viewer can recall when was the last time they were here, and which photos are new that they will focus on. if this is doable, will be a very nice funciton of this gallery.

One more step, maybe we could also introduce the "map" function like "iphoto" has, I don't think the "face" function would be very useful in our case, but a map function could be very useful for someone travels a lot, and put their photos from those travels around the world. And I know there is a wordpress gallery plugin have this sort of function already, so I thought this function might not be too hard to be done.

Those are the suggestions I came up with so far, and I post more if I can think of more in the future, again, thanks for the great gallery.

Posted: 18 Jan 2010, 20:33
by SofTones
link4you !!! I needed my gallery in 2 (two) languages, English/Chinese, so I got over the problem by making a small HTML loading page, where user may select language of choice at start-up... this to me was the logical thing, otherwise your gallery load in your language, and viewer need to navigate your language menu to get to link for THEIR language ... ok, French/English not too bad, but other parts of world maybe can't understand ONE word of French ?? or even English ?? Just thought I'd mention it... Who am I ?????
we can have a index page at the root for choosing language, and then have different language version of the gallery in sub folder, like "/en" or "/fr", then the "content"folder remains in the root folder, and when different language version of the gallery read the floder, it reaches for folderdata-en.xml or folderdata-fr.xml, also in differnent language folder we will have a complete set of file for the gallery, for example in "/en", we will have common.inc-en.php, and other files in imagevue folder for all file like *****-en.php, etc.

This, I would think almost impossible to implement ?????
In this way, we can put different names on the same photo...etc...etc... and when poeple need to expend their gallery into different languages, what they need to do is just request different language packs, put it under root, and it will read the same photo in content folder but created different names and discriptions.
A good idea, but very difficult to perform...

Posted: 20 Jan 2010, 02:54
by link4you
SofTones wrote:link4you !!! I needed my gallery in 2 (two) languages, English/Chinese, so I got over the problem by making a small HTML loading page, where user may select language of choice at start-up... this to me was the logical thing, otherwise your gallery load in your language, and viewer need to navigate your language menu to get to link for THEIR language ... ok, French/English not too bad, but other parts of world maybe can't understand ONE word of French ?? or even English ?? Just thought I'd mention it... Who am I ?????
we can have a index page at the root for choosing language, and then have different language version of the gallery in sub folder, like "/en" or "/fr", then the "content"folder remains in the root folder, and when different language version of the gallery read the floder, it reaches for folderdata-en.xml or folderdata-fr.xml, also in differnent language folder we will have a complete set of file for the gallery, for example in "/en", we will have common.inc-en.php, and other files in imagevue folder for all file like *****-en.php, etc.

This, I would think almost impossible to implement ?????
In this way, we can put different names on the same photo...etc...etc... and when poeple need to expend their gallery into different languages, what they need to do is just request different language packs, put it under root, and it will read the same photo in content folder but created different names and discriptions.
A good idea, but very difficult to perform...
thanks for reply to me, maybe I did not explain myself very clearly, and from what I can tell that the solution you provided, I know clearly what you are doing. You are suggest to make a "language choose page" then, create two different set of gallerys in different folders, this is for sure gonna work, but the problem is you have to upload all your photos several times depending on how many languages you are running.

And what I am thinking is, if we could have the language choose page under the root, as well as the imagevue.php file, with the content folder plus the two folders in my case "en", and "fr" under the root , and all the files in the old "imagevue" folder goes into en or fr with the ***-en.php or ***-fr.php, and when you choose your language from the index.php which is under the root, the imagevue.php file will look for all the file it needs under either en or fr folder for different languages of the gallery, and of course all the files under en folder will use the english tilte and discriptionin the content folder as I suggested in the topic.

And if what I am suggesting is possible, there will be only one content folder which would be much easier to manage.
And I am not sure it is clear the way I explain, please let me know if there is any part is unclear, which could be misunderstandings.

Posted: 20 Jan 2010, 03:08
by mjau-mjau
link4you: I understand perfectly well what you mean, and it would be a benefit to support multiple titles/descriptions (in effect multiple languages) without having to create duplicate content folders.

The problem is currently that all data is stored in an XML file in the folder of content. If we are going to separate languages, we need to create multiple XML files one for each language, and then also segregate them from core image and folder data that is unrelated to language ... We dont wanna duplicate that into all XMLs of course ...

We will consider this for the future ...

Posted: 20 Jan 2010, 23:46
by link4you
mjau-mjau wrote:link4you: I understand perfectly well what you mean, and it would be a benefit to support multiple titles/descriptions (in effect multiple languages) without having to create duplicate content folders.

The problem is currently that all data is stored in an XML file in the folder of content. If we are going to separate languages, we need to create multiple XML files one for each language, and then also segregate them from core image and folder data that is unrelated to language ... We dont wanna duplicate that into all XMLs of course ...

We will consider this for the future ...
Please excuse me for my rudeness, but I am wondering why we can't have more than one XMLs in one folder, since I don't really know too much about programing, to my point of view it's just a set of "config" files, if we have ***-en.xml and ***-fr.xml files, then english version is looking for the en one and french version is looking for the french one, I can't see any conflict here, do you mind to explain it to me a little bit, please, thanks.

Also I have another suggestion about a "sort by upload date" function in my initial post, is it also not possible to be done? Thanks.

Posted: 21 Jan 2010, 05:03
by mjau-mjau
Yes we can have more than 1 XML, my only point being that there are other things stored in the XML ... For example folder sorting options, preview-image, folder-type etc. If we are to maintain multiple XML files, all this NON-language data needs to be stored in multiple files also (kinda clumsy). Elsewise, we would have to separate RAW data with language DATA. Meaning we would have files like:
Code
image_data.xml
french.xml
english.xml
spanish.xml
... where image_data.xml would contain the NON-language data. I am just trying to give you a picture of the technical requirements to be able to simply support multiple languages for images. This is more difficult for imagevue than perhaps some other gallery apps, because imagevue is not running from a database.

"Sort by uploaded date" should already be working when setting to sort-by-date. It sorts images as to when they were created on server(when they are uploaded).

Posted: 22 Jan 2010, 03:26
by link4you
mjau-mjau wrote:Yes we can have more than 1 XML, my only point being that there are other things stored in the XML ... For example folder sorting options, preview-image, folder-type etc. If we are to maintain multiple XML files, all this NON-language data needs to be stored in multiple files also (kinda clumsy). Elsewise, we would have to separate RAW data with language DATA. Meaning we would have files like:
Code
image_data.xml
french.xml
english.xml
spanish.xml
... where image_data.xml would contain the NON-language data. I am just trying to give you a picture of the technical requirements to be able to simply support multiple languages for images. This is more difficult for imagevue than perhaps some other gallery apps, because imagevue is not running from a database.

"Sort by uploaded date" should already be working when setting to sort-by-date. It sorts images as to when they were created on server(when they are uploaded).
Thanks for explaining this to me, it all makes sense to me now, thanks a lot. Looking forward to the new features.