Skip to content

Commit 6e3f93f

Browse files
authored
Merge pull request #129 from LiliaFramework/codex/fix-repeating-localization-entries-across-types
Prefix module localization keys with module name
2 parents 983d15b + 541653c commit 6e3f93f

File tree

208 files changed

+414
-414
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

208 files changed

+414
-414
lines changed

advert/commands.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
if not client.advertdelay then client.advertdelay = 0 end
1010
if CurTime() < client.advertdelay then
1111
local seconds = math.ceil(client.advertdelay - CurTime())
12-
client:notifyLocalized("commandCooldownTimed", seconds)
12+
client:notifyLocalized("advertCommandCooldownTimed", seconds)
1313
return
1414
end
1515

advert/languages/english.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
NAME = "English"
22
LANGUAGE = {
3-
moduleName = "Advertisements",
4-
moduleDesc = "Implements a paid /advert command for server-wide announcements. Messages are colored, logged, and throttled by a cooldown to curb spam.",
3+
advertModuleName = "Advertisements",
4+
advertModuleDesc = "Implements a paid /advert command for server-wide announcements. Messages are colored, logged, and throttled by a cooldown to curb spam.",
55
advertCommandDesc = "Broadcasts a paid advertisement to all players, charging you money and applying a cooldown.",
66
AdvertDeductedMessage = "You paid %s%s for your advertisement.",
77
AdvertFormat = "[ADVERT] %s:",
88
AdvertInsufficientFunds = "You don't have enough money to advertise.",
9-
commandCooldownTimed = "Please wait %s seconds before advertising again.",
9+
advertCommandCooldownTimed = "Please wait %s seconds before advertising again.",
1010
advertLog = "%s advertised: %s"
1111
}

advert/languages/french.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
NAME = "French"
22
LANGUAGE = {
3-
moduleName = "Publicité",
4-
moduleDesc = "Implémente une commande /advert payante pour les annonces sur tout le serveur. Les messages sont colorés, enregistrés et limités par un délai de récupération pour éviter le spam.",
3+
advertModuleName = "Publicité",
4+
advertModuleDesc = "Implémente une commande /advert payante pour les annonces sur tout le serveur. Les messages sont colorés, enregistrés et limités par un délai de récupération pour éviter le spam.",
55
advertCommandDesc = "Diffuse une publicité payante à tous les joueurs, vous coûte de l'argent et applique un délai de récupération.",
66
AdvertDeductedMessage = "Vous avez payé %s%s pour votre publicité.",
77
AdvertFormat = "[PUBLICITÉ] %s:",
88
AdvertInsufficientFunds = "Vous n'avez pas assez d'argent pour faire de la publicité.",
9-
commandCooldownTimed = "Veuillez attendre %s secondes avant de faire à nouveau de la publicité.",
9+
advertCommandCooldownTimed = "Veuillez attendre %s secondes avant de faire à nouveau de la publicité.",
1010
advertLog = "%s a fait de la publicité: %s"
1111
}

advert/languages/german.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
NAME = "German"
22
LANGUAGE = {
3-
moduleName = "Werbung",
4-
moduleDesc = "Implementiert einen kostenpflichtigen /advert Befehl für serverweite Ankündigungen. Nachrichten sind farbig, werden protokolliert und durch eine Abklingzeit gedrosselt, um Spam zu verhindern.",
3+
advertModuleName = "Werbung",
4+
advertModuleDesc = "Implementiert einen kostenpflichtigen /advert Befehl für serverweite Ankündigungen. Nachrichten sind farbig, werden protokolliert und durch eine Abklingzeit gedrosselt, um Spam zu verhindern.",
55
advertCommandDesc = "Sendet eine kostenpflichtige Werbung an alle Spieler, kostet Geld und aktiviert eine Abklingzeit.",
66
AdvertDeductedMessage = "Du hast %s%s für deine Werbung bezahlt.",
77
AdvertFormat = "[WERBUNG] %s:",
88
AdvertInsufficientFunds = "Du hast nicht genug Geld für Werbung.",
9-
commandCooldownTimed = "Bitte warte %s Sekunden bevor du wieder wirbst.",
9+
advertCommandCooldownTimed = "Bitte warte %s Sekunden bevor du wieder wirbst.",
1010
advertLog = "%s hat geworben: %s"
1111
}

advert/languages/italian.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
NAME = "Italian"
22
LANGUAGE = {
3-
moduleName = "Pubblicità",
4-
moduleDesc = "Implementa un comando /advert a pagamento per annunci server-wide. I messaggi sono colorati, registrati e limitati da un cooldown per prevenire lo spam.",
3+
advertModuleName = "Pubblicità",
4+
advertModuleDesc = "Implementa un comando /advert a pagamento per annunci server-wide. I messaggi sono colorati, registrati e limitati da un cooldown per prevenire lo spam.",
55
advertCommandDesc = "Trasmette una pubblicità a pagamento a tutti i giocatori, ti costa denaro e applica un cooldown.",
66
AdvertDeductedMessage = "Hai pagato %s%s per la tua pubblicità.",
77
AdvertFormat = "[PUBBLICITÀ] %s:",
88
AdvertInsufficientFunds = "Non hai abbastanza soldi per fare pubblicità.",
9-
commandCooldownTimed = "Attendi %s secondi prima di fare di nuovo pubblicità.",
9+
advertCommandCooldownTimed = "Attendi %s secondi prima di fare di nuovo pubblicità.",
1010
advertLog = "%s ha fatto pubblicità: %s"
1111
}

advert/languages/portuguese.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
NAME = "Portuguese"
22
LANGUAGE = {
3-
moduleName = "Publicidade",
4-
moduleDesc = "Implementa um comando /advert pago para anúncios em todo o servidor. As mensagens são coloridas, registadas e limitadas por um cooldown para evitar spam.",
3+
advertModuleName = "Publicidade",
4+
advertModuleDesc = "Implementa um comando /advert pago para anúncios em todo o servidor. As mensagens são coloridas, registadas e limitadas por um cooldown para evitar spam.",
55
advertCommandDesc = "Transmite um anúncio pago para todos os jogadores, custa-te dinheiro e aplica um cooldown.",
66
AdvertDeductedMessage = "Pagaste %s%s pelo teu anúncio.",
77
AdvertFormat = "[ANÚNCIO] %s:",
88
AdvertInsufficientFunds = "Não tens dinheiro suficiente para anunciar.",
9-
commandCooldownTimed = "Aguarda %s segundos antes de anunciar novamente.",
9+
advertCommandCooldownTimed = "Aguarda %s segundos antes de anunciar novamente.",
1010
advertLog = "%s anunciou: %s"
1111
}

advert/languages/russian.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
NAME = "Russian"
22
LANGUAGE = {
3-
moduleName = "Реклама",
4-
moduleDesc = "Реализует платную команду /advert для объявлений на всём сервере. Сообщения окрашены, записываются в логи и ограничены кулдауном для предотвращения спама.",
3+
advertModuleName = "Реклама",
4+
advertModuleDesc = "Реализует платную команду /advert для объявлений на всём сервере. Сообщения окрашены, записываются в логи и ограничены кулдауном для предотвращения спама.",
55
advertCommandDesc = "Транслирует платное объявление всем игрокам, стоит денег и применяет кулдаун.",
66
AdvertDeductedMessage = "Вы заплатили %s%s за ваше объявление.",
77
AdvertFormat = "[РЕКЛАМА] %s:",
88
AdvertInsufficientFunds = "У вас недостаточно денег для рекламы.",
9-
commandCooldownTimed = "Подождите %s секунд перед следующей рекламой.",
9+
advertCommandCooldownTimed = "Подождите %s секунд перед следующей рекламой.",
1010
advertLog = "%s разместил рекламу: %s"
1111
}

advert/languages/spanish.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
NAME = "Spanish"
22
LANGUAGE = {
3-
moduleName = "Publicidad",
4-
moduleDesc = "Implementa un comando /advert de pago para anuncios en todo el servidor. Los mensajes son coloreados, registrados y limitados por un tiempo de espera para evitar spam.",
3+
advertModuleName = "Publicidad",
4+
advertModuleDesc = "Implementa un comando /advert de pago para anuncios en todo el servidor. Los mensajes son coloreados, registrados y limitados por un tiempo de espera para evitar spam.",
55
advertCommandDesc = "Transmite un anuncio de pago a todos los jugadores, te cuesta dinero y aplica un tiempo de espera.",
66
AdvertDeductedMessage = "Has pagado %s%s por tu anuncio.",
77
AdvertFormat = "[ANUNCIO] %s:",
88
AdvertInsufficientFunds = "No tienes suficiente dinero para anunciar.",
9-
commandCooldownTimed = "Espera %s segundos antes de anunciar de nuevo.",
9+
advertCommandCooldownTimed = "Espera %s segundos antes de anunciar de nuevo.",
1010
advertLog = "%s anunció: %s"
1111
}

advert/module.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
MODULE.name = "moduleName"
1+
MODULE.name = "advertModuleName"
22
MODULE.author = "Samael"
33
MODULE.discord = "@liliaplayer"
44
MODULE.version = 1.19
5-
MODULE.desc = "moduleDesc"
5+
MODULE.desc = "advertModuleDesc"
66
MODULE.Public = true
77
MODULE.Features = {"Adds a paid /advert command players can use", "Adds a cooldown via AdvertCooldown to limit spam", "Adds colored broadcast messages across the server", "Adds price control via AdvertPrice configuration", "Adds notifications when players lack funds"}

alcoholism/languages/english.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
NAME = "English"
22
LANGUAGE = {
3-
moduleName = "Alcoholism",
4-
moduleDesc = "Adds drinkable alcohol that increases a player's intoxication level. High BAC blurs vision and slows movement until the effect wears off.",
3+
alcoholismModuleName = "Alcoholism",
4+
alcoholismModuleDesc = "Adds drinkable alcohol that increases a player's intoxication level. High BAC blurs vision and slows movement until the effect wears off.",
55
alcoholDesc = "An alcoholic drink with %s%% ABV.",
66
drinkAction = "Drink",
77
drinkTip = "Consume this beverage.",

0 commit comments

Comments
 (0)