PageRenderTime 48ms CodeModel.GetById 42ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/Tukui/core/clientfonts.lua

http://github.com/Asphyxia/Tukui
Lua | 26 lines | 22 code | 1 blank | 3 comment | 6 complexity | 8eb873df451eedbef941f0f50488ecb4 MD5 | raw file
 1--------------------------------------------------------------------------
 2-- overwrite font for some language, because default font are incompatible
 3--------------------------------------------------------------------------
 4local T, C, L = unpack(select(2, ...)) -- Import: T - functions, constants, variables; C - config; L - locales
 5
 6if T.client == "ruRU" then
 7	C["media"].uffont = C["media"].ru_uffont
 8	C["media"].font = C["media"].ru_font
 9	C["media"].dmgfont = C["media"].ru_dmgfont
10elseif T.client == "zhTW" then
11	C["media"].uffont = C["media"].tw_uffont
12	C["media"].font = C["media"].tw_font
13	C["media"].dmgfont = C["media"].tw_dmgfont
14elseif T.client == "koKR" then
15	C["media"].uffont = C["media"].kr_uffont
16	C["media"].font = C["media"].kr_font
17	C["media"].dmgfont = C["media"].kr_dmgfont
18elseif T.client == "frFR" then
19	C["media"].uffont = C["media"].fr_uffont
20	C["media"].font = C["media"].fr_font
21	C["media"].dmgfont = C["media"].fr_dmgfont
22elseif T.client == "deDE" then
23	C["media"].uffont = C["media"].de_uffont
24	C["media"].font = C["media"].de_font
25	C["media"].dmgfont = C["media"].de_dmgfont
26end