-
Notifications
You must be signed in to change notification settings - Fork 1
/
i18n.lua
68 lines (65 loc) · 2.39 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
--[[
Internationalization tool
@author ikubicki
]]
class 'i18n'
function i18n:new(langCode)
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 = {
['search-devices'] = 'Szukaj urządzeń',
['searching-devices'] = 'Szukam...',
['refresh'] = 'Odśwież dane',
['refreshing'] = 'Odświeżam...',
['last-update'] = 'Ostatnia aktualizacja: %s',
['Temperature'] = 'Temperatura',
['Wind'] = 'Siła wiatru',
['Humidity'] = 'Wilgotność',
['Rain'] = 'Deszcz',
['search-row-station'] = '__ STACJA POGODOWA %s',
['search-row-station-modules'] = '__ Wykryto %d modułów',
['search-row-module'] = '____ MODUŁ %s (ID: %s, typ: %s)',
['search-row-module_types'] = '____ Typy danych: %s',
['check-logs'] = 'Zakończono wyszukiwanie. Sprawdź logi tego urządzenia: %s',
},
en = {
['search-devices'] = 'Search devices',
['searching-devices'] = 'Searching...',
['refresh'] = 'Update data',
['refreshing'] = 'Updating...',
['last-update'] = 'Last update at %s',
['Temperature'] = 'Temperature',
['Wind'] = 'Wind Strength',
['Humidity'] = 'Humidity',
['Rain'] = 'Rain',
['search-row-station'] = '__ WEATHER STATION %s',
['search-row-station-modules'] = '__ %d modules detected',
['search-row-module'] = '____ MODULE %s (ID: %s, type: %s)',
['search-row-module_types'] = '____ Data types: %s',
['check-logs'] = 'Check device logs (%s) for search results',
},
de = {
['search-devices'] = 'Geräte suchen',
['searching-devices'] = 'Suchen...',
['refresh'] = 'Aktualisieren',
['refreshing'] = 'Aktualisieren...',
['last-update'] = 'Letztes update: %s',
['Temperature'] = 'Temperatur',
['Wind'] = 'Windstärke',
['Humidity'] = 'Luftfeuchtigkeit',
['Rain'] = 'Regenfall',
['search-row-station'] = '__ WETTERSTATION %s',
['search-row-station-modules'] = '__ %d module erkannt',
['search-row-module'] = '____ MODULE %s (ID: %s, typ: %s)',
['search-row-module_types'] = '____ Datentypen: %s',
['check-logs'] = 'Überprüfen Sie die Geräteprotokolle (%s) auf Suchergebnisse',
}
}