Drag[en]gine Script Module DragonScript Script API  1.0
Translator Class Reference

Translator. More...

Inheritance diagram for Translator:

Public Member Functions

Constructors
Translator new ()
 Create translator. More...
 
Management
LanguagePack getLanguagePack ()
 Llanguage pack or null if not set. More...
 
void setLanguagePack (LanguagePack languagePack)
 Set language pack or null if not set. More...
 
void updateTranslations ()
 Update translations. More...
 
Sections
int getSectionCount ()
 Number of sections. More...
 
int findSectionNamed (String name)
 Index of named section or -1 if absent. More...
 
int addSection (String name)
 Add section and return index. More...
 
void updateSectionTranslations (int section)
 Update translations of section. More...
 
int getEntryCount (int section)
 Number of entries in section. More...
 
int findEntryNamed (int section, String name)
 Index of named entry in section or -1 if absent. More...
 
int addEntry (int section, String name)
 Add named entry to section and return index. More...
 
UnicodeString getEntryTextAt (int section, int entry)
 Translation for entry in section. More...
 

Detailed Description

Translator.

This is a native class.

Author
Roland Pl├╝ss
Version
1.0
Date
2015

Member Function Documentation

§ addEntry()

int addEntry ( int  section,
String  name 
)

Add named entry to section and return index.

Exceptions
EOutOfBoundarysection is less than 0 or greater than or equal to getSectionCount().
EInvalidParamNamed entry is present.

§ addSection()

int addSection ( String  name)

Add section and return index.

Exceptions
EInvalidParamNamed section is present.

§ findEntryNamed()

int findEntryNamed ( int  section,
String  name 
)

Index of named entry in section or -1 if absent.

Exceptions
EOutOfBoundarysection is less than 0 or greater than or equal to getSectionCount().

§ findSectionNamed()

int findSectionNamed ( String  name)

Index of named section or -1 if absent.

§ getEntryCount()

int getEntryCount ( int  section)

Number of entries in section.

Exceptions
EOutOfBoundarysection is less than 0 or greater than or equal to getSectionCount().

§ getEntryTextAt()

UnicodeString getEntryTextAt ( int  section,
int  entry 
)

Translation for entry in section.

Exceptions
EOutOfBoundarysection is less than 0 or greater than or equal to getSectionCount().
EOutOfBoundaryentry is less than 0 or greater than or equal to getEntryCount().

§ getLanguagePack()

LanguagePack getLanguagePack ( )

Llanguage pack or null if not set.

§ getSectionCount()

int getSectionCount ( )

Number of sections.

§ new()

Translator new ( )

Create translator.

§ setLanguagePack()

void setLanguagePack ( LanguagePack  languagePack)

Set language pack or null if not set.

§ updateSectionTranslations()

void updateSectionTranslations ( int  section)

Update translations of section.

Exceptions
EOutOfBoundarysection is less than 0 or greater than or equal to getSectionCount().

§ updateTranslations()

void updateTranslations ( )

Update translations.


The documentation for this class was generated from the following file: