Class: TD::Types::LanguagePackInfo

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/language_pack_info.rb

Overview

Contains information about a language pack.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#base_language_pack_idTD::Types::String?

Identifier of a base language pack; may be empty. If a string is missed in the language pack, then it should be fetched from base language pack. Unsupported in custom language packs.

Returns:

  • (TD::Types::String, nil)

    the current value of base_language_pack_id



21
22
23
# File 'lib/tdlib/types/language_pack_info.rb', line 21

def base_language_pack_id
  @base_language_pack_id
end

#idTD::Types::String

Unique language pack identifier.

Returns:

  • (TD::Types::String)

    the current value of id



21
22
23
# File 'lib/tdlib/types/language_pack_info.rb', line 21

def id
  @id
end

#is_betaBoolean

True, if the language pack is a beta language pack.

Returns:

  • (Boolean)

    the current value of is_beta



21
22
23
# File 'lib/tdlib/types/language_pack_info.rb', line 21

def is_beta
  @is_beta
end

#is_installedBoolean

True, if the language pack is installed by the current user.

Returns:

  • (Boolean)

    the current value of is_installed



21
22
23
# File 'lib/tdlib/types/language_pack_info.rb', line 21

def is_installed
  @is_installed
end

#is_officialBoolean

True, if the language pack is official.

Returns:

  • (Boolean)

    the current value of is_official



21
22
23
# File 'lib/tdlib/types/language_pack_info.rb', line 21

def is_official
  @is_official
end

#is_rtlBoolean

True, if the language pack strings are RTL.

Returns:

  • (Boolean)

    the current value of is_rtl



21
22
23
# File 'lib/tdlib/types/language_pack_info.rb', line 21

def is_rtl
  @is_rtl
end

#local_string_countInteger

Total number of non-deleted strings from the language pack available locally.

Returns:

  • (Integer)

    the current value of local_string_count



21
22
23
# File 'lib/tdlib/types/language_pack_info.rb', line 21

def local_string_count
  @local_string_count
end

#nameTD::Types::String

Language name.

Returns:

  • (TD::Types::String)

    the current value of name



21
22
23
# File 'lib/tdlib/types/language_pack_info.rb', line 21

def name
  @name
end

#native_nameTD::Types::String

Name of the language in that language.

Returns:

  • (TD::Types::String)

    the current value of native_name



21
22
23
# File 'lib/tdlib/types/language_pack_info.rb', line 21

def native_name
  @native_name
end

#plural_codeTD::Types::String

A language code to be used to apply plural forms. See www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info.

Returns:

  • (TD::Types::String)

    the current value of plural_code



21
22
23
# File 'lib/tdlib/types/language_pack_info.rb', line 21

def plural_code
  @plural_code
end

#total_string_countInteger

Total number of non-deleted strings from the language pack.

Returns:

  • (Integer)

    the current value of total_string_count



21
22
23
# File 'lib/tdlib/types/language_pack_info.rb', line 21

def total_string_count
  @total_string_count
end

#translated_string_countInteger

Total number of translated strings from the language pack.

Returns:

  • (Integer)

    the current value of translated_string_count



21
22
23
# File 'lib/tdlib/types/language_pack_info.rb', line 21

def translated_string_count
  @translated_string_count
end

#translation_urlTD::Types::String?

Link to language translation interface; empty for custom local language packs.

Returns:

  • (TD::Types::String, nil)

    the current value of translation_url



21
22
23
# File 'lib/tdlib/types/language_pack_info.rb', line 21

def translation_url
  @translation_url
end