Module: OLD

Defined in:
lib/dom.rb,
lib/locale.rb,
lib/roff-builder.rb,
lib/scp-article-loader.rb

Defined Under Namespace

Modules: DOM, SITE Classes: RoffBuilder, SCPArticleLoader

Instance Method Summary collapse

Instance Method Details

#get_endpoint(site) ⇒ Object



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/locale.rb', line 35

def get_endpoint(site)
  case site
  when SITE::CN
    "www.scp-wiki-cn.org"
  when SITE::ES
    "lafundacionscp.wikidot.com"
  when SITE::FR
    "fondationscp.wikidot.com"
  when SITE::PL, SITE::TH
    "scp-#{site.to_s}.wikidot.com"
  when SITE::RU
    "scpfoundation.ru"
  else
    "#{site.to_s}.scp-wiki.net"
  end
end

#get_locale(site) ⇒ Object



52
53
54
55
56
57
58
59
60
61
# File 'lib/locale.rb', line 52

def get_locale(site)
  case site
  when SITE::CN
    "zh_CN"
  when SITE::EN
    ""
  else
    site.to_s
  end
end