Main Page   Namespace List   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>

Collaboration diagram for SWLocale:

Collaboration graph
[legend]
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
abbrev * bookAbbrevs
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 44 of file swlocale.h.


Member Function Documentation

const char * SWLocale::getDescription   [virtual]
 

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

Definition at line 91 of file swlocale.cpp.

00091                                      {
00092         return description;
00093 }

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".

Definition at line 86 of file swlocale.cpp.

Referenced by LocaleMgr::loadConfigDir().

00086                               {
00087         return name;
00088 }


The documentation for this class was generated from the following files:
Generated on Thu Jun 20 22:13:03 2002 for The Sword Project by doxygen1.2.15