Class: Dicts::Locale

Inherits:
Dict
  • Object
show all
Defined in:
app/dicts/locale.rb

Constant Summary collapse

RU =
new(1, 'ru', 'Русский')
EN =
new(2, 'en', 'English')
EL =
new(3, 'el', 'Ελληνικά')
ES =
new(4, 'es', 'Español')
IT =
new(5, 'it', 'Italiano')
CS =
new(6, 'cs', 'Český')
FR =
new(7, 'fr', 'Français')
DE =
new(8, 'de', 'Deutsch')
ZH =
new(9, 'zh', '中文')
USED =

эти локали допустимы на сайте

[EN, ES, IT, EL, DE, FR, CS, RU, ZH].freeze
HAND =

то, что заполняется вручную

[RU, EN].freeze
DEST =

из этой локали переводим во все остальные

EN
TRANS =

в эти локали переводим

USED - HAND

Instance Attribute Summary collapse

Attributes inherited from Dict

#id, #index

Instance Method Summary collapse

Methods inherited from Dict

all, find, find_by_index, where

Constructor Details

#initialize(id, index, symbol) ⇒ Locale

Returns a new instance of Locale.



5
6
7
8
# File 'app/dicts/locale.rb', line 5

def initialize(id, index, symbol)
  @symbol = symbol
  super(id, index)
end

Instance Attribute Details

#symbolObject (readonly)

Returns the value of attribute symbol.



3
4
5
# File 'app/dicts/locale.rb', line 3

def symbol
  @symbol
end