Class: TD::Types::LanguagePackInfo
- Defined in:
- lib/tdlib/types/language_pack_info.rb
Overview
Contains information about a language pack.
Instance Attribute Summary collapse
-
#base_language_pack_id ⇒ TD::Types::String?
Identifier of a base language pack; may be empty.
-
#id ⇒ TD::Types::String
Unique language pack identifier.
-
#is_beta ⇒ Boolean
True, if the language pack is a beta language pack.
-
#is_installed ⇒ Boolean
True, if the language pack is installed by the current user.
-
#is_official ⇒ Boolean
True, if the language pack is official.
-
#is_rtl ⇒ Boolean
True, if the language pack strings are RTL.
-
#local_string_count ⇒ Integer
Total number of non-deleted strings from the language pack available locally.
-
#name ⇒ TD::Types::String
Language name.
-
#native_name ⇒ TD::Types::String
Name of the language in that language.
-
#plural_code ⇒ TD::Types::String
A language code to be used to apply plural forms.
-
#total_string_count ⇒ Integer
Total number of non-deleted strings from the language pack.
-
#translated_string_count ⇒ Integer
Total number of translated strings from the language pack.
-
#translation_url ⇒ TD::Types::String?
Link to language translation interface; empty for custom local language packs.
Method Summary
Methods inherited from Base
Instance Attribute Details
#base_language_pack_id ⇒ TD::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.
21 22 23 |
# File 'lib/tdlib/types/language_pack_info.rb', line 21 def base_language_pack_id @base_language_pack_id end |
#id ⇒ TD::Types::String
Unique language pack identifier.
21 22 23 |
# File 'lib/tdlib/types/language_pack_info.rb', line 21 def id @id end |
#is_beta ⇒ Boolean
True, if the language pack is a beta language pack.
21 22 23 |
# File 'lib/tdlib/types/language_pack_info.rb', line 21 def is_beta @is_beta end |
#is_installed ⇒ Boolean
True, if the language pack is installed by the current user.
21 22 23 |
# File 'lib/tdlib/types/language_pack_info.rb', line 21 def is_installed @is_installed end |
#is_official ⇒ Boolean
True, if the language pack is official.
21 22 23 |
# File 'lib/tdlib/types/language_pack_info.rb', line 21 def is_official @is_official end |
#is_rtl ⇒ Boolean
True, if the language pack strings are RTL.
21 22 23 |
# File 'lib/tdlib/types/language_pack_info.rb', line 21 def is_rtl @is_rtl end |
#local_string_count ⇒ Integer
Total number of non-deleted strings from the language pack available locally.
21 22 23 |
# File 'lib/tdlib/types/language_pack_info.rb', line 21 def local_string_count @local_string_count end |
#name ⇒ TD::Types::String
Language name.
21 22 23 |
# File 'lib/tdlib/types/language_pack_info.rb', line 21 def name @name end |
#native_name ⇒ TD::Types::String
Name of the language in that language.
21 22 23 |
# File 'lib/tdlib/types/language_pack_info.rb', line 21 def native_name @native_name end |
#plural_code ⇒ TD::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.
21 22 23 |
# File 'lib/tdlib/types/language_pack_info.rb', line 21 def plural_code @plural_code end |
#total_string_count ⇒ Integer
Total number of non-deleted strings from the language pack.
21 22 23 |
# File 'lib/tdlib/types/language_pack_info.rb', line 21 def total_string_count @total_string_count end |
#translated_string_count ⇒ Integer
Total number of translated strings from the language pack.
21 22 23 |
# File 'lib/tdlib/types/language_pack_info.rb', line 21 def translated_string_count @translated_string_count end |
#translation_url ⇒ TD::Types::String?
Link to language translation interface; empty for custom local language packs.
21 22 23 |
# File 'lib/tdlib/types/language_pack_info.rb', line 21 def translation_url @translation_url end |