Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Multilanguage support - my idea

Simple, Free, Open Source UltraVNC Wrapper Supporting Windows and Mac OSX
Post Reply
matczar
Posts: 2
Joined: 2010-03-04 02:04

Multilanguage support - my idea

Post by matczar »

I often visit UltraVNC forum, but as you can see I'm writing the first time. Hello everyone.

I would like the ChunkVNC to handle multiple languages. So, I wrote a script which makes it pretty simple. It reads the translated phrases from the *.lng files and places them in an associative array. Script contains a function that returns the translation for a given original phrase.

Here is an example.
1. original code:

Code: Select all

MsgBox(1,"Info","About" )
2. code contains a function that translate the phrases:

Code: Select all

MsgBox(1,_t("Info"),_t("About") )
Adding *.lng files to ChunkViewer is quite simple: they are in the \Bin directory, and the chunkviewer.ini contains a variable Lang which defines the language, for example Lang=pl. ChunkViewer then looks for a file \Bin\lang_pl.lng and reads a translations from this file.

In the case of InstantSupport situation is slightly more complicated. The script contains a FileInstall function which argument must be a literal string; it cannot be a variable or the result of a function call. So it is: argument looks like this - InstantSupport_Files\lang.lng. Before compiling InstantSupport, the Compiler reads Lang variable from InstantSupport_Files\chunkvnc.ini and it copies the right file from InstantSupport_lang directory to InstantSupport_Files\lang.lng file.


In summary:

1. there are two new files: \SRC\Aut2Exe\Include\Lang.au3 and \SRC\Aut2Exe\Include\AssocArray.au3. I'm an author of Lang.au3. AssocArray.au3 is written by David Nuttall "Nutster". I found this script on AutoIt forum,

2. ChunkViewer:
- file lang_XX.lng should be in \Bin dir
- chunkviewer.ini should contain a Lang=XX variable in [ChunkViewer] section

3. InstantSupport:
- file lang_XX.lng should be in \InstantSupport_lang
- chunkvnc.ini should contain a Lang=XX variable in [ChunkVNC] section

Archive below contains working implementation of my idea. It is based on version 3.1.

https://docs.google.com/leaf?id=0B3JFllMt1SOVMjU3MjRhYmYtYTI0OS00NmU4LWJjMmQtOTJmZmQxMjE5NjQx&hl=pl&authkey=CMWXt88L


I hope this will be useful to you.

matczar
Last edited by matczar on 2010-10-27 16:45, edited 1 time in total.
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: Multilanguage support - my idea

Post by supercoe »

matczar,

Thanks for the hard work, I like what you've done here.

I've already implemented multi language support into 4.0, and although it's much more simple than what you've one here it seems to work.
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
matczar
Posts: 2
Joined: 2010-03-04 02:04

Re: Multilanguage support - my idea

Post by matczar »

It is not so complicated :wink:

My main goal was to make it easy to use, and I wanted to make the code contains the original phrases, not a variables like LANG_VAR1, LANG_VAR2, which are poorly understood.
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: Multilanguage support - my idea

Post by supercoe »

Sorry, I didn't mean for you think I meant yours was complicated.... I like your solution, I'm just past this stage for the next release.

Please provide input when the next release is out on how you think it could be improved!

Thanks
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
guinness
40
40
Posts: 64
Joined: 2010-01-11 09:31

Re: Multilanguage support - my idea

Post by guinness »

Yeh good idea! I think when it comes to translation each of us has a different way, I would have done it differently. That's not saying it's bad but we all have our different coding styles. Personally I am not a fan of so many include files :) and like to keep everything ideally consolidated in a single .au3 file (maybe not the best, but that's how I code.)

I prefer to have variables that are descriptive e.g.$BUTTON_CONNECT = "Connect", $LABEL_PASSWORD = "Password"

I was thinking that supercoe!! :) could have a single language file with multiple languages (submitted by users) instead of having separate files per language, the single language file could be in an INI style, e.g.

Lang_Total=3
[English]
TITLE=English
BUTTON_CONNECT=Connect
LABEL_PASSWORD=Password

[French]
TITLE=Français
BUTTON_CONNECT=contact
LABEL_PASSWORD=Mot de passe

[Spanish]
TITLE=Español
BUTTON_CONNECT=...
LABEL_PASSWORD=...

and then you would have dropdown box which shows the languages by using a 'Do' statement to populate the dropdown box etc... and then refresh GUI etc... etc...

These are ideas for V4.1 or V5 or V100?!
Last edited by guinness on 2010-03-04 22:06, edited 2 times in total.
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: Multilanguage support - my idea

Post by supercoe »

Once again guinness, you've hit the nail right on the head!
We think alike :D
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
voodoo3dfdx
Posts: 4
Joined: 2010-04-19 02:48

Re: Multilanguage support - my idea

Post by voodoo3dfdx »

I can help to translate to portuguese > pt-br
shoodabean
8
8
Posts: 15
Joined: 2010-02-28 23:55

Re: Multilanguage support - my idea

Post by shoodabean »

and i can help with a russian translation
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: Multilanguage support - my idea

Post by supercoe »

Fantastic, I'll let you know when the language file is ready. :)
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
twagner
40
40
Posts: 74
Joined: 2008-09-09 20:43
Location: Germany

Re: Multilanguage support - my idea

Post by twagner »

In the course of the project i will do the german translation (bad english i know, but my native german is better :-D )
Die Welt geht Remote . . . . / the World goes remote . . . .
www.vnc-world.com
Writer of the first book about UltraVNC!!!
User avatar
JDaus
Friend of UVNC
Friend of UVNC
Posts: 537
Joined: 2007-03-17 11:00
Location: Sydney, Australia
Contact:

Re: Multilanguage support - my idea

Post by JDaus »

guinness wrote:I was thinking that supercoe!! :) could have a single language file with multiple languages (submitted by users) instead of having separate files per language, the single language file could be in an INI style, e.g.
I do this with scprompt, but now I have a problem that certain languages need UTF-8 encoding, will others fail to show the correct symbols ... so now I have to go to having separate files for the languages that cannot handle UTF-8 ...
ask a silly question and remain a fool for 5 minutes...
don't ask, and remain a fool for life - JDaus 2003

without imperfections, neither you nor i would exist - Steven Hawkins
__
JD
SCPrompt - OpenSource Free Remote Screen\Desktop Sharing Solution
SecureTech.com.au
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: Multilanguage support - my idea

Post by supercoe »

Maybe I could just remove the need for text all together and use cryptic symbols! :P
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
B
800
800
Posts: 2338
Joined: 2009-09-09 14:05

Re: Multilanguage support - my idea

Post by B »

Hey, why not, Microsoft had the same idea with Office 2007, and somehow people seem to tolerate that monstrous destruction of standard UI design.
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: Multilanguage support - my idea

Post by supercoe »

Actually I quite like the ribbon bar.... :P
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
User avatar
JDaus
Friend of UVNC
Friend of UVNC
Posts: 537
Joined: 2007-03-17 11:00
Location: Sydney, Australia
Contact:

Re: Multilanguage support - my idea

Post by JDaus »

supercoe wrote:Maybe I could just remove the need for text all together and use cryptic symbols! :P
that's probably not as silly as it sounds.

For your application, some excellent symbols would likely work just as well ...

the only one that would be difficult is the service mode checkbox ... don't know what symbol you could use there ... unless its the gears icon like the service console uses ... hmm ... something to think about :)
ask a silly question and remain a fool for 5 minutes...
don't ask, and remain a fool for life - JDaus 2003

without imperfections, neither you nor i would exist - Steven Hawkins
__
JD
SCPrompt - OpenSource Free Remote Screen\Desktop Sharing Solution
SecureTech.com.au
Noli
8
8
Posts: 14
Joined: 2004-11-05 13:50
Location: Buenos Aires, Argentina
Contact:

Re: Multilanguage support - my idea

Post by Noli »

I want to offer you my help to translate it to spanish.
Manuel Moguilevsky
Buenos Aires, Argentina
Yahoo Messenger: manuel_moguilevsky
Skype: manuel_moguilevsky
Buenos Aires - Argentina

Tel: +54 9 11 4444-6455
vpdd
8
8
Posts: 16
Joined: 2007-02-26 12:47

Re: Multilanguage support - my idea

Post by vpdd »

Multilanguage support!!!! GREAT;D


supercoe thanks for the project it is really easy to use. Can wait for 4.0 :D

matczar thanks for the language translation script, is key for me until 4.0 release.

Thanks all others ^^



Also Nole, I offer my help to translate it to spanish.
Vetal1705
Posts: 1
Joined: 2010-11-09 13:04

Re: Multilanguage support - my idea

Post by Vetal1705 »

I can help to translate on an Ukrainian and Russian languages. ovg7(dog)mail(point)ru
Post Reply