cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Seitz <s.se...@secretresearchfacility.com>
Subject additional keyboard languages in Consoleproxy
Date Mon, 14 Dec 2015 16:52:16 GMT
Hi!

I've recently experimented with different approaches to add languages to
the consoleproxy in a more modular way than the very hardcoded
ajaxviewer / ajaxkeys / index.jsp

I'ld like to ask if someone already did some work in that direction, so
I could join in?
Alternatively, I'll start on a somewhat bigger rewrite of that code.

My thoughts so far are:

- there's no sql based information which languages are supported
- it's in consoleproxy's index.jsp (very hardcoded for the dropdown)
additionally in ajaxkeys.js partly in array structures, partly in simple
suffixed variables/constants. ajaxviewer has a very own wording, also in
simple suffixed globals/constants.
- also the code for provisioning vms shows a completely independend
language selector. at least for 4.6.x there are different informations
(french in CP vs traditional chinese in the provisioning dialouge ...)
- default language can't be altered except via sql statements.

I'ld like to start with a complete rewrite of ajaxviewer.js and
keyboard-definitions for different languages which incorporate into
ajaxviewer if present. I'ld also move from static ul/dl languageselector
in index.jsp to a 100% jquery Set, which would build dynamically for
available languages.

As a sidekick - and If there's some consens on how to store available
languages in a more common way - I'ld like to add a language property to
instance-related api-calls (I didn't dug too deep, maybe there's already
something in place). The UI 'ld definitely need some rewrite to get an
up-to-date dropdown for available languages.

This'll be my personal "winter is boring"-project, so I'll target a PoC
in about two month or so.

Oh, if anyone already gathered and documented keycodes for different
keyboards? :)

I'ld aprpeciate any suggestions!

cheers,

Stephan 



Mime
View raw message