Hi to all,
Is there a special path to say to PNVR when translating into PoEdit ?
As you can see on the screenshoot, I use the assets folder and a prefix en_, es_, de_, in front of the right file to use but when I test in english or spanish, I always get the french vidéos without subtitles!
Any idea what I did wrong would be much appreciated:-)
Regards, Jean-Paul
Path for Multilingual subtitled videos
- dePassage66
- Posts: 102
- Joined: Mon Mar 20, 2023 11:19 am
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/en_index.html
- Hopki
- Gnome
- Posts: 13450
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi Jean-Paul,
Will need more information on how you are opening the videos.
Is it from a point hotspot or a button.
Regards,
Will need more information on how you are opening the videos.
Is it from a point hotspot or a button.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
- dePassage66
- Posts: 102
- Joined: Mon Mar 20, 2023 11:19 am
Hi Hopki,
I think it's both because on the first screenshoot I would say it's a button,
but on the second one, I would say it's a hotspot...
Am I right about that ?
Regards, Jean-Paul.
I think it's both because on the first screenshoot I would say it's a button,
but on the second one, I would say it's a hotspot...
Am I right about that ?
Regards, Jean-Paul.
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/en_index.html
- Hopki
- Gnome
- Posts: 13450
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi Jean-Paul,
To make this work with a button you would use a Text Variable in the skin with the video file name, short_tb.mp4
In the Set Value action to set the video to the video element, it has action that on Mouse Click, Set Vale, assets/$(*video), target Video 1.
The placeholder $(*video) is the variables placeholder.
Please see the attached project.
In the skin POT file you will see the video file, short_tb.mp4, and the German language it is short_ufo.mp4 , as the Variable Value is in the POT file, you can swap out the video depending on language.
In Node Two there is a Video Popup which is also working.
Note that there is only one entry for short_tb.mp3 as the same file is used for the pinned video in node1 and the popup video in node2
Regards,
To make this work with a button you would use a Text Variable in the skin with the video file name, short_tb.mp4
In the Set Value action to set the video to the video element, it has action that on Mouse Click, Set Vale, assets/$(*video), target Video 1.
The placeholder $(*video) is the variables placeholder.
Please see the attached project.
In the skin POT file you will see the video file, short_tb.mp4, and the German language it is short_ufo.mp4 , as the Variable Value is in the POT file, you can swap out the video depending on language.
In Node Two there is a Video Popup which is also working.
Note that there is only one entry for short_tb.mp3 as the same file is used for the pinned video in node1 and the popup video in node2
Regards,
- Attachments
-
- translation.zip
- (5.9 MiB) Downloaded 112 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
- dePassage66
- Posts: 102
- Joined: Mon Mar 20, 2023 11:19 am
Thanks Hopki, I look at your example tomorrow, work on it and let you know.
Regards, Jean-Paul.
Regards, Jean-Paul.
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/en_index.html
- dePassage66
- Posts: 102
- Joined: Mon Mar 20, 2023 11:19 am
Hi Hopki,
In your example (which I don't understand completely, sorry!) there are two variables (r) and (hu) that I don't see in the skin's variables table.
See below: And the variables (r) and (hu) which I don't know what they correspond to but I suppose they are internal variables in the program... Furthermore, I don't see any differences between your translation file and mine except that I use an "assets" directory and you don't (see below) and when you say that it is the translation file that has the variable, I see that it works very well with your example, but not at all with mine and that saddens me because I don't understand why! ;-(
Best regards, Jean-Paul
In your example (which I don't understand completely, sorry!) there are two variables (r) and (hu) that I don't see in the skin's variables table.
See below: And the variables (r) and (hu) which I don't know what they correspond to but I suppose they are internal variables in the program... Furthermore, I don't see any differences between your translation file and mine except that I use an "assets" directory and you don't (see below) and when you say that it is the translation file that has the variable, I see that it works very well with your example, but not at all with mine and that saddens me because I don't understand why! ;-(
Best regards, Jean-Paul
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/en_index.html
- Hopki
- Gnome
- Posts: 13450
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi Jean-Paul,
Pinned videos and videos added a video point hotspots will be exposed in the Translation POT file, so using PoEdit you can just select the video it should play when using a different language.
The harder one to make work was the two buttons that play and stop the video.
In the skin, when using a Set Value action, this is not being exposed in the skin's translation file.
So what you need to.do is add a text variable to the skin, in the project it's called: video, and the text is, short_tb.mp4.
This gets exposed in the skins translation file, so when German is selected, it swaps it to, short_ufo.mp4
The variable has the placeholder $(*video), with the placeholder being the file name of the video.
So the Play Button has the action to set the value assets/$(*video) to the video 1 element.
Regards,
Pinned videos and videos added a video point hotspots will be exposed in the Translation POT file, so using PoEdit you can just select the video it should play when using a different language.
The harder one to make work was the two buttons that play and stop the video.
In the skin, when using a Set Value action, this is not being exposed in the skin's translation file.
So what you need to.do is add a text variable to the skin, in the project it's called: video, and the text is, short_tb.mp4.
This gets exposed in the skins translation file, so when German is selected, it swaps it to, short_ufo.mp4
The variable has the placeholder $(*video), with the placeholder being the file name of the video.
So the Play Button has the action to set the value assets/$(*video) to the video 1 element.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/