-
Notifications
You must be signed in to change notification settings - Fork 0
/
I18n.lua
75 lines (68 loc) · 2.69 KB
/
I18n.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
--[[
Internationalization tool
@author ikubicki
]]
class 'i18n'
function i18n:new(langCode)
if phrases[langCode] == nil then
langCode = "en"
end
self.phrases = phrases[langCode]
return self
end
function i18n:get(key)
if self.phrases[key] then
return self.phrases[key]
end
return key
end
phrases = {
pl = {
['name'] = 'Termostat Hewalex PCWB',
['refresh'] = 'Aktualizuj dane',
['refreshing'] = 'Proszę czekać...',
['device-updated'] = 'Zaktualizowano dane',
['device-unavailable'] = 'Urządzenie niedostepne',
['last-update'] = 'Ostatnia aktualizacja: %s',
['device-off'] = 'Urządzenie wyłączone',
['device-error'] = 'Błąd urządzenia: %s',
['search-devices'] = 'Szukaj urządzeń',
['searching-devices'] = 'Szukam...',
['not-configured'] = 'Urządzenie nie skonfigurowane',
['check-logs'] = 'Zakończono wyszukiwanie. Sprawdź logi tego urządzenia: %s',
['search-row-device'] = '__ URZĄDZENIE %s (# %s) - STAN: %s',
['assigning-device'] = 'Automatycznie przypisano kod urządzenia: %s',
['device1-label'] = 'Temperatura wejściowa',
['device2-label'] = 'Temperatura wyjściowa',
['device3-label'] = 'Temperatura otoczenia',
['t1'] = 'Temperatura nastawiona: %.1fº%s',
['t2'] = 'Temperatura wejściowa: %.1fº%s',
['t3'] = 'Temperatura wyjściowa: %.1fº%s',
['t4'] = 'Temperatura otoczenia: %.1fº%s',
['fault'] = 'Pompa zgłosiła błąd: %s'
},
en = {
['name'] = 'Hewalex Pool Heat Pump thermostat',
['refresh'] = 'Refresh data',
['refreshing'] = 'Please wait...',
['device-updated'] = 'Temperature sensor updated',
['device-unavailable'] = 'Device unavailable',
['last-update'] = 'Last update: %s',
['device-off'] = 'Device turned off',
['device-error'] = 'Communication error: %s',
['search-devices'] = 'Search devices',
['searching-devices'] = 'Searching...',
['not-configured'] = 'Device not configured',
['check-logs'] = 'Search complete. Check logs of this device: %s',
['search-row-device'] = '__ DEVICE %s (# %s) - STATE: %s',
['assigning-device'] = 'Automatically assigned device code: %s',
['device1-label'] = 'Inlet temperature',
['device2-label'] = 'Outlet temperature',
['device3-label'] = 'Ambient temperature',
['t1'] = 'Setpoint temperature: %.1f º%s',
['t2'] = 'Inlet temperature: %.1f º%s',
['t3'] = 'Outlet temperature: %.1f º%s',
['t4'] = 'Ambient temperature: %.1f º%s',
['fault'] = 'Pump fault: %s'
}
}