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{
name='readme',
caption='utility/questionmark',
tooltip={'readme.tooltip'}
}:add_tab('guildlines',{'readme.guildlines-name'},{'readme.guildlines-tooltip'},function(frame)
tooltip={'ExpGamingInfo-Readme.tooltip'}
}:add_tab('guildlines',{'ExpGamingInfo-Readme.guildlines-name'},{'ExpGamingInfo-Readme.guildlines-tooltip'},function(frame)
for i = 1,10 do
local style=nil; if i == 1 then style = 'caption_label' end
format_label(frame.add{
type='label',
caption={'readme.guildlines-line'..tostring(i)},
caption={'ExpGamingInfo-Readme.guildlines-line'..tostring(i)},
style=style
})
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{
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{
type='label',
caption={'readme.commands-singleline'}
caption={'ExpGamingInfo-Readme.commands-singleline'}
})
Gui.bar(frame,480)
local table = frame.add{name='command_table',type='table',column_count=2}
table.add{
type='label',
caption={'readme.commands-col1'},
caption={'ExpGamingInfo-Readme.commands-col1'},
style='caption_label'
}
table.add{
type='label',
caption={'readme.commands-col2'},
caption={'ExpGamingInfo-Readme.commands-col2'},
style='caption_label'
}
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.single_line = false
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={
'https://discord.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
frame.add{
type="label",
caption={'readme.links-cap'..tostring(i)},
caption={'ExpGamingInfo-Readme.links-cap'..tostring(i)},
style='caption_label'
}
format(frame.add{
@@ -97,33 +97,33 @@ end):add_tab('links',{'readme.links-name'},{'readme.links-tooltip'},function(fra
text=link
})
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{
type='label',
caption={'readme.servers-singleline'}
caption={'ExpGamingInfo-Readme.servers-singleline'}
})
Gui.bar(frame,480)
for i = 1,6 do
frame.add{
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'
}
format_label(frame.add{
type='label',
caption={'readme.servers-des'..tostring(i)}
caption={'ExpGamingInfo-Readme.servers-des'..tostring(i)}
})
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{
type='label',
caption={'readme.rules-singleline'}
caption={'ExpGamingInfo-Readme.rules-singleline'}
})
Gui.bar(frame,480)
for i = 1,20 do
format_label(frame.add{
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)

View File

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

View File

@@ -41,17 +41,17 @@ local global = global{
Gui.left.add{
name='science',
caption='item/lab',
tooltip={'science.tooltip'},
tooltip={'ExpGamingInfo-Science.tooltip'},
draw=function(frame)
local player = Game.get_player(frame.player_index)
if not global[player.force.name] then
global[player.force.name] = table.deepcopy(global._base)
end
global = global[player.force.name]
frame.caption = {'science.name'}
frame.caption = {'ExpGamingInfo-Science.name'}
frame.add{
type='label',
caption={'science.total'},
caption={'ExpGamingInfo-Science.total'},
style='caption_label'
}
local totals = frame.add{
@@ -60,7 +60,7 @@ Gui.left.add{
}
frame.add{
type='label',
caption={'science.time'},
caption={'ExpGamingInfo-Science.time'},
style='caption_label'
}
local times = frame.add{
@@ -80,19 +80,19 @@ Gui.left.add{
if made > 0 then
totals.add{
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)))
times.add{
type='label',
caption={'science.format',{'science.'..name},_made}
caption={'ExpGamingInfo-Science.format',{'ExpGamingInfo-Science.'..name},_made}
}
end
end
end,
can_open=function(player)
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
}

View File

@@ -129,7 +129,7 @@ end
Gui.left.add{
name='tasklist',
caption='utility/not_enough_repair_packs_icon',
tooltip={'tasklist.tooltip'},
tooltip={'ExpGamingInfo-Tasklist.tooltip'},
draw=function(frame)
frame.caption = ''
local title = frame.add{
@@ -138,7 +138,7 @@ Gui.left.add{
}
title.add{
type='label',
caption={'tasklist.name'},
caption={'ExpGamingInfo-Tasklist.name'},
style='caption_label'
}
local player = Game.get_player(frame.player_index)
@@ -196,7 +196,7 @@ Gui.left.add{
end,
can_open=function(player)
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,
open_on_join=true
}