Skip to content

Commit 8f70ea1

Browse files
authored
Merge pull request #121 from LiliaFramework/codex/localize-unlocalized-entries-in-.lua-files
Localize missing strings
2 parents 9a63752 + 7785540 commit 8f70ea1

File tree

27 files changed

+103
-35
lines changed

27 files changed

+103
-35
lines changed

advert/commands.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
syntax = "[string Message]",
55
desc = L("advertCommandDesc"),
66
onRun = function(client, arguments)
7-
if not arguments[1] then return "Invalid argument (#1)" end
7+
if not arguments[1] then return L("invalidArg") end
88
local message = table.concat(arguments, " ", 1)
99
if not client.advertdelay then client.advertdelay = 0 end
1010
if CurTime() < client.advertdelay then

advert/languages/english.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ LANGUAGE = {
44
AdvertDeductedMessage = "You paid %s%s for your advertisement.",
55
AdvertFormat = "[ADVERT] %s:",
66
AdvertInsufficientFunds = "You don't have enough money to advertise.",
7-
commandCooldownTimed = "Please wait %s seconds before advertising again."
7+
commandCooldownTimed = "Please wait %s seconds before advertising again.",
8+
advertLog = "%s advertised: %s"
89
}

advert/libraries/server.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
lia.log.addType("advert", function(client, msg)
2-
return string.format("%s advertised: %s", IsValid(client) and client:Name() or "Console", msg)
2+
local name = IsValid(client) and client:Name() or "Console"
3+
return L("advertLog", name, msg)
34
end, "Gameplay")

alcoholism/languages/english.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ LANGUAGE = {
55
drinkTip = "Consume this beverage.",
66
drunkness = "BAC",
77
generalinfo = "General Information",
8-
intoxicatedStatus = "Intoxicated"
8+
intoxicatedStatus = "Intoxicated",
9+
bacIncreaseLog = "%s BAC increased by %s to %s%%",
10+
bacResetLog = "%s became sober"
911
}

alcoholism/libraries/server.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,9 @@ function MODULE:PostPlayerLoadout(client)
6666
client:ResetBAC()
6767
end
6868

69-
lia.log.addType("bacIncrease", function(client, amt, newBac) return string.format("%s BAC increased by %s to %s%%", client:Name(), amt, newBac) end, "Gameplay")
70-
lia.log.addType("bacReset", function(client) return string.format("%s became sober", client:Name()) end, "Gameplay")
69+
lia.log.addType("bacIncrease", function(client, amt, newBac)
70+
return L("bacIncreaseLog", client:Name(), amt, newBac)
71+
end, "Gameplay")
72+
lia.log.addType("bacReset", function(client)
73+
return L("bacResetLog", client:Name())
74+
end, "Gameplay")

broadcasts/languages/english.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ LANGUAGE = {
1414
factionBroadcastTitle = "Send a broadcast to selected factions.",
1515
selectClassesPrompt = "Choose classes to send to:",
1616
selectFactionsPrompt = "Choose factions to send to:",
17+
classbroadcastLog = "%s sent class broadcast: %s",
18+
factionbroadcastLog = "%s sent faction broadcast: %s",
1719
}

broadcasts/libraries/server.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1-
lia.log.addType("classbroadcast", function(client, message) return string.format("%s sent class broadcast: %s", client:Name(), message) end, "Player")
2-
lia.log.addType("factionbroadcast", function(client, message) return string.format("%s sent faction broadcast: %s", client:Name(), message) end, "Player")
1+
lia.log.addType("classbroadcast", function(client, message)
2+
return L("classbroadcastLog", client:Name(), message)
3+
end, "Player")
4+
lia.log.addType("factionbroadcast", function(client, message)
5+
return L("factionbroadcastLog", client:Name(), message)
6+
end, "Player")

cigs/languages/english.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
NAME = "English"
2+
LANGUAGE = {
3+
smokeStartLog = "%s started smoking",
4+
smokeStopLog = "%s stopped smoking"
5+
}

cigs/libraries/server.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
lia.log.addType("smokeStart", function(client)
2-
return string.format("%s started smoking", client:Name())
2+
return L("smokeStartLog", client:Name())
33
end, "Gameplay")
44
lia.log.addType("smokeStop", function(client)
5-
return string.format("%s stopped smoking", client:Name())
5+
return L("smokeStopLog", client:Name())
66
end, "Gameplay")

compass/languages/english.lua

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
NAME = "English"
2+
LANGUAGE = {
3+
compassClientSettings = "Client Settings",
4+
compassEnabled = "Enabled",
5+
compassHeading = "Show Heading",
6+
compassStyle = "Style",
7+
compassXPosition = "X Position",
8+
compassYPosition = "Y Position",
9+
compassWidth = "Width",
10+
compassHeight = "Height",
11+
compassSpacing = "Spacing",
12+
compassRatio = "Ratio (font size)",
13+
compassSetColor = "Set Color",
14+
compassResetSettings = "Reset Settings",
15+
compassMaxPrefix = "Max :",
16+
compassMinPrefix = "Min :"
17+
}

0 commit comments

Comments
 (0)