Class tsLanguage

Author
Giovanni Capalbo <gcapalbo@users.sourceforge.net>
License
This source file is subject to the LGPL license, which is available online at this address: http://www.gnu.org/copyleft/lesser.html

This class used to provide the toolkit in different languages.



Attribute Summary


NameDescription
msgShowKeyboard"Show Keyboard" message.
msgMove"Move" message.
msgHide"Hide" message.
msgTab"Tab" message.
msgCaps"Caps" message.
msgSpace"Space" message.
curKeybdWhen parsing XML, the current keyboard that is being constructed.
curKeybdLineWhen parsing XML, the current keyboard line that is being constructed.


Method Summary


Return TypeSignature
voidload(The)
voidloadDefault()
voidparseXML(nextNode)


Attribute Details

msgShowKeyboard

NOTE: This attribute is static, so it is referenced as tsLanguage.msgShowKeyboard
Type
string
Description
"Show Keyboard" message.
Access
public



msgMove

NOTE: This attribute is static, so it is referenced as tsLanguage.msgMove
Type
string
Description
"Move" message.
Access
public



msgHide

NOTE: This attribute is static, so it is referenced as tsLanguage.msgHide
Type
string
Description
"Hide" message.
Access
public



msgTab

NOTE: This attribute is static, so it is referenced as tsLanguage.msgTab
Type
string
Description
"Tab" message.
Access
public



msgCaps

NOTE: This attribute is static, so it is referenced as tsLanguage.msgCaps
Type
string
Description
"Caps" message.
Access
public



msgSpace

NOTE: This attribute is static, so it is referenced as tsLanguage.msgSpace
Type
string
Description
"Space" message.
Access
public



curKeybd

NOTE: This attribute is static, so it is referenced as tsLanguage.curKeybd
Type
tsKeyboard
Description
When parsing XML, the current keyboard that is being constructed.
Access
public



curKeybdLine

NOTE: This attribute is static, so it is referenced as tsLanguage.curKeybdLine
Type
HTMLElement
Description
When parsing XML, the current keyboard line that is being constructed.
Access
public


Method Details

load

NOTE: This method is static, so it is referenced as tsLanguage.load
Description
Attempts to load the XML document for the given language. If that XML document is not found, the default language (English-US) is used.
Parameters
TypeNameDescription
string languageThelanguage code of the language to load.
Return
void
Access
public



loadDefault

NOTE: This method is static, so it is referenced as tsLanguage.loadDefault
Description
Loads the default keyboards and languages (which are set to English-US). This function is used in the event that the requested language's XML descriptor is not found.
Parameters
(none)
Return
void
Access
public



parseXML

NOTE: This method is static, so it is referenced as tsLanguage.parseXML
Description
Recursively parses an XML document starting with the given element.
Parameters
TypeNameDescription
XMLElementnextNodeThe next XML element to recursively parse.
Return
void
Access
public