sword::SWLocale Class Reference

SWLocale is used for the localisation of the booknames The SWLocale is a class which holds the information of one language. More...

#include <swlocale.h>

Collaboration diagram for sword::SWLocale:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SWLocale (const char *ifilename)
virtual const char * getName ()
 This function is used to get the name of the languages which this object is handling.
virtual const char * getDescription ()
 
Returns:
The description.

virtual const char * getEncoding ()
virtual const char * translate (const char *text)
virtual void augment (SWLocale &addFrom)
virtual SWLocaleoperator+= (SWLocale &addFrom)
virtual struct abbrevgetBookAbbrevs ()
virtual void getBooks (char **iBMAX, struct sbook ***ibooks)

Private Attributes

Private * p
SWConfiglocaleSource
char * name
char * description
char * encoding
abbrevbookAbbrevs
char * BMAX
sbook ** books

Detailed Description

SWLocale is used for the localisation of the booknames The SWLocale is a class which holds the information of one language.

Every language supported by SWORD has one SWLocale object, get the name of the Language using

See also:
getname of this class. Another functions useful for frontend developers is

getDescription.

Definition at line 39 of file swlocale.h.


Member Function Documentation

virtual const char* sword::SWLocale::getName (  )  [virtual]

This function is used to get the name of the languages which this object is handling.

Returns:
The name of the managed language. A possible example is "de".

virtual const char* sword::SWLocale::getDescription (  )  [virtual]

Returns:
The description.

A possible example is "German".


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