From 9313ac2dea8a3cb60a2ca159b0313bea9c9b3fc7 Mon Sep 17 00:00:00 2001 From: Swellington Soares Date: Mon, 30 Sep 2024 07:27:00 -0300 Subject: [PATCH 1/2] remove old language module and add pt-br language --- client/main.lua | 46 +++++++++++++++++++++++----------------------- fxmanifest.lua | 7 ++----- locales/ar.json | 26 ++++++++++++++++++++++++++ locales/ar.lua | 34 ---------------------------------- locales/cs.json | 31 +++++++++++++++++++++++++++++++ locales/cs.lua | 40 ---------------------------------------- locales/da.json | 26 ++++++++++++++++++++++++++ locales/da.lua | 34 ---------------------------------- locales/de.json | 29 +++++++++++++++++++++++++++++ locales/de.lua | 37 ------------------------------------- locales/en.json | 30 ++++++++++++++++++++++++++++++ locales/en.lua | 35 ----------------------------------- locales/es.json | 31 +++++++++++++++++++++++++++++++ locales/es.lua | 39 --------------------------------------- locales/fa.json | 26 ++++++++++++++++++++++++++ locales/fa.lua | 34 ---------------------------------- locales/fi.json | 26 ++++++++++++++++++++++++++ locales/fi.lua | 34 ---------------------------------- locales/fr.json | 29 +++++++++++++++++++++++++++++ locales/fr.lua | 37 ------------------------------------- locales/it.json | 26 ++++++++++++++++++++++++++ locales/it.lua | 34 ---------------------------------- locales/nl.json | 26 ++++++++++++++++++++++++++ locales/nl.lua | 34 ---------------------------------- locales/pt-br.json | 30 ++++++++++++++++++++++++++++++ locales/pt.json | 26 ++++++++++++++++++++++++++ locales/pt.lua | 34 ---------------------------------- locales/sv.json | 26 ++++++++++++++++++++++++++ locales/sv.lua | 34 ---------------------------------- locales/th.json | 29 +++++++++++++++++++++++++++++ locales/th.lua | 37 ------------------------------------- locales/tr.json | 26 ++++++++++++++++++++++++++ locales/tr.lua | 34 ---------------------------------- 33 files changed, 468 insertions(+), 559 deletions(-) create mode 100644 locales/ar.json delete mode 100644 locales/ar.lua create mode 100644 locales/cs.json delete mode 100644 locales/cs.lua create mode 100644 locales/da.json delete mode 100644 locales/da.lua create mode 100644 locales/de.json delete mode 100644 locales/de.lua create mode 100644 locales/en.json delete mode 100644 locales/en.lua create mode 100644 locales/es.json delete mode 100644 locales/es.lua create mode 100644 locales/fa.json delete mode 100644 locales/fa.lua create mode 100644 locales/fi.json delete mode 100644 locales/fi.lua create mode 100644 locales/fr.json delete mode 100644 locales/fr.lua create mode 100644 locales/it.json delete mode 100644 locales/it.lua create mode 100644 locales/nl.json delete mode 100644 locales/nl.lua create mode 100644 locales/pt-br.json create mode 100644 locales/pt.json delete mode 100644 locales/pt.lua create mode 100644 locales/sv.json delete mode 100644 locales/sv.lua create mode 100644 locales/th.json delete mode 100644 locales/th.lua create mode 100644 locales/tr.json delete mode 100644 locales/tr.lua diff --git a/client/main.lua b/client/main.lua index 0b31959..add981c 100644 --- a/client/main.lua +++ b/client/main.lua @@ -105,7 +105,7 @@ local function getDeliveryLocation() if dist < 20 then DrawMarker(2, sharedConfig.npcLocations.deliverLocations[NpcData.CurrentDeliver].x, sharedConfig.npcLocations.deliverLocations[NpcData.CurrentDeliver].y, sharedConfig.npcLocations.deliverLocations[NpcData.CurrentDeliver].z, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3, 0.3, 0.3, 255, 255, 255, 255, false, false, 0, true, nil, nil, false) if dist < 5 then - qbx.drawText3d({text = Lang:t('info.drop_off_npc'), coords = sharedConfig.npcLocations.deliverLocations[NpcData.CurrentDeliver].xyz}) + qbx.drawText3d({text = locale('info.drop_off_npc'), coords = sharedConfig.npcLocations.deliverLocations[NpcData.CurrentDeliver].xyz}) if IsControlJustPressed(0, 38) then TaskLeaveVehicle(NpcData.Npc, cache.vehicle, 0) SetEntityAsMissionEntity(NpcData.Npc, false, true) @@ -120,7 +120,7 @@ local function getDeliveryLocation() SendNUIMessage({ action = 'resetMeter' }) - exports.qbx_core:Notify(Lang:t('info.person_was_dropped_off'), 'success') + exports.qbx_core:Notify(locale('info.person_was_dropped_off'), 'success') if NpcData.DeliveryBlip then RemoveBlip(NpcData.DeliveryBlip) end @@ -171,7 +171,7 @@ local function callNpcPoly() ClearPedTasksImmediately(NpcData.Npc) FreezeEntityPosition(NpcData.Npc, false) TaskEnterVehicle(NpcData.Npc, veh, -1, freeSeat, 1.0, 0) - exports.qbx_core:Notify(Lang:t('info.go_to_location'), 'inform') + exports.qbx_core:Notify(locale('info.go_to_location'), 'inform') if NpcData.NpcBlip then RemoveBlip(NpcData.NpcBlip) end @@ -190,7 +190,7 @@ end local function onEnterCallZone() if whitelistedVehicle() and not isInsidePickupZone and not NpcData.NpcTaken then isInsidePickupZone = true - lib.showTextUI(Lang:t('info.call_npc'), {position = 'left-center'}) + lib.showTextUI(locale('info.call_npc'), {position = 'left-center'}) callNpcPoly() end end @@ -277,7 +277,7 @@ end local function onEnterDropZone() if whitelistedVehicle() and not isInsideDropZone and NpcData.NpcTaken then isInsideDropZone = true - lib.showTextUI(Lang:t('info.drop_off_npc'), {position = 'left-center'}) + lib.showTextUI(locale('info.drop_off_npc'), {position = 'left-center'}) dropNpcPoly() end end @@ -321,7 +321,7 @@ function dropNpcPoly() SendNUIMessage({ action = 'resetMeter' }) - exports.qbx_core:Notify(Lang:t('info.person_was_dropped_off'), 'success') + exports.qbx_core:Notify(locale('info.person_was_dropped_off'), 'success') if NpcData.DeliveryBlip ~= nil then RemoveBlip(NpcData.DeliveryBlip) end @@ -351,14 +351,14 @@ local function setLocationsBlip() SetBlipAsShortRange(taxiBlip, true) SetBlipColour(taxiBlip, 5) BeginTextCommandSetBlipName('STRING') - AddTextComponentSubstringPlayerName(Lang:t('info.blip_name')) + AddTextComponentSubstringPlayerName(locale('info.blip_name')) EndTextCommandSetBlipName(taxiBlip) end local function taxiGarage() local registeredMenu = { id = 'garages_depotlist', - title = Lang:t('menu.taxi_menu_header'), + title = locale('menu.taxi_menu_header'), options = {} } local options = {} @@ -390,14 +390,14 @@ local function setupGarageZone() type = 'client', event = 'qb-taxijob:client:requestcab', icon = 'fa-solid fa-taxi', - label = Lang:t('info.request_taxi_target'), + label = locale('info.request_taxi_target'), job = 'taxi', } }) else local function onEnter() if not cache.vehicle then - lib.showTextUI(Lang:t('info.request_taxi')) + lib.showTextUI(locale('info.request_taxi')) end end @@ -447,12 +447,12 @@ function setupTaxiParkingZone() meterActive = false end DeleteVehicle(cache.vehicle) - exports.qbx_core:Notify(Lang:t('info.taxi_returned'), 'success') + exports.qbx_core:Notify(locale('info.taxi_returned'), 'success') end end end, onEnter = function() - lib.showTextUI(Lang:t('info.vehicle_parking')) + lib.showTextUI(locale('info.vehicle_parking')) end, onExit = function() lib.hideTextUI() @@ -478,10 +478,10 @@ RegisterNetEvent('qb-taxi:client:TakeVehicle', function(data) SetVehicleFuelLevel(veh, 100.0) SetVehicleEngineOn(veh, true, true, false) else - exports.qbx_core:Notify(Lang:t('info.no_spawn_point'), 'error') + exports.qbx_core:Notify(locale('info.no_spawn_point'), 'error') end else - exports.qbx_core:Notify(Lang:t('info.no_spawn_point'), 'error') + exports.qbx_core:Notify(locale('info.no_spawn_point'), 'error') return end end) @@ -508,7 +508,7 @@ RegisterNetEvent('qb-taxi:client:DoTaxiNpc', function() if NpcData.NpcBlip ~= nil then RemoveBlip(NpcData.NpcBlip) end - exports.qbx_core:Notify(Lang:t('info.npc_on_gps'), 'success') + exports.qbx_core:Notify(locale('info.npc_on_gps'), 'success') -- added checks to disable distance checking if polyzone option is used if config.useTarget then @@ -534,7 +534,7 @@ RegisterNetEvent('qb-taxi:client:DoTaxiNpc', function() DrawMarker(2, sharedConfig.npcLocations.takeLocations[NpcData.CurrentNpc].x, sharedConfig.npcLocations.takeLocations[NpcData.CurrentNpc].y, sharedConfig.npcLocations.takeLocations[NpcData.CurrentNpc].z, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3, 0.3, 0.3, 255, 255, 255, 255, false, false, 0, true, nil, nil, false) if dist < 5 then - qbx.drawText3d({text = Lang:t('info.call_npc'), coords = sharedConfig.npcLocations.takeLocations[NpcData.CurrentNpc].xyz}) + qbx.drawText3d({text = locale('info.call_npc'), coords = sharedConfig.npcLocations.takeLocations[NpcData.CurrentNpc].xyz}) if IsControlJustPressed(0, 38) then local maxSeats, freeSeat = GetVehicleMaxNumberOfPassengers(cache.vehicle), 0 @@ -559,7 +559,7 @@ RegisterNetEvent('qb-taxi:client:DoTaxiNpc', function() ClearPedTasksImmediately(NpcData.Npc) FreezeEntityPosition(NpcData.Npc, false) TaskEnterVehicle(NpcData.Npc, cache.vehicle, -1, freeSeat, 1.0, 0) - exports.qbx_core:Notify(Lang:t('info.go_to_location'), 'inform') + exports.qbx_core:Notify(locale('info.go_to_location'), 'inform') if NpcData.NpcBlip ~= nil then RemoveBlip(NpcData.NpcBlip) end @@ -574,10 +574,10 @@ RegisterNetEvent('qb-taxi:client:DoTaxiNpc', function() end) end else - exports.qbx_core:Notify(Lang:t('error.already_mission'), 'error') + exports.qbx_core:Notify(locale('error.already_mission'), 'error') end else - exports.qbx_core:Notify(Lang:t('error.not_in_taxi'), 'error') + exports.qbx_core:Notify(locale('error.not_in_taxi'), 'error') end end) @@ -599,10 +599,10 @@ RegisterNetEvent('qb-taxi:client:toggleMeter', function() meterIsOpen = false end else - exports.qbx_core:Notify(Lang:t('error.missing_meter'), 'error') + exports.qbx_core:Notify(locale('error.missing_meter'), 'error') end else - exports.qbx_core:Notify(Lang:t('error.no_vehicle'), 'error') + exports.qbx_core:Notify(locale('error.no_vehicle'), 'error') end end) @@ -612,7 +612,7 @@ RegisterNetEvent('qb-taxi:client:enableMeter', function() action = 'toggleMeter' }) else - exports.qbx_core:Notify(Lang:t('error.not_active_meter'), 'error') + exports.qbx_core:Notify(locale('error.not_active_meter'), 'error') end end) @@ -624,7 +624,7 @@ RegisterNetEvent('qb-taxi:client:toggleMuis', function() mouseActive = true end else - exports.qbx_core:Notify(Lang:t('error.no_meter_sight'), 'error') + exports.qbx_core:Notify(locale('error.no_meter_sight'), 'error') end end) diff --git a/fxmanifest.lua b/fxmanifest.lua index d41aeb0..260163a 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -7,10 +7,7 @@ version '1.0.0' shared_scripts { '@ox_lib/init.lua', - '@qbx_core/modules/lib.lua', - '@qbx_core/shared/locale.lua', - 'locales/en.lua', - 'locales/*.lua' + '@qbx_core/modules/lib.lua' } client_script { @@ -35,5 +32,5 @@ files { provide 'qb-taxijob' lua54 'yes' use_experimental_fxv2_oal 'yes' - +ox_lib 'locale' dependency 'qbx_core' \ No newline at end of file diff --git a/locales/ar.json b/locales/ar.json new file mode 100644 index 0000000..ad41635 --- /dev/null +++ b/locales/ar.json @@ -0,0 +1,26 @@ +{ + "error": { + "already_mission": "أنت تقوم بالفعل بمهمة نقل السكان الاصلين", + "not_in_taxi": "أنت لست في سيارة أجرة", + "missing_meter": "هذه السيارة لا تحتوي على عداد سيارات الأجرة", + "no_vehicle": "أنت لست في سيارة", + "not_active_meter": "عداد سيارة الأجرة غير نشط", + "no_meter_sight": "لا يوجد عداد سيارات الأجرة في الأفق" + }, + "success": {}, + "info": { + "person_was_dropped_off": "تم إنزال الشخص", + "npc_on_gps": "تم الاشاة لك في الخريطة عن المكان", + "go_to_location": "إحضار إلى الموقع المحدد", + "vehicle_parking": "[~g~E~w~] - ﺕﺍﺭﺍﻳﺳﻟﺍ ﺝﺍﺭﻏ", + "job_vehicles": "[~g~E~w~] - ﻞﻤﻌﻟﺍ ﺝﺍﺭﻏ", + "drop_off_npc": "[~g~E~w~] - ﺎﻨﻠﺻﻭ", + "call_npc": "[~g~E~w~] - ﺐﻛﺭﺍ", + "blip_name": "ﻲﺴﻛﺎﺘﻟﺍ ﺰﻛﺮﻣ", + "taxi_label_1": "تاكسي" + }, + "menu": { + "taxi_menu_header": "سيارات التاكسي", + "close_menu": "⬅ إغلاق" + } +} diff --git a/locales/ar.lua b/locales/ar.lua deleted file mode 100644 index 016349d..0000000 --- a/locales/ar.lua +++ /dev/null @@ -1,34 +0,0 @@ -local Translations = { - error = { - ["already_mission"] = "أنت تقوم بالفعل بمهمة نقل السكان الاصلين", - ["not_in_taxi"] = "أنت لست في سيارة أجرة", - ["missing_meter"] = "هذه السيارة لا تحتوي على عداد سيارات الأجرة", - ["no_vehicle"] = "أنت لست في سيارة", - ["not_active_meter"] = "عداد سيارة الأجرة غير نشط", - ["no_meter_sight"] = "لا يوجد عداد سيارات الأجرة في الأفق", - }, - success = {}, - info = { - ["person_was_dropped_off"] = "تم إنزال الشخص", - ["npc_on_gps"] = "تم الاشاة لك في الخريطة عن المكان", - ["go_to_location"] = "إحضار إلى الموقع المحدد", - ["vehicle_parking"] = "[~g~E~w~] - ﺕﺍﺭﺎﻴﺴﻟﺍ ﺝﺍﺮﻏ", - ["job_vehicles"] = "[~g~E~w~] - ﻞﻤﻌﻟﺍ ﺝﺍﺮﻏ", - ["drop_off_npc"] = "[~g~E~w~] - ﺎﻨﻠﺻﻭ", - ["call_npc"] = "[~g~E~w~] - ﺐﻛﺭﺍ", - ["blip_name"] = "ﻲﺴﻛﺎﺘﻟﺍ ﺰﻛﺮﻣ", - ["taxi_label_1"] = "تاكسي", - }, - menu = { - ["taxi_menu_header"] = "سيارات التاكسي", - ["close_menu"] = "⬅ إغلاق", - } -} - -if GetConvar('qb_locale', 'en') == 'ar' then - Lang = Locale:new({ - phrases = Translations, - warnOnMissing = true, - fallbackLang = Lang, - }) -end diff --git a/locales/cs.json b/locales/cs.json new file mode 100644 index 0000000..5323a04 --- /dev/null +++ b/locales/cs.json @@ -0,0 +1,31 @@ +{ + "error": { + "already_mission": "Již provádíš NPC misi", + "not_in_taxi": "Nejsi v taxíku", + "missing_meter": "Toto vozidlo nemá taxametr", + "no_vehicle": "Nejsi v vozidle", + "not_active_meter": "Taxametr není aktivní", + "no_meter_sight": "Žádný taxametr není v dohledu" + }, + "success": [], + "info": { + "person_was_dropped_off": "Osoba byla vysazena!", + "npc_on_gps": "NPC je označeno na tvém GPS", + "go_to_location": "Doveď NPC na určené místo", + "vehicle_parking": "[E] Parkování vozidla", + "job_vehicles": "[E] Pracovní vozidla", + "drop_off_npc": "[E] Vysadit NPC", + "call_npc": "[E] Zavolat NPC", + "blip_name": "Downtown Cab", + "taxi_label_1": "Standardní taxi", + "no_spawn_point": "Nepodařilo se najít místo pro zaparkování taxíku", + "taxi_returned": "Taxík zaparkován", + "request_taxi": "🚕 Objednat taxík", + "take_vehicle": "Vezmi naše " + }, + "menu": { + "taxi_menu_header": "Taxi vozidla", + "close_menu": "⬅ Zavřít menu", + "boss_menu": "Menu šéfa" + } +} \ No newline at end of file diff --git a/locales/cs.lua b/locales/cs.lua deleted file mode 100644 index 12510ca..0000000 --- a/locales/cs.lua +++ /dev/null @@ -1,40 +0,0 @@ -local Translations = { - error = { - ["already_mission"] = "Již provádíš NPC misi", - ["not_in_taxi"] = "Nejsi v taxíku", - ["missing_meter"] = "Toto vozidlo nemá taxametr", - ["no_vehicle"] = "Nejsi v vozidle", - ["not_active_meter"] = "Taxametr není aktivní", - ["no_meter_sight"] = "Žádný taxametr není v dohledu", - }, - success = {}, - info = { - ["person_was_dropped_off"] = "Osoba byla vysazena!", - ["npc_on_gps"] = "NPC je označeno na tvém GPS", - ["go_to_location"] = "Doveď NPC na určené místo", - ["vehicle_parking"] = "[E] Parkování vozidla", - ["job_vehicles"] = "[E] Pracovní vozidla", - ["drop_off_npc"] = "[E] Vysadit NPC", - ["call_npc"] = "[E] Zavolat NPC", - ["blip_name"] = "Downtown Cab", - ["taxi_label_1"] = "Standardní taxi", - ["no_spawn_point"] = "Nepodařilo se najít místo pro zaparkování taxíku", - ["taxi_returned"] = "Taxík zaparkován", - ["request_taxi"] = "🚕 Objednat taxík", - ["take_vehicle"] = "Vezmi naše " - }, - menu = { - ["taxi_menu_header"] = "Taxi vozidla", - ["close_menu"] = "⬅ Zavřít menu", - ['boss_menu'] = "Menu šéfa" - } -} - -if GetConvar('qb_locale', 'en') == 'cs' then - Lang = Locale:new({ - phrases = Translations, - warnOnMissing = true, - fallbackLang = Lang, - }) -end ---translate by stepan_valic \ No newline at end of file diff --git a/locales/da.json b/locales/da.json new file mode 100644 index 0000000..0edd71f --- /dev/null +++ b/locales/da.json @@ -0,0 +1,26 @@ +{ + "error": { + "already_mission": "Du laver allerede en NPC Mission", + "not_in_taxi": "Du er ikke i en taxa", + "missing_meter": "Dette køretøj har intet taxameter", + "no_vehicle": "Du er ikke i et køretøj", + "not_active_meter": "Taxameteret er ikke aktivt", + "no_meter_sight": "Intet taxameter at se" + }, + "success": [], + "info": { + "person_was_dropped_off": "Personen blev sat af!", + "npc_on_gps": "En NPC er markeret på din GPS", + "go_to_location": "Kør en NPC til lokationen", + "vehicle_parking": "[E] Køretøjs parkering", + "job_vehicles": "[E] Job køretøjer", + "drop_off_npc": "[E] Sæt NPC af", + "call_npc": "[E] Kald en NPC", + "blip_name": "Midtby taxa", + "taxi_label_1": "Standart taxa" + }, + "menu": { + "taxi_menu_header": "Taxa køretøjer", + "close_menu": "⬅ Luk menuen" + } +} \ No newline at end of file diff --git a/locales/da.lua b/locales/da.lua deleted file mode 100644 index 0a34cf2..0000000 --- a/locales/da.lua +++ /dev/null @@ -1,34 +0,0 @@ -local Translations = { - error = { - ["already_mission"] = "Du laver allerede en NPC Mission", - ["not_in_taxi"] = "Du er ikke i en taxa", - ["missing_meter"] = "Dette køretøj har intet taxameter", - ["no_vehicle"] = "Du er ikke i et køretøj", - ["not_active_meter"] = "Taxameteret er ikke aktivt", - ["no_meter_sight"] = "Intet taxameter at se", - }, - success = {}, - info = { - ["person_was_dropped_off"] = "Personen blev sat af!", - ["npc_on_gps"] = "En NPC er markeret på din GPS", - ["go_to_location"] = "Kør en NPC til lokationen", - ["vehicle_parking"] = "[E] Køretøjs parkering", - ["job_vehicles"] = "[E] Job køretøjer", - ["drop_off_npc"] = "[E] Sæt NPC af", - ["call_npc"] = "[E] Kald en NPC", - ["blip_name"] = "Midtby taxa", - ["taxi_label_1"] = "Standart taxa", - }, - menu = { - ["taxi_menu_header"] = "Taxa køretøjer", - ["close_menu"] = "⬅ Luk menuen", - } -} - -if GetConvar('qb_locale', 'en') == 'da' then - Lang = Locale:new({ - phrases = Translations, - warnOnMissing = true, - fallbackLang = Lang, - }) -end diff --git a/locales/de.json b/locales/de.json new file mode 100644 index 0000000..37b977f --- /dev/null +++ b/locales/de.json @@ -0,0 +1,29 @@ +{ + "error": { + "already_mission": "Du bist bereits in einer NPC-Mission", + "not_in_taxi": "Sie sind nicht in einem Taxi", + "missing_meter": "Dieses Fahrzeug hat keine Taxameter", + "no_vehicle": "Sie sind nicht in einem Fahrzeug", + "not_active_meter": "Das Taxameter ist nicht aktiv", + "no_meter_sight": "Kein Taxameter in Sicht" + }, + "success": [], + "info": { + "person_was_dropped_off": "Person wurde abgesetzt!", + "npc_on_gps": "Der NPC wird auf Ihrem GPS angezeigt", + "go_to_location": "Den NPC an den angegebenen Ort bringen", + "vehicle_parking": "[E] Fahrzeug parken", + "job_vehicles": "[E] Arbeitsfahrzeug", + "drop_off_npc": "[E] NPC absetzen", + "call_npc": "[E] NPC anrufen", + "blip_name": "Taxigesellschaft", + "taxi_label_1": "Standard Taxi", + "no_spawn_point": "Unfähig, einen Ort zu finden, an den das Taxi gebracht werden kann", + "taxi_returned": "Taxi einparken" + }, + "menu": { + "taxi_menu_header": "Taxifahrzeuge", + "close_menu": "⬅ Schließe Menü", + "boss_menu": "Boss Menu" + } +} \ No newline at end of file diff --git a/locales/de.lua b/locales/de.lua deleted file mode 100644 index b9fe81a..0000000 --- a/locales/de.lua +++ /dev/null @@ -1,37 +0,0 @@ -local Translations = { - error = { - ["already_mission"] = "Du bist bereits in einer NPC-Mission", - ["not_in_taxi"] = "Sie sind nicht in einem Taxi", - ["missing_meter"] = "Dieses Fahrzeug hat keine Taxameter", - ["no_vehicle"] = "Sie sind nicht in einem Fahrzeug", - ["not_active_meter"] = "Das Taxameter ist nicht aktiv", - ["no_meter_sight"] = "Kein Taxameter in Sicht", - }, - success = {}, - info = { - ["person_was_dropped_off"] = "Person wurde abgesetzt!", - ["npc_on_gps"] = "Der NPC wird auf Ihrem GPS angezeigt", - ["go_to_location"] = "Den NPC an den angegebenen Ort bringen", - ["vehicle_parking"] = "[E] Fahrzeug parken", - ["job_vehicles"] = "[E] Arbeitsfahrzeug", - ["drop_off_npc"] = "[E] NPC absetzen", - ["call_npc"] = "[E] NPC anrufen", - ["blip_name"] = "Taxigesellschaft", - ["taxi_label_1"] = "Standard Taxi", - ["no_spawn_point"] = "Unfähig, einen Ort zu finden, an den das Taxi gebracht werden kann", - ["taxi_returned"] = "Taxi einparken" - }, - menu = { - ["taxi_menu_header"] = "Taxifahrzeuge", - ["close_menu"] = "⬅ Schließe Menü", - ['boss_menu'] = "Boss Menu" - } -} - -if GetConvar('qb_locale', 'en') == 'de' then - Lang = Locale:new({ - phrases = Translations, - warnOnMissing = true, - fallbackLang = Lang, - }) -end diff --git a/locales/en.json b/locales/en.json new file mode 100644 index 0000000..0cd45d0 --- /dev/null +++ b/locales/en.json @@ -0,0 +1,30 @@ +{ + "error": { + "already_mission": "You Are Already Doing An NPC Mission", + "not_in_taxi": "You Are Not In A Taxi", + "missing_meter": "This Vehicle Has No Taxi Meter", + "no_vehicle": "You're not in a vehicle", + "not_active_meter": "The Taxi Meter Is Not Active", + "no_meter_sight": "No Taxi Meter In Sight" + }, + "success": [], + "info": { + "person_was_dropped_off": "Person Was Dropped Off!", + "npc_on_gps": "The NPC Is Indicated On Your GPS", + "go_to_location": "Bring The NPC To The Specified Location", + "vehicle_parking": "[E] - Vehicle Parking", + "job_vehicles": "[E] - Job Vehicles", + "drop_off_npc": "[E] - Drop Off NPC", + "call_npc": "[E] - Call NPC", + "blip_name": "Downtown Cab", + "taxi_label_1": "Standard Cab", + "no_spawn_point": "Unable to find a location to bring the cab", + "taxi_returned": "Cab Parked", + "request_taxi": "[E] - Request Taxi Cab", + "request_taxi_target": "Request Taxi Cab" + }, + "menu": { + "taxi_menu_header": "Taxi Vehicles", + "close_menu": "⬅ Close Menu" + } +} \ No newline at end of file diff --git a/locales/en.lua b/locales/en.lua deleted file mode 100644 index 42dbaad..0000000 --- a/locales/en.lua +++ /dev/null @@ -1,35 +0,0 @@ -local Translations = { - error = { - already_mission = 'You Are Already Doing An NPC Mission', - not_in_taxi = 'You Are Not In A Taxi', - missing_meter = 'This Vehicle Has No Taxi Meter', - no_vehicle = 'You\'re not in a vehicle', - not_active_meter = 'The Taxi Meter Is Not Active', - no_meter_sight = 'No Taxi Meter In Sight', - }, - success = {}, - info = { - person_was_dropped_off = 'Person Was Dropped Off!', - npc_on_gps = 'The NPC Is Indicated On Your GPS', - go_to_location = 'Bring The NPC To The Specified Location', - vehicle_parking = '[E] - Vehicle Parking', - job_vehicles = '[E] - Job Vehicles', - drop_off_npc = '[E] - Drop Off NPC', - call_npc = '[E] - Call NPC', - blip_name = 'Downtown Cab', - taxi_label_1 = 'Standard Cab', - no_spawn_point = 'Unable to find a location to bring the cab', - taxi_returned = 'Cab Parked', - request_taxi = '[E] - Request Taxi Cab', - request_taxi_target = 'Request Taxi Cab', - }, - menu = { - taxi_menu_header = 'Taxi Vehicles', - close_menu = '⬅ Close Menu', - } -} - -Lang = Lang or Locale:new({ - phrases = Translations, - warnOnMissing = true -}) \ No newline at end of file diff --git a/locales/es.json b/locales/es.json new file mode 100644 index 0000000..de343a2 --- /dev/null +++ b/locales/es.json @@ -0,0 +1,31 @@ +{ + "error": { + "already_mission": "Ya estás haciendo una misión con un NPC", + "not_in_taxi": "No estás en un taxi", + "missing_meter": "Este vehículo no tiene taxímetro", + "no_vehicle": "No estás en un vehículo", + "not_active_meter": "El taxímetro no está activo", + "no_meter_sight": "No hay taxímetro visible" + }, + "success": [], + "info": { + "person_was_dropped_off": "La persona se bajó del taxi", + "npc_on_gps": "El NPC está indicado en tu GPS", + "go_to_location": "Lleva el NPC a la ubicación específicada", + "vehicle_parking": "[E] - Estacionar vehículo", + "job_vehicles": "[E] - Vehículos de trabajo", + "drop_off_npc": "[E] - Bajar NPC", + "call_npc": "[E] - Llamar NPC", + "blip_name": "Central de taxis", + "taxi_label_1": "Taxi estándar", + "no_spawn_point": "No es posible encontrar una ubicación para traer el taxi", + "taxi_returned": "Taxi estacionado", + "request_taxi": "🚕 Solicitar taxi", + "take_vehicle": "Sacar nuestro %{model}" + }, + "menu": { + "taxi_menu_header": "Vehículos para taxi", + "close_menu": "⬅ Cerrar menú", + "boss_menu": "Menú de jefe" + } +} \ No newline at end of file diff --git a/locales/es.lua b/locales/es.lua deleted file mode 100644 index da8a8af..0000000 --- a/locales/es.lua +++ /dev/null @@ -1,39 +0,0 @@ -local Translations = { - error = { - ["already_mission"] = "Ya estás haciendo una misión con un NPC", - ["not_in_taxi"] = "No estás en un taxi", - ["missing_meter"] = "Este vehículo no tiene taxímetro", - ["no_vehicle"] = "No estás en un vehículo", - ["not_active_meter"] = "El taxímetro no está activo", - ["no_meter_sight"] = "No hay taxímetro visible", - }, - success = {}, - info = { - ["person_was_dropped_off"] = "La persona se bajó del taxi", - ["npc_on_gps"] = "El NPC está indicado en tu GPS", - ["go_to_location"] = "Lleva el NPC a la ubicación específicada", - ["vehicle_parking"] = "[E] - Estacionar vehículo", - ["job_vehicles"] = "[E] - Vehículos de trabajo", - ["drop_off_npc"] = "[E] - Bajar NPC", - ["call_npc"] = "[E] - Llamar NPC", - ["blip_name"] = "Central de taxis", - ["taxi_label_1"] = "Taxi estándar", - ["no_spawn_point"] = "No es posible encontrar una ubicación para traer el taxi", - ["taxi_returned"] = "Taxi estacionado", - ["request_taxi"] = "🚕 Solicitar taxi", - ["take_vehicle"] = "Sacar nuestro %{model}" - }, - menu = { - ["taxi_menu_header"] = "Vehículos para taxi", - ["close_menu"] = "⬅ Cerrar menú", - ['boss_menu'] = "Menú de jefe" - } -} - -if GetConvar('qb_locale', 'en') == 'es' then - Lang = Locale:new({ - phrases = Translations, - warnOnMissing = true, - fallbackLang = Lang, - }) -end diff --git a/locales/fa.json b/locales/fa.json new file mode 100644 index 0000000..c91dbe1 --- /dev/null +++ b/locales/fa.json @@ -0,0 +1,26 @@ +{ + "error": { + "already_mission": "Shoma Ham Aknun Dar Mamuriyat NPC Hastid", + "not_in_taxi": "Shoma Dar Taxi Nistid", + "missing_meter": "Dar In Vasile Nagliye Taxi Meter Mojud Nist", + "no_vehicle": "Shoma Dar Vasile Nagliye Nist", + "not_active_meter": "Taxi Meter Faal Nist", + "no_meter_sight": "Taxi Meter Dar Maraze Did Nist" + }, + "success": [], + "info": { + "person_was_dropped_off": "Mosafer Piyade Shod!", + "npc_on_gps": "NPC Dar GPS Shoma Neshan Dade Shode Ast", + "go_to_location": "NPC ra be Mogeiyat Moshakhs Shode Bebarid", + "vehicle_parking": "[E] Park Kardan Vasile Nagliye", + "job_vehicles": "[E] Vasayele Nagliye Shoghl", + "drop_off_npc": "[E] Piyade Kardane NPC", + "call_npc": "[E] Darkhast NPC", + "blip_name": "Downtown Cab", + "taxi_label_1": "Taxi Mamuli" + }, + "menu": { + "taxi_menu_header": "List Mashin heye Taxi", + "close_menu": "⬅ Bastan Menu" + } +} \ No newline at end of file diff --git a/locales/fa.lua b/locales/fa.lua deleted file mode 100644 index b5dcf40..0000000 --- a/locales/fa.lua +++ /dev/null @@ -1,34 +0,0 @@ -local Translations = { - error = { - ["already_mission"] = "Shoma Ham Aknun Dar Mamuriyat NPC Hastid", - ["not_in_taxi"] = "Shoma Dar Taxi Nistid", - ["missing_meter"] = "Dar In Vasile Nagliye Taxi Meter Mojud Nist", - ["no_vehicle"] = "Shoma Dar Vasile Nagliye Nist", - ["not_active_meter"] = "Taxi Meter Faal Nist", - ["no_meter_sight"] = "Taxi Meter Dar Maraze Did Nist", - }, - success = {}, - info = { - ["person_was_dropped_off"] = "Mosafer Piyade Shod!", - ["npc_on_gps"] = "NPC Dar GPS Shoma Neshan Dade Shode Ast", - ["go_to_location"] = "NPC ra be Mogeiyat Moshakhs Shode Bebarid", - ["vehicle_parking"] = "[E] Park Kardan Vasile Nagliye", - ["job_vehicles"] = "[E] Vasayele Nagliye Shoghl", - ["drop_off_npc"] = "[E] Piyade Kardane NPC", - ["call_npc"] = "[E] Darkhast NPC", - ["blip_name"] = "Downtown Cab", - ["taxi_label_1"] = "Taxi Mamuli", - }, - menu = { - ["taxi_menu_header"] = "List Mashin heye Taxi", - ["close_menu"] = "⬅ Bastan Menu", - } -} - -if GetConvar('qb_locale', 'en') == 'fa' then - Lang = Locale:new({ - phrases = Translations, - warnOnMissing = true, - fallbackLang = Lang, - }) -end diff --git a/locales/fi.json b/locales/fi.json new file mode 100644 index 0000000..7b7b1f9 --- /dev/null +++ b/locales/fi.json @@ -0,0 +1,26 @@ +{ + "error": { + "already_mission": "Olet jo tekemässä NPC keikkaa!", + "not_in_taxi": "Et ole taksissa!", + "missing_meter": "Ajoneuvossa ei ole taksimittaria", + "no_vehicle": "Et ole ajoneuvossa!", + "not_active_meter": "Taksimittari ei ole aktiivinen", + "no_meter_sight": "Ei taksimittaria nähtävissä" + }, + "success": [], + "info": { + "person_was_dropped_off": "Jätit matkustajan pois!", + "npc_on_gps": "Matkustajan sijainti näkyy GPS:ssäsi", + "go_to_location": "Vie matkustaja määränpäähän", + "vehicle_parking": "[E] Talleta ajoneuvo", + "job_vehicles": "[E] Ajoneuvot", + "drop_off_npc": "[E] Jätä matkustaja", + "call_npc": "[E] Soita NPC:lle", + "blip_name": "Taksi", + "taxi_label_1": "Taksi" + }, + "menu": { + "taxi_menu_header": "Taksit", + "close_menu": "⬅ Sulje valikko" + } +} \ No newline at end of file diff --git a/locales/fi.lua b/locales/fi.lua deleted file mode 100644 index 6c2f208..0000000 --- a/locales/fi.lua +++ /dev/null @@ -1,34 +0,0 @@ -local Translations = { - error = { - ["already_mission"] = "Olet jo tekemässä NPC keikkaa!", - ["not_in_taxi"] = "Et ole taksissa!", - ["missing_meter"] = "Ajoneuvossa ei ole taksimittaria", - ["no_vehicle"] = "Et ole ajoneuvossa!", - ["not_active_meter"] = "Taksimittari ei ole aktiivinen", - ["no_meter_sight"] = "Ei taksimittaria nähtävissä", - }, - success = {}, - info = { - ["person_was_dropped_off"] = "Jätit matkustajan pois!", - ["npc_on_gps"] = "Matkustajan sijainti näkyy GPS:ssäsi", - ["go_to_location"] = "Vie matkustaja määränpäähän", - ["vehicle_parking"] = "[E] Talleta ajoneuvo", - ["job_vehicles"] = "[E] Ajoneuvot", - ["drop_off_npc"] = "[E] Jätä matkustaja", - ["call_npc"] = "[E] Soita NPC:lle", - ["blip_name"] = "Taksi", - ["taxi_label_1"] = "Taksi", - }, - menu = { - ["taxi_menu_header"] = "Taksit", - ["close_menu"] = "⬅ Sulje valikko", - } -} - -if GetConvar('qb_locale', 'en') == 'fi' then - Lang = Locale:new({ - phrases = Translations, - warnOnMissing = true, - fallbackLang = Lang, - }) -end diff --git a/locales/fr.json b/locales/fr.json new file mode 100644 index 0000000..be74cfa --- /dev/null +++ b/locales/fr.json @@ -0,0 +1,29 @@ +{ + "error": { + "already_mission": "Vous êtes déjà en mission", + "not_in_taxi": "Vous n'êtes pas dans un taxi", + "missing_meter": "Ce véhicule n'a pas de taximètre", + "no_vehicle": "Vous n'êtes pas dans un véhicule", + "not_active_meter": "Le taximètre n'est pas activé", + "no_meter_sight": "Pas de taximètre en vue" + }, + "success": [], + "info": { + "person_was_dropped_off": "La personne a été déposée!", + "npc_on_gps": "Le client est indiqué sur votre GPS!", + "go_to_location": "Amenez le client à la destination spécifiée", + "vehicle_parking": "[E] Parking", + "job_vehicles": "[E] Vehicules disponibles", + "drop_off_npc": "[E] Déposer le client", + "call_npc": "[E] Appeler le client", + "blip_name": "Downtown Cab Co.", + "taxi_label_1": "Taxi Standard", + "no_spawn_point": "Impossible de trouver un emplacement pour amener le taxi", + "taxi_returned": "Taxi Garé" + }, + "menu": { + "taxi_menu_header": "Taxi", + "close_menu": "⬅ Fermer le menu", + "boss_menu": "Menu Boss" + } +} \ No newline at end of file diff --git a/locales/fr.lua b/locales/fr.lua deleted file mode 100644 index 6e3af35..0000000 --- a/locales/fr.lua +++ /dev/null @@ -1,37 +0,0 @@ -local Translations = { - error = { - ["already_mission"] = "Vous êtes déjà en mission", - ["not_in_taxi"] = "Vous n\'êtes pas dans un taxi", - ["missing_meter"] = "Ce véhicule n'a pas de taximètre", - ["no_vehicle"] = "Vous n\'êtes pas dans un véhicule", - ["not_active_meter"] = "Le taximètre n\'est pas activé", - ["no_meter_sight"] = "Pas de taximètre en vue", - }, - success = {}, - info = { - ["person_was_dropped_off"] = "La personne a été déposée!", - ["npc_on_gps"] = "Le client est indiqué sur votre GPS!", - ["go_to_location"] = "Amenez le client à la destination spécifiée", - ["vehicle_parking"] = "[E] Parking", - ["job_vehicles"] = "[E] Vehicules disponibles", - ["drop_off_npc"] = "[E] Déposer le client", - ["call_npc"] = "[E] Appeler le client", - ["blip_name"] = "Downtown Cab Co.", - ["taxi_label_1"] = "Taxi Standard", - ["no_spawn_point"] = "Impossible de trouver un emplacement pour amener le taxi", - ["taxi_returned"] = "Taxi Garé" - }, - menu = { - ["taxi_menu_header"] = "Taxi", - ["close_menu"] = "⬅ Fermer le menu", - ['boss_menu'] = "Menu Boss" - } -} - -if GetConvar('qb_locale', 'en') == 'fr' then - Lang = Locale:new({ - phrases = Translations, - warnOnMissing = true, - fallbackLang = Lang, - }) -end diff --git a/locales/it.json b/locales/it.json new file mode 100644 index 0000000..88ef8ce --- /dev/null +++ b/locales/it.json @@ -0,0 +1,26 @@ +{ + "error": { + "already_mission": "Stai già facendo una missione di un NPC", + "not_in_taxi": "Non sei in un taxi", + "missing_meter": "Questo veicolo non ha un tassametro", + "no_vehicle": "Non sei in un veicolo", + "not_active_meter": "Il tassametro non è acceso", + "no_meter_sight": "Nessun tassametro visibile" + }, + "success": [], + "info": { + "person_was_dropped_off": "La persona è stata lasciata! ", + "npc_on_gps": "L'NPC è stato segnato sul GPS", + "go_to_location": "Porta l'NPC nella posizione specificata", + "vehicle_parking": "[E] Parcheggio Veicoli", + "job_vehicles": "[E] Veicoli Lavorativi", + "drop_off_npc": "[E] Lascia NPC", + "call_npc": "[E] Chiama NPC", + "blip_name": "Taxi", + "taxi_label_1": "Standard Cab" + }, + "menu": { + "taxi_menu_header": "Veicoli Taxi", + "close_menu": "⬅ Chiudi Menu" + } +} \ No newline at end of file diff --git a/locales/it.lua b/locales/it.lua deleted file mode 100644 index b19b860..0000000 --- a/locales/it.lua +++ /dev/null @@ -1,34 +0,0 @@ -local Translations = { - error = { - ["already_mission"] = "Stai già facendo una missione di un NPC", - ["not_in_taxi"] = "Non sei in un taxi", - ["missing_meter"] = "Questo veicolo non ha un tassametro", - ["no_vehicle"] = "Non sei in un veicolo", - ["not_active_meter"] = "Il tassametro non è acceso", - ["no_meter_sight"] = "Nessun tassametro visibile", - }, - success = {}, - info = { - ["person_was_dropped_off"] = "La persona è stata lasciata! ", - ["npc_on_gps"] = "L'NPC è stato segnato sul GPS", - ["go_to_location"] = "Porta l'NPC nella posizione specificata", - ["vehicle_parking"] = "[E] Parcheggio Veicoli", - ["job_vehicles"] = "[E] Veicoli Lavorativi", - ["drop_off_npc"] = "[E] Lascia NPC", - ["call_npc"] = "[E] Chiama NPC", - ["blip_name"] = "Taxi", - ["taxi_label_1"] = "Standard Cab", - }, - menu = { - ["taxi_menu_header"] = "Veicoli Taxi", - ["close_menu"] = "⬅ Chiudi Menu", - } -} - -if GetConvar('qb_locale', 'en') == 'it' then - Lang = Locale:new({ - phrases = Translations, - warnOnMissing = true, - fallbackLang = Lang, - }) -end \ No newline at end of file diff --git a/locales/nl.json b/locales/nl.json new file mode 100644 index 0000000..16b60c2 --- /dev/null +++ b/locales/nl.json @@ -0,0 +1,26 @@ +{ + "error": { + "already_mission": "Je doet al een NPC-missie", + "not_in_taxi": "Je zit niet in een taxi", + "missing_meter": "Dit voertuig heeft geen taximeter", + "no_vehicle": "Je zit niet in een voertuig", + "not_active_meter": "De taximeter is niet actief", + "no_meter_sight": "Geen taximeter in zicht" + }, + "success": [], + "info": { + "person_was_dropped_off": "Persoon is afgezet!", + "npc_on_gps": "De NPC wordt op je GPS aangegeven", + "go_to_location": "Breng de NPC naar de opgegeven locatie", + "vehicle_parking": "[E] Voertuig parkeren", + "job_vehicles": "[E] Werkvoertuigen", + "drop_off_npc": "[E] NPC Afzetten", + "call_npc": "[E] NPC Roepen", + "blip_name": "Downtown Cab", + "taxi_label_1": "Standaard Cab" + }, + "menu": { + "taxi_menu_header": "Taxi Voertuigen", + "close_menu": "⬅ Menu Sluiten" + } +} \ No newline at end of file diff --git a/locales/nl.lua b/locales/nl.lua deleted file mode 100644 index 830e364..0000000 --- a/locales/nl.lua +++ /dev/null @@ -1,34 +0,0 @@ -local Translations = { - error = { - ["already_mission"] = "Je doet al een NPC-missie", - ["not_in_taxi"] = "Je zit niet in een taxi", - ["missing_meter"] = "Dit voertuig heeft geen taximeter", - ["no_vehicle"] = "Je zit niet in een voertuig", - ["not_active_meter"] = "De taximeter is niet actief", - ["no_meter_sight"] = "Geen taximeter in zicht", - }, - success = {}, - info = { - ["person_was_dropped_off"] = "Persoon is afgezet!", - ["npc_on_gps"] = "De NPC wordt op je GPS aangegeven", - ["go_to_location"] = "Breng de NPC naar de opgegeven locatie", - ["vehicle_parking"] = "[E] Voertuig parkeren", - ["job_vehicles"] = "[E] Werkvoertuigen", - ["drop_off_npc"] = "[E] NPC Afzetten", - ["call_npc"] = "[E] NPC Roepen", - ["blip_name"] = "Downtown Cab", - ["taxi_label_1"] = "Standaard Cab", - }, - menu = { - ["taxi_menu_header"] = "Taxi Voertuigen", - ["close_menu"] = "⬅ Menu Sluiten", - } -} - -if GetConvar('qb_locale', 'en') == 'nl' then - Lang = Locale:new({ - phrases = Translations, - warnOnMissing = true, - fallbackLang = Lang, - }) -end \ No newline at end of file diff --git a/locales/pt-br.json b/locales/pt-br.json new file mode 100644 index 0000000..06b27db --- /dev/null +++ b/locales/pt-br.json @@ -0,0 +1,30 @@ +{ + "error": { + "already_mission": "Você já está fazendo uma missão de NPC", + "not_in_taxi": "Você não está em um táxi", + "missing_meter": "Este veículo não tem taxímetro", + "no_vehicle": "Você não está em um veículo", + "not_active_meter": "O taxímetro não está ativo", + "no_meter_sight": "Nenhum taxímetro à vista" + }, + "success": [], + "info": { + "person_was_dropped_off": "Pessoa foi deixada!", + "npc_on_gps": "O NPC está indicado no seu GPS", + "go_to_location": "Leve o NPC para o local especificado", + "vehicle_parking": "[E] - Estacionar Veículo", + "job_vehicles": "[E] - Veículos do Trabalho", + "drop_off_npc": "[E] - Deixar NPC", + "call_npc": "[E] - Chamar NPC", + "blip_name": "Downtown Cab", + "taxi_label_1": "Táxi Padrão", + "no_spawn_point": "Não foi possível encontrar um local para trazer o táxi", + "taxi_returned": "Táxi Estacionado", + "request_taxi": "[E] - Solicitar Táxi", + "request_taxi_target": "Solicitar Táxi" + }, + "menu": { + "taxi_menu_header": "Veículos de Táxi", + "close_menu": "⬅ Fechar Menu" + } +} diff --git a/locales/pt.json b/locales/pt.json new file mode 100644 index 0000000..f98632d --- /dev/null +++ b/locales/pt.json @@ -0,0 +1,26 @@ +{ + "error": { + "already_mission": "Já te encontrar a efectuar uma missão NPC", + "not_in_taxi": "Não estás num Taxi", + "missing_meter": "Este veículo não possui um taxímetro", + "no_vehicle": "Não estás num veículo", + "not_active_meter": "O taxímetro não se encontra activo", + "no_meter_sight": "Nenhum taxímetro à vista" + }, + "success": [], + "info": { + "person_was_dropped_off": "O passageiro foi entregue!", + "npc_on_gps": "O NPC encontra-se indicado no teu GPS", + "go_to_location": "Transporta o NPC para a localização assinalada", + "vehicle_parking": "[E] Estacionamento de Veículo", + "job_vehicles": "[E] Veículos de Trabalho", + "drop_off_npc": "[E] Entregar NPC", + "call_npc": "[E] Chamar NPC", + "blip_name": "Taxis da Baixa", + "taxi_label_1": "Taxi" + }, + "menu": { + "taxi_menu_header": "Veículos de Taxi", + "close_menu": "⬅ Fechar Menu" + } +} \ No newline at end of file diff --git a/locales/pt.lua b/locales/pt.lua deleted file mode 100644 index 889b660..0000000 --- a/locales/pt.lua +++ /dev/null @@ -1,34 +0,0 @@ -local Translations = { - error = { - ["already_mission"] = "Já te encontrar a efectuar uma missão NPC", - ["not_in_taxi"] = "Não estás num Taxi", - ["missing_meter"] = "Este veículo não possui um taxímetro", - ["no_vehicle"] = "Não estás num veículo", - ["not_active_meter"] = "O taxímetro não se encontra activo", - ["no_meter_sight"] = "Nenhum taxímetro à vista", - }, - success = {}, - info = { - ["person_was_dropped_off"] = "O passageiro foi entregue!", - ["npc_on_gps"] = "O NPC encontra-se indicado no teu GPS", - ["go_to_location"] = "Transporta o NPC para a localização assinalada", - ["vehicle_parking"] = "[E] Estacionamento de Veículo", - ["job_vehicles"] = "[E] Veículos de Trabalho", - ["drop_off_npc"] = "[E] Entregar NPC", - ["call_npc"] = "[E] Chamar NPC", - ["blip_name"] = "Taxis da Baixa", - ["taxi_label_1"] = "Taxi", - }, - menu = { - ["taxi_menu_header"] = "Veículos de Taxi", - ["close_menu"] = "⬅ Fechar Menu", - } -} - -if GetConvar('qb_locale', 'en') == 'pt' then - Lang = Locale:new({ - phrases = Translations, - warnOnMissing = true, - fallbackLang = Lang, - }) -end \ No newline at end of file diff --git a/locales/sv.json b/locales/sv.json new file mode 100644 index 0000000..7a94e17 --- /dev/null +++ b/locales/sv.json @@ -0,0 +1,26 @@ +{ + "error": { + "already_mission": "Du gör redan ett NPC-uppdrag", + "not_in_taxi": "Du är inte i en taxi", + "missing_meter": "Det här fordonet har ingen taxameter", + "no_vehicle": "Du är inte i ett fordon", + "not_active_meter": "Taxametern är inte aktiv", + "no_meter_sight": "Ingen Taxameter i sikte" + }, + "success": [], + "info": { + "person_was_dropped_off": "Passageraren släpptes av!", + "npc_on_gps": "NPC'n syns på din GPS", + "go_to_location": "Skjutsa NPC'n till den utsatta platsen", + "vehicle_parking": "[E] Fordonsparkering", + "job_vehicles": "[E] Arbetsfordon", + "drop_off_npc": "[E] Släpp av NPC", + "call_npc": "[E] Ropa på NPC", + "blip_name": "Taxi", + "taxi_label_1": "Standard-bil" + }, + "menu": { + "taxi_menu_header": "Taxibilar", + "close_menu": "⬅ Stäng meny" + } +} \ No newline at end of file diff --git a/locales/sv.lua b/locales/sv.lua deleted file mode 100644 index 4af3ff1..0000000 --- a/locales/sv.lua +++ /dev/null @@ -1,34 +0,0 @@ -local Translations = { - error = { - ["already_mission"] = "Du gör redan ett NPC-uppdrag", - ["not_in_taxi"] = "Du är inte i en taxi", - ["missing_meter"] = "Det här fordonet har ingen taxameter", - ["no_vehicle"] = "Du är inte i ett fordon", - ["not_active_meter"] = "Taxametern är inte aktiv", - ["no_meter_sight"] = "Ingen Taxameter i sikte", - }, - success = {}, - info = { - ["person_was_dropped_off"] = "Passageraren släpptes av!", - ["npc_on_gps"] = "NPC'n syns på din GPS", - ["go_to_location"] = "Skjutsa NPC'n till den utsatta platsen", - ["vehicle_parking"] = "[E] Fordonsparkering", - ["job_vehicles"] = "[E] Arbetsfordon", - ["drop_off_npc"] = "[E] Släpp av NPC", - ["call_npc"] = "[E] Ropa på NPC", - ["blip_name"] = "Taxi", - ["taxi_label_1"] = "Standard-bil", - }, - menu = { - ["taxi_menu_header"] = "Taxibilar", - ["close_menu"] = "⬅ Stäng meny", - } -} - -if GetConvar('qb_locale', 'en') == 'sv' then - Lang = Locale:new({ - phrases = Translations, - warnOnMissing = true, - fallbackLang = Lang, - }) -end diff --git a/locales/th.json b/locales/th.json new file mode 100644 index 0000000..8b42735 --- /dev/null +++ b/locales/th.json @@ -0,0 +1,29 @@ +{ + "error": { + "already_mission": "คุณกำลังทำภารกิจจาก NPC อยู่แล้ว", + "not_in_taxi": "คุณไม่ได้อยู่ในรถแท็กซี่", + "missing_meter": "รถคันนี้ไม่มีมิเตอร์แท็กซี่", + "no_vehicle": "คุณไม่ได้อยู่ในยานพาหนะ", + "not_active_meter": "มิเตอร์แท็กซี่ไม่ทำงาน", + "no_meter_sight": "ไม่มีมิเตอร์แท็กซี่ในระยะสายตา" + }, + "success": [], + "info": { + "person_was_dropped_off": "ปล่อยคนลง", + "npc_on_gps": "มีการระบุ NPC บน GPS ของคุณ", + "go_to_location": "นำ NPC ไปยังตำแหน่งที่กำหนด", + "vehicle_parking": "กด [E] เพื่อจอดรถ", + "job_vehicles": "กด [E] เพื่อใช้รถทำงาน", + "drop_off_npc": "กด [E] เพื่อปล่อย NPC ลง", + "call_npc": "กด [E] เรียก NPC", + "blip_name": "ดาวน์ทาวน์แค็บ", + "taxi_label_1": "แท็กซี่มาตรฐาน", + "no_spawn_point": "หาสถานที่ไปเอารถแท็กซี่ไม่ได้", + "taxi_returned": "ที่จอดแท็กซี่" + }, + "menu": { + "taxi_menu_header": "รถแท็กซี่", + "close_menu": "⬅ ปิดเมนู", + "boss_menu": "เมนูผู้นำ" + } +} \ No newline at end of file diff --git a/locales/th.lua b/locales/th.lua deleted file mode 100644 index 254be25..0000000 --- a/locales/th.lua +++ /dev/null @@ -1,37 +0,0 @@ -local Translations = { - error = { - ["already_mission"] = "คุณกำลังทำภารกิจจาก NPC อยู่แล้ว", - ["not_in_taxi"] = "คุณไม่ได้อยู่ในรถแท็กซี่", - ["missing_meter"] = "รถคันนี้ไม่มีมิเตอร์แท็กซี่", - ["no_vehicle"] = "คุณไม่ได้อยู่ในยานพาหนะ", - ["not_active_meter"] = "มิเตอร์แท็กซี่ไม่ทำงาน", - ["no_meter_sight"] = "ไม่มีมิเตอร์แท็กซี่ในระยะสายตา", - }, - success = {}, - info = { - ["person_was_dropped_off"] = "ปล่อยคนลง", - ["npc_on_gps"] = "มีการระบุ NPC บน GPS ของคุณ", - ["go_to_location"] = "นำ NPC ไปยังตำแหน่งที่กำหนด", - ["vehicle_parking"] = "กด [E] เพื่อจอดรถ", - ["job_vehicles"] = "กด [E] เพื่อใช้รถทำงาน", - ["drop_off_npc"] = "กด [E] เพื่อปล่อย NPC ลง", - ["call_npc"] = "กด [E] เรียก NPC", - ["blip_name"] = "ดาวน์ทาวน์แค็บ", - ["taxi_label_1"] = "แท็กซี่มาตรฐาน", - ["no_spawn_point"] = "หาสถานที่ไปเอารถแท็กซี่ไม่ได้", - ["taxi_returned"] = "ที่จอดแท็กซี่" - }, - menu = { - ["taxi_menu_header"] = "รถแท็กซี่", - ["close_menu"] = "⬅ ปิดเมนู", - ['boss_menu'] = "เมนูผู้นำ" - } -} - -if GetConvar('qb_locale', 'en') == 'th' then - Lang = Locale:new({ - phrases = Translations, - warnOnMissing = true, - fallbackLang = Lang, - }) -end \ No newline at end of file diff --git a/locales/tr.json b/locales/tr.json new file mode 100644 index 0000000..419c38a --- /dev/null +++ b/locales/tr.json @@ -0,0 +1,26 @@ +{ + "error": { + "already_mission": "Zaten Bir NPC Görevi Yapıyorsunuz", + "not_in_taxi": "Takside Değilsin", + "missing_meter": "Bu Aracın Taksimetresi Yok", + "no_vehicle": "Bir araçta değilsin", + "not_active_meter": "Taksimetre Aktif Değil", + "no_meter_sight": "Görünürde Taksimetre Yok" + }, + "success": [], + "info": { + "person_was_dropped_off": "Kişi Bırakıldı!", + "npc_on_gps": "NPC, GPS'inizde Belirtildi", + "go_to_location": "NPC'yi Belirtilen Yere Götürün", + "vehicle_parking": "[E] Araç Otoparkı", + "job_vehicles": "[E] İş Araçları", + "drop_off_npc": "[E] NPC'yi Bırak", + "call_npc": "[E] NPC'yi Çağır", + "blip_name": "Downtown Cab", + "taxi_label_1": "Standart Cab" + }, + "menu": { + "taxi_menu_header": "Taksi Araçları", + "close_menu": "⬅ Menüyü Kapat" + } +} \ No newline at end of file diff --git a/locales/tr.lua b/locales/tr.lua deleted file mode 100644 index f1748b4..0000000 --- a/locales/tr.lua +++ /dev/null @@ -1,34 +0,0 @@ -local Translations = { - error = { - ["already_mission"] = "Zaten Bir NPC Görevi Yapıyorsunuz", - ["not_in_taxi"] = "Takside Değilsin", - ["missing_meter"] = "Bu Aracın Taksimetresi Yok", - ["no_vehicle"] = "Bir araçta değilsin", - ["not_active_meter"] = "Taksimetre Aktif Değil", - ["no_meter_sight"] = "Görünürde Taksimetre Yok", - }, - success = {}, - info = { - ["person_was_dropped_off"] = "Kişi Bırakıldı!", - ["npc_on_gps"] = "NPC, GPS'inizde Belirtildi", - ["go_to_location"] = "NPC'yi Belirtilen Yere Götürün", - ["vehicle_parking"] = "[E] Araç Otoparkı", - ["job_vehicles"] = "[E] İş Araçları", - ["drop_off_npc"] = "[E] NPC'yi Bırak", - ["call_npc"] = "[E] NPC'yi Çağır", - ["blip_name"] = "Downtown Cab", - ["taxi_label_1"] = "Standart Cab", - }, - menu = { - ["taxi_menu_header"] = "Taksi Araçları", - ["close_menu"] = "⬅ Menüyü Kapat", - } -} - -if GetConvar('qb_locale', 'en') == 'tr' then - Lang = Locale:new({ - phrases = Translations, - warnOnMissing = true, - fallbackLang = Lang, - }) -end \ No newline at end of file From 19e54b8ebe7c8a63bdc2f06c2eaa6892d24485e4 Mon Sep 17 00:00:00 2001 From: Swellington Soares Date: Wed, 2 Oct 2024 20:01:55 -0300 Subject: [PATCH 2/2] fix language load in client side --- config/client.lua | 2 +- fxmanifest.lua | 3 ++- locales/cs.json | 2 +- locales/da.json | 2 +- locales/de.json | 2 +- locales/en.json | 2 +- locales/es.json | 2 +- locales/fa.json | 2 +- locales/fi.json | 2 +- locales/fr.json | 2 +- locales/it.json | 2 +- locales/nl.json | 2 +- locales/pt-br.json | 2 +- locales/pt.json | 2 +- locales/sv.json | 2 +- locales/th.json | 2 +- locales/tr.json | 2 +- 17 files changed, 18 insertions(+), 17 deletions(-) diff --git a/config/client.lua b/config/client.lua index e0a86d1..9cb6acb 100644 --- a/config/client.lua +++ b/config/client.lua @@ -3,7 +3,7 @@ return { debugPoly = false, useBlips = true, allowedVehicles = { - { model = 'taxi', label = Lang:t('info.taxi_label_1') } + { model = 'taxi', label = locale('info.taxi_label_1') } }, meter = { defaultPrice = 125.0, -- price per mile diff --git a/fxmanifest.lua b/fxmanifest.lua index 260163a..2b47675 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -26,7 +26,8 @@ files { 'html/reset.css', 'html/g5-meter.png', 'config/client.lua', - 'config/shared.lua' + 'config/shared.lua', + 'locales/*.json' } provide 'qb-taxijob' diff --git a/locales/cs.json b/locales/cs.json index 5323a04..e58fccd 100644 --- a/locales/cs.json +++ b/locales/cs.json @@ -7,7 +7,7 @@ "not_active_meter": "Taxametr není aktivní", "no_meter_sight": "Žádný taxametr není v dohledu" }, - "success": [], + "success": {}, "info": { "person_was_dropped_off": "Osoba byla vysazena!", "npc_on_gps": "NPC je označeno na tvém GPS", diff --git a/locales/da.json b/locales/da.json index 0edd71f..92402da 100644 --- a/locales/da.json +++ b/locales/da.json @@ -7,7 +7,7 @@ "not_active_meter": "Taxameteret er ikke aktivt", "no_meter_sight": "Intet taxameter at se" }, - "success": [], + "success": {}, "info": { "person_was_dropped_off": "Personen blev sat af!", "npc_on_gps": "En NPC er markeret på din GPS", diff --git a/locales/de.json b/locales/de.json index 37b977f..aadebee 100644 --- a/locales/de.json +++ b/locales/de.json @@ -7,7 +7,7 @@ "not_active_meter": "Das Taxameter ist nicht aktiv", "no_meter_sight": "Kein Taxameter in Sicht" }, - "success": [], + "success": {}, "info": { "person_was_dropped_off": "Person wurde abgesetzt!", "npc_on_gps": "Der NPC wird auf Ihrem GPS angezeigt", diff --git a/locales/en.json b/locales/en.json index 0cd45d0..6d5fe17 100644 --- a/locales/en.json +++ b/locales/en.json @@ -7,7 +7,7 @@ "not_active_meter": "The Taxi Meter Is Not Active", "no_meter_sight": "No Taxi Meter In Sight" }, - "success": [], + "success": {}, "info": { "person_was_dropped_off": "Person Was Dropped Off!", "npc_on_gps": "The NPC Is Indicated On Your GPS", diff --git a/locales/es.json b/locales/es.json index de343a2..9c7ef04 100644 --- a/locales/es.json +++ b/locales/es.json @@ -7,7 +7,7 @@ "not_active_meter": "El taxímetro no está activo", "no_meter_sight": "No hay taxímetro visible" }, - "success": [], + "success": {}, "info": { "person_was_dropped_off": "La persona se bajó del taxi", "npc_on_gps": "El NPC está indicado en tu GPS", diff --git a/locales/fa.json b/locales/fa.json index c91dbe1..5ab3fd2 100644 --- a/locales/fa.json +++ b/locales/fa.json @@ -7,7 +7,7 @@ "not_active_meter": "Taxi Meter Faal Nist", "no_meter_sight": "Taxi Meter Dar Maraze Did Nist" }, - "success": [], + "success": {}, "info": { "person_was_dropped_off": "Mosafer Piyade Shod!", "npc_on_gps": "NPC Dar GPS Shoma Neshan Dade Shode Ast", diff --git a/locales/fi.json b/locales/fi.json index 7b7b1f9..5c36329 100644 --- a/locales/fi.json +++ b/locales/fi.json @@ -7,7 +7,7 @@ "not_active_meter": "Taksimittari ei ole aktiivinen", "no_meter_sight": "Ei taksimittaria nähtävissä" }, - "success": [], + "success": {}, "info": { "person_was_dropped_off": "Jätit matkustajan pois!", "npc_on_gps": "Matkustajan sijainti näkyy GPS:ssäsi", diff --git a/locales/fr.json b/locales/fr.json index be74cfa..fc5a5d6 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -7,7 +7,7 @@ "not_active_meter": "Le taximètre n'est pas activé", "no_meter_sight": "Pas de taximètre en vue" }, - "success": [], + "success": {}, "info": { "person_was_dropped_off": "La personne a été déposée!", "npc_on_gps": "Le client est indiqué sur votre GPS!", diff --git a/locales/it.json b/locales/it.json index 88ef8ce..f1090b0 100644 --- a/locales/it.json +++ b/locales/it.json @@ -7,7 +7,7 @@ "not_active_meter": "Il tassametro non è acceso", "no_meter_sight": "Nessun tassametro visibile" }, - "success": [], + "success": {}, "info": { "person_was_dropped_off": "La persona è stata lasciata! ", "npc_on_gps": "L'NPC è stato segnato sul GPS", diff --git a/locales/nl.json b/locales/nl.json index 16b60c2..f7767bb 100644 --- a/locales/nl.json +++ b/locales/nl.json @@ -7,7 +7,7 @@ "not_active_meter": "De taximeter is niet actief", "no_meter_sight": "Geen taximeter in zicht" }, - "success": [], + "success": {}, "info": { "person_was_dropped_off": "Persoon is afgezet!", "npc_on_gps": "De NPC wordt op je GPS aangegeven", diff --git a/locales/pt-br.json b/locales/pt-br.json index 06b27db..977646b 100644 --- a/locales/pt-br.json +++ b/locales/pt-br.json @@ -7,7 +7,7 @@ "not_active_meter": "O taxímetro não está ativo", "no_meter_sight": "Nenhum taxímetro à vista" }, - "success": [], + "success": {}, "info": { "person_was_dropped_off": "Pessoa foi deixada!", "npc_on_gps": "O NPC está indicado no seu GPS", diff --git a/locales/pt.json b/locales/pt.json index f98632d..545e6d6 100644 --- a/locales/pt.json +++ b/locales/pt.json @@ -7,7 +7,7 @@ "not_active_meter": "O taxímetro não se encontra activo", "no_meter_sight": "Nenhum taxímetro à vista" }, - "success": [], + "success": {}, "info": { "person_was_dropped_off": "O passageiro foi entregue!", "npc_on_gps": "O NPC encontra-se indicado no teu GPS", diff --git a/locales/sv.json b/locales/sv.json index 7a94e17..4bc9d20 100644 --- a/locales/sv.json +++ b/locales/sv.json @@ -7,7 +7,7 @@ "not_active_meter": "Taxametern är inte aktiv", "no_meter_sight": "Ingen Taxameter i sikte" }, - "success": [], + "success": {}, "info": { "person_was_dropped_off": "Passageraren släpptes av!", "npc_on_gps": "NPC'n syns på din GPS", diff --git a/locales/th.json b/locales/th.json index 8b42735..d6a5ff9 100644 --- a/locales/th.json +++ b/locales/th.json @@ -7,7 +7,7 @@ "not_active_meter": "มิเตอร์แท็กซี่ไม่ทำงาน", "no_meter_sight": "ไม่มีมิเตอร์แท็กซี่ในระยะสายตา" }, - "success": [], + "success": {}, "info": { "person_was_dropped_off": "ปล่อยคนลง", "npc_on_gps": "มีการระบุ NPC บน GPS ของคุณ", diff --git a/locales/tr.json b/locales/tr.json index 419c38a..917975d 100644 --- a/locales/tr.json +++ b/locales/tr.json @@ -7,7 +7,7 @@ "not_active_meter": "Taksimetre Aktif Değil", "no_meter_sight": "Görünürde Taksimetre Yok" }, - "success": [], + "success": {}, "info": { "person_was_dropped_off": "Kişi Bırakıldı!", "npc_on_gps": "NPC, GPS'inizde Belirtildi",