List of all members | Public Fields | Public Instance Methods | Static Public Attributes
languagePackInfo Class Referencefinal

Inherits Object.

Description

Contains information about a language pack.

Public Fields

string id_
 Unique language pack identifier.
 
string base_language_pack_id_
 Identifier of a base language pack; may be empty. If a string is missed in the language pack, then it must be fetched from base language pack. Unsupported in custom language packs.
 
string name_
 Language name.
 
string native_name_
 Name of the language in that language.
 
string plural_code_
 A language code to be used to apply plural forms. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more information.
 
bool is_official_
 True, if the language pack is official.
 
bool is_rtl_
 True, if the language pack strings are RTL.
 
bool is_beta_
 True, if the language pack is a beta language pack.
 
bool is_installed_
 True, if the language pack is installed by the current user.
 
int32 total_string_count_
 Total number of non-deleted strings from the language pack.
 
int32 translated_string_count_
 Total number of translated strings from the language pack.
 
int32 local_string_count_
 Total number of non-deleted strings from the language pack available locally.
 
string translation_url_
 Link to language translation interface; empty for custom local language packs.
 

Public Instance Methods

 languagePackInfo ()
 
 languagePackInfo (string const &id_, string const &base_language_pack_id_, string const &name_, string const &native_name_, string const &plural_code_, bool is_official_, bool is_rtl_, bool is_beta_, bool is_installed_, int32 total_string_count_, int32 translated_string_count_, int32 local_string_count_, string const &translation_url_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Instance Methods inherited from TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

static const std::int32_t ID = 542199642
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ languagePackInfo() [1/2]

Contains information about a language pack.

◆ languagePackInfo() [2/2]

languagePackInfo ( string const &  id_,
string const &  base_language_pack_id_,
string const &  name_,
string const &  native_name_,
string const &  plural_code_,
bool  is_official_,
bool  is_rtl_,
bool  is_beta_,
bool  is_installed_,
int32  total_string_count_,
int32  translated_string_count_,
int32  local_string_count_,
string const &  translation_url_ 
)

Contains information about a language pack.

Parameters
[in]id_Unique language pack identifier.
[in]base_language_pack_id_Identifier of a base language pack; may be empty. If a string is missed in the language pack, then it must be fetched from base language pack. Unsupported in custom language packs.
[in]name_Language name.
[in]native_name_Name of the language in that language.
[in]plural_code_A language code to be used to apply plural forms. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more information.
[in]is_official_True, if the language pack is official.
[in]is_rtl_True, if the language pack strings are RTL.
[in]is_beta_True, if the language pack is a beta language pack.
[in]is_installed_True, if the language pack is installed by the current user.
[in]total_string_count_Total number of non-deleted strings from the language pack.
[in]translated_string_count_Total number of translated strings from the language pack.
[in]local_string_count_Total number of non-deleted strings from the language pack available locally.
[in]translation_url_Link to language translation interface; empty for custom local language packs.

Method Documentation

◆ store()

void store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: