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_idString?

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:

  • (String, nil)

    the current value of base_language_pack_id



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

def base_language_pack_id
  @base_language_pack_id
end

#idString

Unique language pack identifier.

Returns:

  • (String)

    the current value of id



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

def id
  @id
end

#is_betaBoolean

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

Returns:

  • (Boolean)

    the current value of is_beta



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

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



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

def is_installed
  @is_installed
end

#is_officialBoolean

True, if the language pack is official.

Returns:

  • (Boolean)

    the current value of is_official



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

def is_official
  @is_official
end

#is_rtlBoolean

True, if the language pack strings are RTL.

Returns:

  • (Boolean)

    the current value of is_rtl



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

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



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

def local_string_count
  @local_string_count
end

#nameString

Language name.

Returns:

  • (String)

    the current value of name



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

def name
  @name
end

#native_nameString

Name of the language in that language.

Returns:

  • (String)

    the current value of native_name



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

def native_name
  @native_name
end

#plural_codeString

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 info.

Returns:

  • (String)

    the current value of plural_code



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

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



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

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



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

def translated_string_count
  @translated_string_count
end

#translation_urlString?

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

Returns:

  • (String, nil)

    the current value of translation_url



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

def translation_url
  @translation_url
end