Context menu labels translation

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
ArkiTonio
Posts: 96
Joined: Mon Apr 20, 2015 10:32 am
Location: Ascoli Piceno, Italy

Hi, Hopki and everyone!
I found that the labels in the context menu ("Rectilinear Projection", "Stereographic Projection", "Fisheye Projection", "Exit/Enter Fullscreen") always remain in English, even if I'm using Pano2VR in Italian.
So I found that I can easily translate them in the file "pano2vr_player.js", once generated, to make them appear in the correct language (Italian for me: "Proiez. gnomonica", "Proiez. stereografica", "Proiez. occhio di pesce", "Visualizza in finestra/a schermo intero").
The problem is that I must do this each time I regenerate the pano (since the file "pano2vr_player.js" is recreated each time).
So is it possible to translate those labels in a template only once and forever???...
In which file or program registry/setting are they stored???...
Thank you.
ArkiTonio
User avatar
ArkiTonio
Posts: 96
Joined: Mon Apr 20, 2015 10:32 am
Location: Ascoli Piceno, Italy

No one here has the answer?...
ArkiTonio
User avatar
Tony
Posts: 1342
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi,

Sorry but no idea. I had a look in the skin.js file but I couldn't see the reference to them in there?

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
ArkiTonio
Posts: 96
Joined: Mon Apr 20, 2015 10:32 am
Location: Ascoli Piceno, Italy

Hi, Tony (another Tony here).
No, the place to find those strings seems to be elsewhere... the template or something like that, I mean...
The product of every regeneration of the pano is the file "pano2vr_player.js", where they can be found and modified but... that every time a pano is recreated...
So, where's the source?...
ArkiTonio
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Tony's
The text is in the player.
Of course, after you create the output the player would be replaced.
What I would suggest is edit a player and keep it safe/rename it.
After your final output then swop out the player and test.
There is a report for this as a feature request, I have added a bump to the issue.
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/
User avatar
ArkiTonio
Posts: 96
Joined: Mon Apr 20, 2015 10:32 am
Location: Ascoli Piceno, Italy

Thank you, Hopki.
ArkiTonio
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

This is addressed in the next major upgrade.
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/
User avatar
ArkiTonio
Posts: 96
Joined: Mon Apr 20, 2015 10:32 am
Location: Ascoli Piceno, Italy

Hopki, although I just do this (modifying the file "pano2vr_player.js" after each regeneration of the pano), how can I edit a Garden Gnome Package...?
ArkiTonio
User avatar
Tony
Posts: 1342
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi Antonio,

This is what I do..

1. Rename the .ggpkg file to .zip
2. Open in a zip application I use WinZip (Mac)
3. Right-click on the file you want to edit and choose a program, I use BBEdit
4. Save the file
5. Close the zip (let it update)
6. Rename the .zip file to .ggpkg

video_gamma12.jpg
video_gamma12.jpg (242.22 KiB) Viewed 4170 times

You may recognize the file :-)

cheers,

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
ArkiTonio
Posts: 96
Joined: Mon Apr 20, 2015 10:32 am
Location: Ascoli Piceno, Italy

Thank you, Tony!
I had no idea the GGPKG format was a simple ZIP...
:D
ArkiTonio
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Guys,
The alternative way which may be quicker is under the HTML tab, select Edit Template and select files for external embedding.
Then create an HTML5 output.
Open the output folder select all the files and zip them up.
Then rename the zip to ggpkg.
This saves having to create the package, then unzipping it then make the package again.
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/
User avatar
ArkiTonio
Posts: 96
Joined: Mon Apr 20, 2015 10:32 am
Location: Ascoli Piceno, Italy

Uhm... Hopki... I'm not sure to understand...
Those files and folders (index.html, pano.xml, skin.js, pano2vr_player.js and the tiles folder and the menu folder) are always generated as HTML5 output, with no need to select "Create files for external embedding" in Edit HTML Template...
ArkiTonio
User avatar
ArkiTonio
Posts: 96
Joined: Mon Apr 20, 2015 10:32 am
Location: Ascoli Piceno, Italy

Guys, I've found this method, which seems to me the easiest to use:
1) edit the file "pano2vr_player.js", only once, and keep it safe and ready for every future pano/package
2) generate the pano/package
3a) for the pano, drag the customized "pano2vr_player.js" into the pano folder (to replace the one just created)
3b) for the package, open it with an archive manager (WinZip, WinRAR etc.), with no need to rename it, drag the customized "pano2vr_player.js" into the archive (to replace the one just created) and close it
That's all.
Of course we're waiting for an option to customize that player inside the program, as a template.
ArkiTonio
Post Reply