language_def Struct Reference

#include <language.hpp>

Collaboration diagram for language_def:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 language_def ()
 language_def (const std::string &name, const t_string &lang, const std::string &dir, const std::string &salternates="")
bool operator== (const language_def &) const
bool available () const
 Is the locale available on the system?

Public Attributes

std::string localename
std::vector< std::string > alternates
t_string language
bool rtl


Detailed Description

Definition at line 30 of file language.hpp.


Constructor & Destructor Documentation

language_def::language_def (  )  [inline]

Definition at line 32 of file language.hpp.

language_def::language_def ( const std::string &  name,
const t_string lang,
const std::string &  dir,
const std::string &  salternates = "" 
) [inline]

Definition at line 39 of file language.hpp.

References alternates, and utils::split().


Member Function Documentation

bool language_def::operator== ( const language_def a  )  const

Definition at line 90 of file language.cpp.

References language.

bool language_def::available (  )  const

Is the locale available on the system?

If the dummy locales are selected we always return true.

Definition at line 95 of file language.cpp.

References alternates, has_language(), and localename.

Referenced by gui2::tlanguage_selection::show().


Member Data Documentation

Definition at line 48 of file language.hpp.

Referenced by available(), and set_language().

std::vector<std::string> language_def::alternates

Definition at line 49 of file language.hpp.

Referenced by available(), language_def(), and set_language().

Definition at line 50 of file language.hpp.

Referenced by languagedef_name(), main(), operator==(), and gui2::tlanguage_selection::show().

Definition at line 51 of file language.hpp.

Referenced by current_language_rtl().


The documentation for this struct was generated from the following files:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs