Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

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>

List of all members.

Public Methods

 SWLocale (const char *ifilename)
virtual ~SWLocale ()
virtual const char* getName ()
 This function is used to get the name of the languages which this object is handling. More...

virtual const char* getDescription ()
virtual const char* translate (const char *text)
virtual SWLocale& operator+= (SWLocale &addFrom)
virtual const struct abbrev* getBookAbbrevs ()
virtual void getBooks (char **iBMAX, struct sbook ***ibooks)

Private Attributes

LookupMap lookupTable
SWConfiglocaleSource
char* name
char* description
struct abbrev* bookAbbrevs
char* BMAX
struct 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 44 of file swlocale.h.


Member Function Documentation

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

Returns:
The description. A possible example is "German".

const char * 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".


The documentation for this class was generated from the following file:
Generated at Fri Oct 5 22:45:36 2001 for The Sword Project by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001