Updated Locale Names

This commit is contained in:
Cooldude2606
2018-09-29 18:21:14 +01:00
parent 627f5a4651
commit 5e3f24511c
4 changed files with 40 additions and 40 deletions

View File

@@ -25,36 +25,36 @@ end
Gui.center.add{ Gui.center.add{
name='readme', name='readme',
caption='utility/questionmark', caption='utility/questionmark',
tooltip={'readme.tooltip'} tooltip={'ExpGamingInfo-Readme.tooltip'}
}:add_tab('guildlines',{'readme.guildlines-name'},{'readme.guildlines-tooltip'},function(frame) }:add_tab('guildlines',{'ExpGamingInfo-Readme.guildlines-name'},{'ExpGamingInfo-Readme.guildlines-tooltip'},function(frame)
for i = 1,10 do for i = 1,10 do
local style=nil; if i == 1 then style = 'caption_label' end local style=nil; if i == 1 then style = 'caption_label' end
format_label(frame.add{ format_label(frame.add{
type='label', type='label',
caption={'readme.guildlines-line'..tostring(i)}, caption={'ExpGamingInfo-Readme.guildlines-line'..tostring(i)},
style=style style=style
}) })
end end
end):add_tab('chat',{'readme.chat-name'},{'readme.chat-tooltip'},function(frame) end):add_tab('chat',{'ExpGamingInfo-Readme.chat-name'},{'ExpGamingInfo-Readme.chat-tooltip'},function(frame)
format_label(frame.add{ format_label(frame.add{
type='label', type='label',
caption={'readme.chat-singleline'} caption={'ExpGamingInfo-Readme.chat-singleline'}
}) })
end):add_tab('commands',{'readme.commands-name'},{'readme.commands-tooltip'},function(frame) end):add_tab('commands',{'ExpGamingInfo-Readme.commands-name'},{'ExpGamingInfo-Readme.commands-tooltip'},function(frame)
format_label(frame.add{ format_label(frame.add{
type='label', type='label',
caption={'readme.commands-singleline'} caption={'ExpGamingInfo-Readme.commands-singleline'}
}) })
Gui.bar(frame,480) Gui.bar(frame,480)
local table = frame.add{name='command_table',type='table',column_count=2} local table = frame.add{name='command_table',type='table',column_count=2}
table.add{ table.add{
type='label', type='label',
caption={'readme.commands-col1'}, caption={'ExpGamingInfo-Readme.commands-col1'},
style='caption_label' style='caption_label'
} }
table.add{ table.add{
type='label', type='label',
caption={'readme.commands-col2'}, caption={'ExpGamingInfo-Readme.commands-col2'},
style='caption_label' style='caption_label'
} }
table.style.width = 480 table.style.width = 480
@@ -72,7 +72,7 @@ end):add_tab('commands',{'readme.commands-name'},{'readme.commands-tooltip'},fun
discription.style.maximal_width = 400 discription.style.maximal_width = 400
discription.style.single_line = false discription.style.single_line = false
end end
end):add_tab('links',{'readme.links-name'},{'readme.links-tooltip'},function(frame) end):add_tab('links',{'ExpGamingInfo-Readme.links-name'},{'ExpGamingInfo-Readme.links-tooltip'},function(frame)
local links={ local links={
'https://discord.explosivegaming.nl', 'https://discord.explosivegaming.nl',
'https://explosivegaming.nl', 'https://explosivegaming.nl',
@@ -89,7 +89,7 @@ end):add_tab('links',{'readme.links-name'},{'readme.links-tooltip'},function(fra
for i,link in pairs(links) do for i,link in pairs(links) do
frame.add{ frame.add{
type="label", type="label",
caption={'readme.links-cap'..tostring(i)}, caption={'ExpGamingInfo-Readme.links-cap'..tostring(i)},
style='caption_label' style='caption_label'
} }
format(frame.add{ format(frame.add{
@@ -97,33 +97,33 @@ end):add_tab('links',{'readme.links-name'},{'readme.links-tooltip'},function(fra
text=link text=link
}) })
end end
end):add_tab('servers',{'readme.servers-name'},{'readme.servers-tooltip'},function(frame) end):add_tab('servers',{'ExpGamingInfo-Readme.servers-name'},{'ExpGamingInfo-Readme.servers-tooltip'},function(frame)
format_label(frame.add{ format_label(frame.add{
type='label', type='label',
caption={'readme.servers-singleline'} caption={'ExpGamingInfo-Readme.servers-singleline'}
}) })
Gui.bar(frame,480) Gui.bar(frame,480)
for i = 1,6 do for i = 1,6 do
frame.add{ frame.add{
type='label', type='label',
caption={'readme.servers-format',tostring(i),{'readme.servers-cap'..tostring(i)}}, caption={'ExpGamingInfo-Readme.servers-format',tostring(i),{'ExpGamingInfo-Readme.servers-cap'..tostring(i)}},
style='caption_label' style='caption_label'
} }
format_label(frame.add{ format_label(frame.add{
type='label', type='label',
caption={'readme.servers-des'..tostring(i)} caption={'ExpGamingInfo-Readme.servers-des'..tostring(i)}
}) })
end end
end):add_tab('rules',{'readme.rules-name'},{'readme.rules-tooltip'},function(frame) end):add_tab('rules',{'ExpGamingInfo-Readme.rules-name'},{'ExpGamingInfo-Readme.rules-tooltip'},function(frame)
format_label(frame.add{ format_label(frame.add{
type='label', type='label',
caption={'readme.rules-singleline'} caption={'ExpGamingInfo-Readme.rules-singleline'}
}) })
Gui.bar(frame,480) Gui.bar(frame,480)
for i = 1,20 do for i = 1,20 do
format_label(frame.add{ format_label(frame.add{
type='label', type='label',
caption={'readme.rules-format',i,{'readme.rules-rule'..tostring(i)}} caption={'ExpGamingInfo-Readme.rules-format',i,{'ExpGamingInfo-Readme.rules-rule'..tostring(i)}}
}) })
end end
end) end)

View File

@@ -30,12 +30,12 @@ local global = global{
Gui.left.add{ Gui.left.add{
name='rockets', name='rockets',
caption='item/rocket-silo', caption='item/rocket-silo',
tooltip={'rockets.tooltip'}, tooltip={'ExpGamingInfo-Rockets.tooltip'},
draw=function(frame) draw=function(frame)
frame.caption = {'rockets.name'} frame.caption = {'ExpGamingInfo-Rockets.name'}
local player = Game.get_player(frame.player_index) local player = Game.get_player(frame.player_index)
local satellites = player.force.get_item_launched('satellite') local satellites = player.force.get_item_launched('satellite')
local time = {'rockets.nan'} local time = {'ExpGamingInfo-Rockets.nan'}
if satellites == 1 then time = tick_to_display_format(game.tick) if satellites == 1 then time = tick_to_display_format(game.tick)
elseif satellites > 1 then time = tick_to_display_format((game.tick-global.first)/satellites) end elseif satellites > 1 then time = tick_to_display_format((game.tick-global.first)/satellites) end
if satellites ~= global.update then if satellites ~= global.update then
@@ -47,27 +47,27 @@ Gui.left.add{
end end
frame.add{ frame.add{
type='label', type='label',
caption={'rockets.sent',satellites} caption={'ExpGamingInfo-Rockets.sent',satellites}
} }
frame.add{ frame.add{
type='label', type='label',
caption={'rockets.first',tick_to_display_format(global.first)} caption={'ExpGamingInfo-Rockets.first',tick_to_display_format(global.first)}
} }
frame.add{ frame.add{
type='label', type='label',
caption={'rockets.last',tick_to_display_format(global.last-global._last)} caption={'ExpGamingInfo-Rockets.last',tick_to_display_format(global.last-global._last)}
} }
frame.add{ frame.add{
type='label', type='label',
caption={'rockets.time',time} caption={'ExpGamingInfo-Rockets.time',time}
} }
frame.add{ frame.add{
type='label', type='label',
caption={'rockets.fastest',tick_to_display_format(global.fastest)} caption={'ExpGamingInfo-Rockets.fastest',tick_to_display_format(global.fastest)}
} }
frame.add{ frame.add{
type='label', type='label',
caption={'rockets.milestones'}, caption={'ExpGamingInfo-Rockets.milestones'},
style='caption_label' style='caption_label'
} }
local milestones = frame.add{ local milestones = frame.add{
@@ -81,18 +81,18 @@ Gui.left.add{
time = global.last time = global.last
Gui.left.open('rockets') Gui.left.open('rockets')
end end
local _time = {'rockets.nan'} local _time = {'ExpGamingInfo-Rockets.nan'}
if time > 0 then _time = tick_to_display_format(time) end if time > 0 then _time = tick_to_display_format(time) end
milestones.add{ milestones.add{
type='label', type='label',
caption={'rockets.format',tostring(milestone),_time} caption={'ExpGamingInfo-Rockets.format',tostring(milestone),_time}
} }
if time == 0 then break end if time == 0 then break end
end end
end, end,
can_open=function(player) can_open=function(player)
if player.force.get_item_launched('satellite') > 0 then return true if player.force.get_item_launched('satellite') > 0 then return true
else return {'rockets.none'} end else return {'ExpGamingInfo-Rockets.none'} end
end end
} }

View File

@@ -41,17 +41,17 @@ local global = global{
Gui.left.add{ Gui.left.add{
name='science', name='science',
caption='item/lab', caption='item/lab',
tooltip={'science.tooltip'}, tooltip={'ExpGamingInfo-Science.tooltip'},
draw=function(frame) draw=function(frame)
local player = Game.get_player(frame.player_index) local player = Game.get_player(frame.player_index)
if not global[player.force.name] then if not global[player.force.name] then
global[player.force.name] = table.deepcopy(global._base) global[player.force.name] = table.deepcopy(global._base)
end end
global = global[player.force.name] global = global[player.force.name]
frame.caption = {'science.name'} frame.caption = {'ExpGamingInfo-Science.name'}
frame.add{ frame.add{
type='label', type='label',
caption={'science.total'}, caption={'ExpGamingInfo-Science.total'},
style='caption_label' style='caption_label'
} }
local totals = frame.add{ local totals = frame.add{
@@ -60,7 +60,7 @@ Gui.left.add{
} }
frame.add{ frame.add{
type='label', type='label',
caption={'science.time'}, caption={'ExpGamingInfo-Science.time'},
style='caption_label' style='caption_label'
} }
local times = frame.add{ local times = frame.add{
@@ -80,19 +80,19 @@ Gui.left.add{
if made > 0 then if made > 0 then
totals.add{ totals.add{
type='label', type='label',
caption={'science.format',{'science.'..name},made} caption={'ExpGamingInfo-Science.format',{'ExpGamingInfo-Science.'..name},made}
} }
local _made = string.format('%.2f',(made-global._made[i])/((global.update-global._update)/(3600*game.speed))) local _made = string.format('%.2f',(made-global._made[i])/((global.update-global._update)/(3600*game.speed)))
times.add{ times.add{
type='label', type='label',
caption={'science.format',{'science.'..name},_made} caption={'ExpGamingInfo-Science.format',{'ExpGamingInfo-Science.'..name},_made}
} }
end end
end end
end, end,
can_open=function(player) can_open=function(player)
if player.force.item_production_statistics.get_input_count('science-pack-1') > 0 then return true if player.force.item_production_statistics.get_input_count('science-pack-1') > 0 then return true
else return {'science.none'} end else return {'ExpGamingInfo-Science.none'} end
end end
} }

View File

@@ -129,7 +129,7 @@ end
Gui.left.add{ Gui.left.add{
name='tasklist', name='tasklist',
caption='utility/not_enough_repair_packs_icon', caption='utility/not_enough_repair_packs_icon',
tooltip={'tasklist.tooltip'}, tooltip={'ExpGamingInfo-Tasklist.tooltip'},
draw=function(frame) draw=function(frame)
frame.caption = '' frame.caption = ''
local title = frame.add{ local title = frame.add{
@@ -138,7 +138,7 @@ Gui.left.add{
} }
title.add{ title.add{
type='label', type='label',
caption={'tasklist.name'}, caption={'ExpGamingInfo-Tasklist.name'},
style='caption_label' style='caption_label'
} }
local player = Game.get_player(frame.player_index) local player = Game.get_player(frame.player_index)
@@ -196,7 +196,7 @@ Gui.left.add{
end, end,
can_open=function(player) can_open=function(player)
if Role.allowed(player,'edit-tasklist') or #global.tasks > 0 then return true if Role.allowed(player,'edit-tasklist') or #global.tasks > 0 then return true
else return {'tasklist.none'} end else return {'ExpGamingInfo-Tasklist.none'} end
end, end,
open_on_join=true open_on_join=true
} }