Factorio: Locale fixes (#6237)

This commit is contained in:
CosmicWolf
2026-08-05 02:56:52 +02:00
committed by GitHub
parent f328ce7e7d
commit 408954c60b
2 changed files with 10 additions and 7 deletions
@@ -1,14 +1,15 @@
[map-gen-preset-name]
archipelago=Archipelago
[entity-name]
ap-energy-bridge=Archipelago EnergyLink Bridge
[map-gen-preset-name]
archipelago=Archipelago
[map-gen-preset-description]
archipelago=World preset created by the Archipelago Randomizer. World may or may not contain actual archipelagos.
[technology-name]
ap-technology-full=__1__'s __2__ (__3__)
# this comment is added because without this second ' the rest of the file remains a different colour in my edit program
ap-technology-hidden=__1__
[technology-description]
@@ -31,6 +32,7 @@ receive-sample-item=Received __1__x __2__
sample-inventory-full=Additional items will be sent when inventory space is available.
sample-error=Unable to receive __1__x [item=__2__] as this item does not exist.
fail-to-place=Failed to place __1__ in __2__
death-link=Death was granted by __1__
[traps]
new-evolution-factor=New evolution factor: __1__
@@ -407,11 +407,12 @@ function update_player(index)
--player.print(serpent.block(data['pending_samples']))
local stack = {}
local quality = "{{ free_sample_quality_name }}"
for name, count in pairs(samples) do
stack.name = name
stack.count = count
if script.active_mods["quality"] then
stack.quality = "{{ free_sample_quality_name }}"
stack.quality = quality
end
if prototypes.item[name] then
if character.can_insert(stack) then
@@ -420,7 +421,7 @@ function update_player(index)
sent = 0
end
if sent > 0 then
player.print({"archipelago.receive-sample-item", sent, "[item=" .. name .. ",quality="..stack.quality.."]"})
player.print({"archipelago.receive-sample-item", sent, "[item=" .. name .. ",quality="..quality.."]"})
data.suppress_full_inventory_message = false
end
if sent ~= count then -- Couldn't full send.
@@ -434,7 +435,7 @@ function update_player(index)
samples[name] = nil -- Remove from the list
end
else
player.print({"archipelago.sample-inventory-full", count, name})
player.print({"archipelago.sample-error", count, name})
samples[name] = nil
end
end
@@ -842,7 +843,7 @@ commands.add_command("ap-deathlink", "Kill all players", function(call)
local force = game.forces["player"]
local source = call.parameter or "Archipelago"
kill_players(force)
game.print("Death was granted by " .. source)
game.print({"archipelago.death-link",source})
end)
commands.add_command("ap-energylink", "Used by the Archipelago client to manage Energy Link", function(call)