mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-12 10:04:40 +02:00
localisation
This commit is contained in:
parent
8abffb30d3
commit
9b46cebbb8
@ -62,7 +62,7 @@ local function destroy_snake(index, snake)
|
||||
return
|
||||
end
|
||||
|
||||
game.print(table.concat {player.name, ' has been destroyed with a score of ', queue_size(snake.queue), '.'})
|
||||
game.print({'snake.snake_destroyed', player.name, queue_size(snake.queue)})
|
||||
end
|
||||
|
||||
local function destroy_dead_snakes()
|
||||
@ -347,7 +347,7 @@ local function new_snake(player)
|
||||
local cord, pos = find_new_snake_position()
|
||||
|
||||
if not cord then
|
||||
player.print('Unable to spawn snake, please try again.')
|
||||
player.print({'snake.spawn_snake_fail'})
|
||||
return
|
||||
end
|
||||
|
||||
|
@ -13,7 +13,7 @@ local function show_gui_for_player(player)
|
||||
|
||||
local top = player.gui.top
|
||||
if not top[main_button_name] then
|
||||
top.add {type = 'button', name = main_button_name, caption = 'Snake'}
|
||||
top.add {type = 'button', name = main_button_name, caption = {'snake.name'}}
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -155,3 +155,8 @@ ammo_count=Autofill ammo count
|
||||
invalid_ammo_count=ammo count must be a positive integer
|
||||
main_button_tooltip=Autofill settings
|
||||
frame_name=Autofill
|
||||
|
||||
[snake]
|
||||
name=Snake
|
||||
spawn_snake_fail=Unable to spawn snake, please try again.
|
||||
snake_destroyed=__1__ has been destroyed with a score of __2__.
|
||||
|
Loading…
Reference in New Issue
Block a user