From 3fc4a23fa8af9bbc671e993afa65d4d4a3e59551 Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Wed, 18 Dec 2024 12:20:19 +0100 Subject: [PATCH] chore: corrected the various translations --- .../resources/[bpt_addons]/bpt_ammujob/client/main.lua | 8 ++++---- .../resources/[bpt_addons]/bpt_ammujob/locales/en.lua | 8 +------- .../resources/[bpt_addons]/bpt_ammujob/locales/it.lua | 8 +------- 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/server-data/resources/[bpt_addons]/bpt_ammujob/client/main.lua b/server-data/resources/[bpt_addons]/bpt_ammujob/client/main.lua index 707e7b1d..343a322c 100644 --- a/server-data/resources/[bpt_addons]/bpt_ammujob/client/main.lua +++ b/server-data/resources/[bpt_addons]/bpt_ammujob/client/main.lua @@ -44,7 +44,7 @@ function OpenAmmuActionsMenu() { icon = "fas fa-idkyet", title = TranslateCap("drag"), value = "drag" }, { icon = "fas fa-idkyet", title = TranslateCap("put_in_vehicle"), value = "put_in_vehicle" }, { icon = "fas fa-idkyet", title = TranslateCap("out_the_vehicle"), value = "out_the_vehicle" }, - { icon = "fas fa-idkyet", title = TranslateCap("fine"), value = "fine" }, + { icon = "fas fa-idkyet", title = TranslateCap("billing"), value = "billing" }, { icon = "fas fa-idkyet", title = TranslateCap("weapon"), value = "weapon" }, } @@ -76,7 +76,7 @@ function OpenAmmuActionsMenu() TriggerServerEvent("bpt_ammujob:putInVehicle", GetPlayerServerId(closestPlayer)) elseif action == "out_the_vehicle" then TriggerServerEvent("bpt_ammujob:OutVehicle", GetPlayerServerId(closestPlayer)) - elseif action == "fine" then + elseif action == "billing" then OpenFineMenu(closestPlayer) elseif action == "weapon" then TriggerServerEvent("esx_license:addLicense", GetPlayerServerId(closestPlayer), "weapon") @@ -190,7 +190,7 @@ end function OpenFineMenu(player) if Config.EnableFinePresets then local elements = { - { unselectable = true, icon = "fas fa-scroll", title = TranslateCap("fine") }, + { unselectable = true, icon = "fas fa-scroll", title = TranslateCap("billing") }, { icon = "fas fa-scroll", title = TranslateCap("traffic_offense"), value = 0 }, { icon = "fas fa-scroll", title = TranslateCap("minor_offense"), value = 1 }, { icon = "fas fa-scroll", title = TranslateCap("average_offense"), value = 2 }, @@ -221,7 +221,7 @@ function OpenFineCategoryMenu(player, category) end local elements = { - { unselectable = true, icon = "fas fa-scroll", title = TranslateCap("fine") }, + { unselectable = true, icon = "fas fa-scroll", title = TranslateCap("billing") }, } for _, fine in ipairs(fineList[category]) do diff --git a/server-data/resources/[bpt_addons]/bpt_ammujob/locales/en.lua b/server-data/resources/[bpt_addons]/bpt_ammujob/locales/en.lua index 8b908e24..aa430b39 100644 --- a/server-data/resources/[bpt_addons]/bpt_ammujob/locales/en.lua +++ b/server-data/resources/[bpt_addons]/bpt_ammujob/locales/en.lua @@ -35,13 +35,7 @@ Locales["en"] = { ["buy_car"] = "Buy", ["stop_view"] = "Stop Viewing", -- Service - ["service_max"] = "you cannot enter service, max officers in service: %s/%s", ["service_not"] = "you have not entered service! You'll have to get changed first.", - ["service_anonunce"] = "service information", - ["service_in"] = "you've entered service, welcome!", - ["service_in_announce"] = "operator %s has entered service!", - ["service_out"] = "you have left service.", - ["service_out_announce"] = "operator %s has left their service.", -- Action Menu ["menu_title"] = "Ammu", ["citizen_interaction"] = "citizen Interaction", @@ -51,7 +45,7 @@ Locales["en"] = { ["drag"] = "escort", ["put_in_vehicle"] = "put in Vehicle", ["out_the_vehicle"] = "drag out from vehicle", - ["fine"] = "fine", + ["billing"] = "billing", ["license_check"] = "manage license", ["no_players_nearby"] = "there is no player(s) nearby!", ["being_searched"] = "you are being searched by the Ammu", diff --git a/server-data/resources/[bpt_addons]/bpt_ammujob/locales/it.lua b/server-data/resources/[bpt_addons]/bpt_ammujob/locales/it.lua index a3409737..4be3e3cb 100644 --- a/server-data/resources/[bpt_addons]/bpt_ammujob/locales/it.lua +++ b/server-data/resources/[bpt_addons]/bpt_ammujob/locales/it.lua @@ -35,13 +35,7 @@ Locales["it"] = { ["buy_car"] = "Compra", ["stop_view"] = "Interrompi la visualizzazione", -- Servizio - ["service_max"] = "non puoi entrare in servizio, numero massimo di agenti in servizio: %s/%s", ["service_not"] = "non sei in servizio! Devi cambiarti prima.", - ["service_anonunce"] = "informazioni servizio", - ["service_in"] = "sei entrato in servizio, benvenuto!", - ["service_in_announce"] = "l'operatore %s รจ entrato in servizio!", - ["service_out"] = "hai lasciato il servizio.", - ["service_out_announce"] = "l'operatore %s ha lasciato il servizio.", -- Menu Azioni ["menu_title"] = "Armeria", ["citizen_interaction"] = "Interazione con cittadino", @@ -51,7 +45,7 @@ Locales["it"] = { ["drag"] = "scorta", ["put_in_vehicle"] = "metti in veicolo", ["out_the_vehicle"] = "trascina fuori dal veicolo", - ["fine"] = "multa", + ["billing"] = "Fattura", ["license_check"] = "gestisci licenze", ["no_players_nearby"] = "non ci sono giocatori nelle vicinanze!", ["being_searched"] = "perquisizione in corso",