swlocale(3)

swlocale3

Swlocale is used for the localisation of the booknames the swlocale is a class which holds the information of one language.

Usage

#include <swlocale.h>

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. 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
SWConfig* localeSource
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".

Author

Generated automatically by Doxygen for The Sword Project from the source code.

From libsword-dev 1.5.3-3woody2 in Debian 3.0 (Woody). Parsed by carta from the page's man source.