Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Multi lingual

02 Apr 2011, 03:22

Good question. Currently no, but maybe something I can add ..
 
User avatar
Martin
Experienced
Posts: 651
Joined: 30 Jan 2011, 23:24

Re: Multi lingual

02 Apr 2011, 12:14

mjau-mjau wrote:Good question. Currently no, but maybe something I can add ..
I'm waiting in anticipation :)
 
User avatar
Martin
Experienced
Posts: 651
Joined: 30 Jan 2011, 23:24

Re: Multi lingual

04 Apr 2011, 12:48

Just for the completeness of this topic, the following reference:

https://forum.photo.gallery/viewtopic.p ... 588#p25588

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

Re: Multi lingual

05 Apr 2011, 04:25

And again another question :oops:
Will the html-site be handling the language labelling:
Code
[dutch]tekst[/dutch][english]text[/english]
Or will that be the case after the complete html-site has been redesigned by you?
Till that time the html-site will look like something below...
Image
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Multi lingual

05 Apr 2011, 11:57

Don't worry, we thought about this. In the admin labels and the html version, it will simply use the FIRST language item defined.
 
User avatar
Martin
Experienced
Posts: 651
Joined: 30 Jan 2011, 23:24

Re: Multi lingual

05 Apr 2011, 14:38

mjau-mjau wrote:Don't worry, we thought about this. In the admin labels and the html version, it will simply use the FIRST language item defined.
Great!
I'm all set to bring my multi lingual site to production :D

martin
 
User avatar
Artur
Imagevue PowerPack
Posts: 510
Joined: 20 May 2011, 03:17

Re: Multi lingual

11 Jun 2011, 19:53

I think I'm little stupid (or too little sleep) :) but please, explain me how to setup multi-lingual interface.
I just don't understand how/where should I use this code: ?language=english and ?language=polish.
If I understand correctly, I don't need duplicate the "content" folder to make my site multilingual? (I don't want to duplicate them because my "_altimage" folders contains large files).
Last edited by Artur on 17 Jun 2011, 17:05, edited 1 time in total.
 
User avatar
Martin
Experienced
Posts: 651
Joined: 30 Jan 2011, 23:24

Re: Multi lingual

12 Jun 2011, 02:00

philip100 wrote:If I understand correctly, I don't need duplicate the "content" folder to make my site multilingual?
Hi Artur,
Yes, that's correct.
For starters you can look here:
https://www.photo.gallery/blog/imagevue-x27/
and here:
https://forum.photo.gallery/viewtopic.p ... age#p26824
 
User avatar
Artur
Imagevue PowerPack
Posts: 510
Joined: 20 May 2011, 03:17

Re: Multi lingual

12 Jun 2011, 08:32

Thank You for help Martin.

The reason why I couldn't setup multilingual, was that I didn't update imagevue to latest version. Now works fine :wink:
 
User avatar
Martin
Experienced
Posts: 651
Joined: 30 Jan 2011, 23:24

Re: Multi lingual

12 Jun 2011, 12:46

philip100 wrote:Now works fine :wink:
Hi Philip,

It's great to see you new creative changes!
I really like the light-switch and also the latest pictures module.
It is tempting to look into flash-programming myself :-)

And also my congratulations for having a full-fledged multi-language site yourself!
 
User avatar
Artur
Imagevue PowerPack
Posts: 510
Joined: 20 May 2011, 03:17

Re: Multi lingual

12 Jun 2011, 16:13

Thank You Martin :)
mabro wrote:(...)It's great to see you new creative changes!(...)
Yes, but still some issues there, and I can't figure out what is wrong. When You access my site using link: http://phillip.com.pl, then works fine, but problem is when you access with the "www": http://www.phillip.com.pl.
"New pictures" module is crash then (just shows up white squares instead of Thumbnails.) :( . It is problem with ActionScript in module, but I don't realy know what should I looking for...

EDIT:
Fixed issue with "new pictures" module :D . The problem was with thumbnail path in XML file - just not work when path is a link, f.ex.: thumbnail path= http:/ /mysite.com/thumbnails/thumbnail.jpg - then thumbnail shows up only when somebody access site without "www". When thumbnail path is: http:/ /www .mysite.com/thumbnails/thumbnail.jpg , then thumbnail shows up when accesing site with "www".
One pain go of :)
mabro wrote:(...)I really like the light-switch(...)
It's simple .swf file. Just big black square and few buttons :) . I setup this as third background with "TR" alignment.
I can share source file, if you want :wink:

If we speak about .swf modules, I would like to know one thing- it's possible that my .swf files (embedded into imagevue app) can read actual document url?
I found script:
Code
stop();

getURL("javascript:window.document.myMovieSwf.SetVariable(
'pageURL', document.location.href);");

intID = setInterval(this, "check_url", 250);

function check_url() {
if (pageURL == undefined) return;
clearInterval(intID); // Be sure to stop this when we've got an answer
theArgs = pageURL.split("?")[1]; // get second part of URL
if (theArgs.length > 0) {
// do whatever you want with the args
}
}
What I trying to do, is turning on/off light (blackSquare._alpha), depending on the current url (light is off automatically when somebody watching photos). But I don't know how can I make this code to work - I'm not javascript coder at all, and only a bit AS2 coder :oops: .

EDIT:
Attached source file (light switcher, language, and Facebook buttons)
Buttons_Bar.rar
(30.13 KiB) Downloaded 375 times
-------------
Thanks,
Artur.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Multi lingual

13 Jun 2011, 03:49

New Multiple Languages Documentation:
https://www.photo.gallery/blog/languages/

New Multiple Languages Demo:
https://www.photo.gallery/demo/x2/#/content/ ... -language/
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Multi lingual

13 Jun 2011, 04:01

philip100 wrote:If we speak about .swf modules, I would like to know one thing- it's possible that my .swf files (embedded into imagevue app) can read actual document url?
I found script:
Code
stop();

getURL("javascript:window.document.myMovieSwf.SetVariable(
'pageURL', document.location.href);");

intID = setInterval(this, "check_url", 250);

function check_url() {
if (pageURL == undefined) return;
clearInterval(intID); // Be sure to stop this when we've got an answer
theArgs = pageURL.split("?")[1]; // get second part of URL
if (theArgs.length > 0) {
// do whatever you want with the args
}
}
What I trying to do, is turning on/off light (blackSquare._alpha), depending on the current url (light is off automatically when somebody watching photos). But I don't know how can I make this code to work - I'm not javascript coder at all, and only a bit AS2 coder :oops: .
Maybe not the most elegant code, but did you try it? Looks like theArgs should return everything after the ?. Problem is, there is not necessarily a ? in Imagevue URLs at all. The question is, does it read what comes after the # char, because that is what actually changes per image/folder. Even if you find out that it does, you are going to have to parse this data and search for changes, or if it is an image or folder etc. Not sure it is a path you want to walk down ...

Even better would be to hook into the SWFAddress system itself, although I can't document or support this since it is an external module we are using. Basically, you add some code like:
Code
SWFAddress.addEventListener(SWFAddressEvent.CHANGE, yourFunctionName);
Then make sure you have a function defined before this:
Code
function yourFunctionName(e:SWFAddressEvent) { ... }
The function basically executes every time the #URL changes, and you can e represents the string after #. I can not help any more with this, but you could try it ...
 
User avatar
Artur
Imagevue PowerPack
Posts: 510
Joined: 20 May 2011, 03:17

Re: Multi lingual

13 Jun 2011, 16:30

mjau-mjau wrote:(...)Even better would be to hook into the SWFAddress system itself.(...)
Thank You. You directed me in the right way :)

There was enough create an SWFAddressEvent class and use simple code:
Code
import SWFAddressEvent;
import com.asual.swfaddress.SWFAddress;

SWFAddress.addEventListener(SWFAddressEvent.CHANGE, light_OFF);
function light_OFF(e:SWFAddressEvent) {
	SWFAddress.text = SWFAddress.getValue();
	if (SWFAddress.text.indexOf(".jpg") == -1){
		var myTween:Tween = new Tween(black_square, "_alpha", Strong.easeOut, black_square._alpha, 0, 1, true);
	} else{
		var myTween:Tween = new Tween(black_square, "_alpha", Strong.easeOut, black_square._alpha, 80, 1, true);
	}
	
}
Added also little future :D - when language button is pressed, then redirecting to current address with other language. Using this code:
Code
EN_btn.onRelease = function () {
SWFAddress.text = SWFAddress.getValue();
output.text = "ready"
getURL ("http://phillip.com.pl/?language=english#" + SWFAddress.text, "_self");
}
I'll try to figure out what can I do more with this trick...
Maybe a small comment and rating system, based on SWFAddress and XML ? 8)

THANK YOU mjau-mjau ! :D
 
User avatar
Martin
Experienced
Posts: 651
Joined: 30 Jan 2011, 23:24

Re: Multi lingual

13 Jun 2011, 16:46

philip100 wrote:Added also little future :D - when language button is pressed, then redirecting to current address with other language.
It is really great to see the light turning off when viewing an image!
Coming back to the same picture when changing languages is very nice too!! (... the light is not turned off then, though, but that's just a minor point)