Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
EtienneOuellet
Experienced
Topic Author
Posts: 46
Joined: 14 Mar 2011, 16:31

Multi lingual

15 Mar 2011, 15:46

Hi!

I live in a bilingual country which is beautiful Canada... I mostly speak French but Montreal being a big city, there's a lot of english people here! Probably 70% french and 30% english...

So I wanted to translate my whole gallery to extend my business opportunities to the english market as well, but I couldn't find an easy way of doing so. I first though i'd be able to upload a complete new english gallery in a different folder on my server (www.etienneouellet.com/eng/) and then, have both my french and english website share the same "content" folder. But I found out that translating a folder's name to english would affect the french version as well.

So it turns out the only way of a having a multi lingual website would be to have two separate galleries with their own "content" folder?! That's going to be an hassle when comes the time to update the content! Is there an other way? Somebody though of a twist I could use to have them share the same "content" folder?

If not... then I guess this post could be moved to the request category! I'd REALLY like to be able to have a bilingual website!

Merci!
Image
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Multi lingual

16 Mar 2011, 10:06

Right now, you can have multiple languages for the interface - For example:
https://www.photo.gallery/demo/x2/?language=norwegian
https://www.photo.gallery/demo/x2/?language=french

Unfortunately, it is an entirely different world when it comes to supporting multiple languages in actual content, titles and descriptions. For this, Imagevue would require multiple input fields for each attribute for each language for each file and folder in the admin. Although not impossible, this would be too big of a technical and logistical challenge at this point. Not even large community-maintained galleries of services like Flickr and Picasa have this functionality.

I understand very well why you require this of course, and it has been requested earlier also. We will perhaps consider it in the future if we find the time.

I actually have some ideas on how this can be implemented without too much hassle, so let us think about it for a while and maybe I can get back to this topic.

In the meantime, your only solution would be to manage 2x entirely separate physical galleries.
 
User avatar
EtienneOuellet
Experienced
Topic Author
Posts: 46
Joined: 14 Mar 2011, 16:31

Re: Multi lingual

16 Mar 2011, 22:09

Thanks for your answer!

I totally understand the technical challenge! I was just wondering if it was possible at this time.

Keep up the good work, I will closely follow this topic!
Image
 
User avatar
Martin
Experienced
Posts: 651
Joined: 30 Jan 2011, 23:24

Re: Multi lingual

17 Mar 2011, 04:49

mjau-mjau wrote: I actually have some ideas on how this can be implemented without too much hassle, so let us think about it for a while and maybe I can get back to this topic.
I'm also very interested in a workaround without too much hassle....

... just to let you know :D

martin
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Multi lingual

21 Mar 2011, 03:49

mjau-mjau wrote:Edit / June 13, 2011
New Multiple Languages Documentation:
https://www.photo.gallery/blog/languages/

New Multiple Languages Demo:
https://www.photo.gallery/demo/x2/#/content/ ... -language/
Based on your feedback, we are now integrating multiple language support into Imagevue. Perhaps not in the most elegant fashion, but at least it should work 100% and is relatively easy to integrate. This feature will be available for Imagevue X2.7 coming soon

Basically, it requires you to create your titles and descriptions like this:
Code
[english]This is an English title[/english][french]Il s'agit d'un titre français[/french]
When accessing the gallery with ?language=english, it will show the English text, and when accessing the gallery with ?language=french, it will show the French text.
  • This language-code works for all file- and folder titles and descriptions, as well as textpages.
  • You can still use standard single-language input for those item where you don't need/want multi-language support. In other words, this feature is optional per field.
  • In the example above, there is 2 languages, but you can add as many as you like.
  • If a language is used that a text is not made for, it will use the text from the first language item.
What do you guys think about this? We are still working on it, so any comments are welcome!
 
User avatar
Martin
Experienced
Posts: 651
Joined: 30 Jan 2011, 23:24

Re: Multi lingual

21 Mar 2011, 06:36

Wow... I think it's a great solution!
And if it's already available in version 2.7... that would make it even greater!

Every text has indeed its place in titles, descriptions or the content of textpages... so this solution covers it all.
And by creating a menu item as a link it is possible to let people switch from language to language.

Just one question...
when '?language=english' or '?language=dutch' is not used when accessing the gallery is then the default language used?

Anyway... I'm happy with this functionality.

martin
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Multi lingual

21 Mar 2011, 10:35

mabro wrote:Just one question...
when '?language=english' or '?language=dutch' is not used when accessing the gallery is then the default language used?
Yes - Everything is covered.

Thanks for putting us onto track for this. I think it's a very useful feature for some people, without creating a large overhead.
 
User avatar
Martin
Experienced
Posts: 651
Joined: 30 Jan 2011, 23:24

Re: Multi lingual

21 Mar 2011, 13:55

Hi Karl,

I was just wondering... is it also possible to make Background Image 2 and 3 dependent on a language setting?

If so, it is possible to change ones logo for different languages.
In my case the logo says 'Fotografie' in Dutch, but it should be 'Photography' in English...

martin
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Multi lingual

21 Mar 2011, 15:34

mabro wrote:I was just wondering... is it also possible to make Background Image 2 and 3 dependent on a language setting
No, you can't have certain languages trigger certain settings. How would we implement this?

However, you can create different layouts by using different themes. For example, with your different language links you could assign a different theme:

yourgallery/?language=french&theme=french
yourgallery/?language=spanish&theme=spanish

In each theme, you could set different logos, background and even colors or what you like.

Just for the record, you can also avoid using URL parameters if you want to make prettier links. For example:

yourgallery/french.html
yourgallery/spanish.html

This would just require some manual labor to create html file copies, and then you can hardcode the parameters directly in the document.
 
User avatar
Martin
Experienced
Posts: 651
Joined: 30 Jan 2011, 23:24

Re: Multi lingual

21 Mar 2011, 15:45

Well... my first thought wasn't that the language would trigger a setting, but that a setting would be active only for a specific language.

But of course... different themes would solve it... great!

Imagevue is soooo flexible :D

martin
 
User avatar
EtienneOuellet
Experienced
Topic Author
Posts: 46
Joined: 14 Mar 2011, 16:31

Re: Multi lingual

22 Mar 2011, 23:21

Wow! I didn't checked the board last week, and now look what I found! This is an amazing news!

I think this will work really great! Can't wait to test it! It should be pretty easy to implement. A really cleaver feature for imagvue. I think it just greatly boosted it's value!

I will definetly get back to you guys once I update to 2.7!
Image
 
User avatar
Martin
Experienced
Posts: 651
Joined: 30 Jan 2011, 23:24

Re: Multi lingual

29 Mar 2011, 14:35

mjau-mjau wrote: Just for the record, you can also avoid using URL parameters if you want to make prettier links. For example:

yourgallery/french.html
yourgallery/spanish.html

This would just require some manual labor to create html file copies, and then you can hardcode the parameters directly in the document.
I tried to make such a html file, but I still get the parameters in the URL.
Could you give me an example?

Thanks.

martin
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Multi lingual

30 Mar 2011, 02:57

mabro wrote:I tried to make such a html file, but I still get the parameters in the URL.
Could you give me an example?
Not quite sure what you mean with "parameters in the URL", because you will still get #/path/here/ unless you turn OFF the SWFAddress module. This is related to deep-linking in your gallery, and nothing to do with the parameters stated above that set the language. However, if you want to create separate documents instead of using long parameters in the URL, try this:

1. Go to your gallery, and in your browser click "view source". COPY the entire source.

2. In your html editor of choice (textpad, dreamweaver etc.), simply paste the code you copied. Save as test.html. and you have a working duplicate of the gallery that can be accessed with yourgallery/test.html

3. In this file, locate the following close to the bottom:
Code
var flashVars = {
	foreground_color: 'EEEEEE',
	background_color: '222222'
	};
flashVars.theme = 'default';
};
This is where you add your parameters, instead of adding them to the URL:
Code
var flashVars = {
	foreground_color: 'EEEEEE',
	background_color: '222222',
	language: 'french'
	};
flashVars.theme = 'mytheme';
};
As you can see in the example abobe, we added "french" as the language, and changed the theme to "mytheme". Save this document as "french.html", and then you can access it as yourgallery/french.html. It will display in French with a separate theme without having to add the parameters in the URL.
 
User avatar
Martin
Experienced
Posts: 651
Joined: 30 Jan 2011, 23:24

Re: Multi lingual

30 Mar 2011, 12:08

That's exactly what I was looking for.
I could not make this up myself.
I know that the #path deep-linking parameters still will be visible, but that's OK for me...

Thanks!

martin
 
User avatar
Martin
Experienced
Posts: 651
Joined: 30 Jan 2011, 23:24

Re: Multi lingual

01 Apr 2011, 16:50

Just another question:

Is it possible to make 'link:' language-sensitive too?

For example something like this:
Code
[dutch]http://www.martinbroeze.nl/panorama/tour_dutch.htm[/dutch][english]http://www.martinbroeze.nl/panorama/tour_english.htm[/english]