mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 12:31:41 +09:00
Added Locale Files
This commit is contained in:
@@ -44,8 +44,8 @@ local function _poll_end(self)
|
||||
poll.voted = nil
|
||||
table.insert(global.old,poll)
|
||||
global.active[uuid] = nil
|
||||
game.print({'polls.end',poll.question},defines.textcolor.info)
|
||||
game.print({'polls.winner',highest[1]},defines.textcolor.info)
|
||||
game.print({'ExpGamingPlayer-polls.end',poll.question},defines.textcolor.info)
|
||||
game.print({'ExpGamingPlayer-polls.winner',highest[1]},defines.textcolor.info)
|
||||
end
|
||||
|
||||
local function _poll_data(question,answers)
|
||||
@@ -72,7 +72,7 @@ local function draw_poll(frame)
|
||||
if not poll then
|
||||
frame.add{
|
||||
type='label',
|
||||
caption={'polls.no-poll'}
|
||||
caption={'ExpGamingPlayer-polls.no-poll'}
|
||||
}
|
||||
return
|
||||
end
|
||||
@@ -207,7 +207,7 @@ end)
|
||||
|
||||
ThisModule.Gui = Gui.popup{
|
||||
name='polls',
|
||||
caption={'polls.name'},
|
||||
caption={'ExpGamingPlayer-polls.name'},
|
||||
draw=function(frame,data)
|
||||
frame.style.right_padding = 5
|
||||
frame.style.bottom_padding = 5
|
||||
@@ -219,16 +219,16 @@ ThisModule.Gui = Gui.popup{
|
||||
name=uuid,
|
||||
direction='vertical'
|
||||
}
|
||||
flow.add{type='label',caption={'polls.time-left',poll_time_out}}
|
||||
flow.add{type='label',caption={'ExpGamingPlayer-polls.time-left',poll_time_out}}
|
||||
flow.add{type='label',caption='Question: '..poll.question}
|
||||
flow.add{type='label',name='answer',caption='Your Answer: None'}
|
||||
opption_drop_down:draw(flow)
|
||||
end
|
||||
}:add_left{
|
||||
caption='utility/item_editor_icon',
|
||||
tooltip={'polls.tooltip'},
|
||||
tooltip={'ExpGamingPlayer-polls.tooltip'},
|
||||
draw=function(frame)
|
||||
frame.caption={'polls.name'}
|
||||
frame.caption={'ExpGamingPlayer-polls.name'}
|
||||
frame.add{
|
||||
type='label',
|
||||
name='current_index',
|
||||
@@ -265,7 +265,7 @@ ThisModule.Gui = Gui.popup{
|
||||
can_open=function(player)
|
||||
if #global.old > 0 then return true
|
||||
elseif Role and Role.allowed(player,'create-poll') or player.admin then return true
|
||||
else return {'polls.no-poll'} end
|
||||
else return {'ExpGamingPlayer-polls.no-poll'} end
|
||||
end
|
||||
}
|
||||
-- Event Handlers Define
|
||||
|
||||
7
modules/ExpGamingPlayer/polls/locale/de.cfg
Normal file
7
modules/ExpGamingPlayer/polls/locale/de.cfg
Normal file
@@ -0,0 +1,7 @@
|
||||
[ExpGamingPlayer-polls]
|
||||
name=Umfragen
|
||||
tooltip=Alte Umfragen ansehen
|
||||
no-poll=Keine alten Umfragen
|
||||
end=Die Umfrage hat gerade geendet: __1__
|
||||
winner=__1__ hatte die meisten Stimmen.
|
||||
time-left=Du hast noch __1__s um deine Wahl zu erfassen.
|
||||
7
modules/ExpGamingPlayer/polls/locale/en.cfg
Normal file
7
modules/ExpGamingPlayer/polls/locale/en.cfg
Normal file
@@ -0,0 +1,7 @@
|
||||
[ExpGamingPlayer-polls]
|
||||
name=Polls
|
||||
tooltip=View Old Polls
|
||||
no-poll=No Old Polls
|
||||
end=Poll Just Ended: __1__
|
||||
winner=__1__ had the most votes.
|
||||
time-left=You will have __1__s to pick.
|
||||
7
modules/ExpGamingPlayer/polls/locale/fr.cfg
Normal file
7
modules/ExpGamingPlayer/polls/locale/fr.cfg
Normal file
@@ -0,0 +1,7 @@
|
||||
[ExpGamingPlayer-polls]
|
||||
name=Polls
|
||||
tooltip=View Old Polls
|
||||
no-poll=No Old Polls
|
||||
end=Poll Just Ended: __1__
|
||||
winner=__1__ had the most votes.
|
||||
time-left=You will have __1__s to pick.
|
||||
7
modules/ExpGamingPlayer/polls/locale/nl.cfg
Normal file
7
modules/ExpGamingPlayer/polls/locale/nl.cfg
Normal file
@@ -0,0 +1,7 @@
|
||||
[ExpGamingPlayer-polls]
|
||||
name=Polls
|
||||
tooltip=Laat oude polls zien
|
||||
no-poll=Geen oude polls
|
||||
end=Poll is zojuist beëindigd: __1__
|
||||
winner=__1__ had de meeste stemmen.
|
||||
time-left=Je hebt __1__s om te kiezen.
|
||||
7
modules/ExpGamingPlayer/polls/locale/sv-SE.cfg
Normal file
7
modules/ExpGamingPlayer/polls/locale/sv-SE.cfg
Normal file
@@ -0,0 +1,7 @@
|
||||
[ExpGamingPlayer-polls]
|
||||
name=Undersökningar
|
||||
tooltip=Se gamla undersökningar
|
||||
no-poll=Inga gamla undersökningar
|
||||
end=Röstning slutade nyss: __1__
|
||||
winner=__1__ hade flest röster.
|
||||
time-left=Du kommer att få __1__s på dig att välja.
|
||||
Reference in New Issue
Block a user