World Wind Forums

Go Back   World Wind Forums > WorldWind .Net Development > Developers' Corner

Developers' Corner General World Wind development.

Reply
 
Thread Tools Display Modes
Old 03-11-2009, 09:25 PM   #1
FrankChendra
Junior Member
 
Join Date: Jul 2007
Posts: 19
Default Localization PlugIn

Hello,

this is my first shot at the NASA WorldWind code.

It is a plugin that allows for english/french/german application strings in the menus.

My work is based on the Frenchisation plugin from Jean Pommier at IGE.
See http://demos.ige.fr/worldwind for the original plugin.

The localization plugin can be downloaded here:
http://www.multimedial.de/share/WW/Localization.zip

Features:
- simple support for several languages (currently EN/FR/DE)
- your current local language is being recognized (defaults to english if not)
- you can switch through all three languages nevertheless

Drawbacks/bugs:
- not all menu items are properly localized yet
- the localization.ini file should eventually be turned into an XML file I guess for easier maintenance and/or different XML files
- abstractation of the menu entries (currently, the plugin compares string from the previous language to the new one, which is baaaw)

Feedback anyone?

Screenshot:

FrankChendra is offline   Reply With Quote
Old 03-11-2009, 09:58 PM   #2
bull
Cosmic Overlord
 
bull's Avatar
 
Join Date: Oct 2004
Location: United Kingdom
Posts: 2,362
Default

Very quick work! I'll give this a try later, this will be very popular, once you have the xml files sorted we can start asking for more translations, just let me know if I can help at all and I'll give feedback later.
__________________
Bull_[UK]

bull is offline   Reply With Quote
Old 03-11-2009, 10:39 PM   #3
FrankChendra
Junior Member
 
Join Date: Jul 2007
Posts: 19
Default Localization

Hi,

if proper localization is something that you are interested in, iŽd suggest to build up several XML files with the two character ISO code as filename (e.g. "en.xml", "fr.xml", "de.xml", "cn.xml").

There are articles up on MSDN on how to properly globalize an application.

The current plugin is very ugly actually, as it compares names of the strings of the UI elements, whereas a proper localization should operate on abstracted UI item names and replace them.

e.g.
/menu/file/firstItem

then gets replaced with the localized strings.

This said, external scripts and plugins will of course stay in english, which is ugly.
FrankChendra is offline   Reply With Quote
Old 03-12-2009, 05:50 AM   #4
WilloxH
IT News Tracker :o)
 
WilloxH's Avatar
 
Join Date: May 2005
Location: Conakry (Guinea)
Posts: 77
Default In french :o)

Quote:
Originally Posted by FrankChendra View Post
Hello,

this is my first shot at the NASA WorldWind code.

It is a plugin that allows for english/french/german application strings in the menus.
Very funny, thks for this !!



Greetings from Africa
__________________
@ belgian ICT Teacher in Conakry (Guinea)

My blog : http://lac-conakry.blogspot.com/
My Tweets : http://twitter.com/willoxh
My pictures : http://picasaweb.google.fr/henri.willox and http://picasaweb.google.com/catherine.willox
WilloxH is offline   Reply With Quote
Old 03-12-2009, 09:28 AM   #5
FrankChendra
Junior Member
 
Join Date: Jul 2007
Posts: 19
Default Localization

Cher monsieur,

merci bien pour votre courrier. Je penses que vous avez sans doute aime le plugin. comme je disais, il y a encore des problemes, comme le format du fichier (qui est un fichier text tout simple, au lieu dŽun ou plusieurs fichiers XML por chaque langue).
De plus, la localisation nŽest pas complete, il y a toujours des mots anglais dans les menus, et la facon dont les chaines de characteres sont remplace nŽest pas tres fiable voir professionelle non plus.

Avez vous envie de mŽaider? :-)

La guinée doit etre belle... sans rapport, je viens aussi de terminer un globe en 3d (non base sur WorldWind) pour une agence dŽassurance allemande qui montre des cartes de risques et hazards naturels. Voir http://www.br-online.de/wissen/umwel...4868525399.xml (en allemand uniquement, desole). Cette application est librement distribue,mais elle nŽest quŽen allemand et anglais. Si cela vous interesse, faites moi signe a info _ at _ multimedial.de.
FrankChendra is offline   Reply With Quote
Old 03-13-2009, 10:30 AM   #6
WilloxH
IT News Tracker :o)
 
WilloxH's Avatar
 
Join Date: May 2005
Location: Conakry (Guinea)
Posts: 77
Default Translation

Quote:
Originally Posted by FrankChendra View Post
Cher monsieur,

merci bien pour votre courrier. Je penses que vous avez sans doute aime le plugin. comme je disais, il y a encore des problemes, comme le format du fichier (qui est un fichier text tout simple, au lieu dŽun ou plusieurs fichiers XML por chaque langue).
De plus, la localisation nŽest pas complete, il y a toujours des mots anglais dans les menus, et la facon dont les chaines de characteres sont remplace nŽest pas tres fiable voir professionelle non plus.

Avez vous envie de mŽaider? :-)

La guinée doit etre belle... sans rapport, je viens aussi de terminer un globe en 3d (non base sur WorldWind) pour une agence dŽassurance allemande qui montre des cartes de risques et hazards naturels. Voir http://www.br-online.de/wissen/umwel...4868525399.xml (en allemand uniquement, desole). Cette application est librement distribue,mais elle nŽest quŽen allemand et anglais. Si cela vous interesse, faites moi signe a info _ at _ multimedial.de.
Hi Frank,

Thanks for your message in french, but we will continue in english to not disturb our friends

It's ok to help you, go to check the menu and give you the right translation (but as I'm very busy at the moment you will be wainting a little..)

Henri
__________________
@ belgian ICT Teacher in Conakry (Guinea)

My blog : http://lac-conakry.blogspot.com/
My Tweets : http://twitter.com/willoxh
My pictures : http://picasaweb.google.fr/henri.willox and http://picasaweb.google.com/catherine.willox
WilloxH is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Favorites / Bookmarks plugin Dugrhill Add-ons & Scripts 21 02-27-2010 05:59 AM
New Java Plugin applet experiment vash Development Help 5 01-20-2009 04:37 AM
Build PluginEngine as a Class Library DLL to support binary DLL plugin development gohyongkwang Suggestion Box 1 08-24-2006 06:47 AM
HELP, PLUGIN FREEZES !!!! Unregistered Add-on & Script Development 10 07-10-2006 10:52 AM
stereo viewer plugin jumpjack Add-ons & Scripts 15 08-19-2005 09:48 PM


All times are GMT +1. The time now is 04:43 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.