The Battle for Wesnoth  1.15.2+dev
Public Member Functions | Public Attributes | List of all members
language_def Struct Reference

#include <language.hpp>

Public Member Functions

 language_def ()
 
 language_def (const std::string &name, const t_string &lang, const std::string &dir, const std::string &salternates="", const std::string &sort_name="", const std::string &percent="100")
 
bool operator== (const language_def &) const
 
bool operator< (const language_def &a) const
 

Public Attributes

std::string localename
 
std::vector< std::string > alternates
 
t_string language
 
std::string sort_name
 
bool rtl
 
int percent
 % of translated text in core po-s More...
 

Detailed Description

Definition at line 26 of file language.hpp.

Constructor & Destructor Documentation

◆ language_def() [1/2]

language_def::language_def ( )
inline

Definition at line 28 of file language.hpp.

◆ language_def() [2/2]

language_def::language_def ( const std::string &  name,
const t_string lang,
const std::string &  dir,
const std::string &  salternates = "",
const std::string &  sort_name = "",
const std::string &  percent = "100" 
)
inline

Definition at line 37 of file language.hpp.

References percent.

Member Function Documentation

◆ operator<()

bool language_def::operator< ( const language_def a) const
inline

Definition at line 60 of file language.hpp.

References sort_name.

◆ operator==()

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

Definition at line 58 of file language.cpp.

References language.

Member Data Documentation

◆ alternates

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

Definition at line 53 of file language.hpp.

Referenced by set_language().

◆ language

t_string language_def::language

Definition at line 54 of file language.hpp.

Referenced by operator==().

◆ localename

std::string language_def::localename

◆ percent

int language_def::percent

% of translated text in core po-s

Definition at line 58 of file language.hpp.

Referenced by language_def(), and set_min_translation_percent().

◆ rtl

bool language_def::rtl

Definition at line 56 of file language.hpp.

Referenced by current_language_rtl().

◆ sort_name

std::string language_def::sort_name

Definition at line 55 of file language.hpp.

Referenced by operator<().


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