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

Wed Aug 19, 2020 1:10 pm

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

Sat Aug 22, 2020 6:53 pm

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

Sun Aug 23, 2020 12:03 pm

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: http://tonyredhead.com - http://redsquare.com | roundme: http://round.me/@tonyredhead | instagram: https://www.instagram.com/tonyredhead/
User avatar
ArkiTonio
Posts: 96
Joined: Mon Apr 20, 2015 10:32 am
Location: Ascoli Piceno, Italy

Sun Aug 23, 2020 3:35 pm

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: 10748
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Mon Aug 24, 2020 10:38 am

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,
Hopki
Garden Gnome Software 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

Mon Aug 24, 2020 3:43 pm

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

Mon Aug 24, 2020 4:49 pm

This is addressed in the next major upgrade.
Regards,
Hopki
Garden Gnome Software 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

Thu Sep 03, 2020 8:41 am

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: 989
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Thu Sep 03, 2020 11:18 am

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 297 times

You may recognize the file :-)

cheers,

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

Thu Sep 03, 2020 11:54 am

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

Thu Sep 03, 2020 9:36 pm

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,
Hopki
Garden Gnome Software 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

Thu Sep 03, 2020 11:00 pm

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

Fri Sep 04, 2020 8:09 am

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