From 10c314166345d0b4cd038aa3d034d2d555f00c77 Mon Sep 17 00:00:00 2001 From: Sigurd <81210348+SjurdVrancken@users.noreply.github.com> Date: Sat, 17 Aug 2024 12:57:42 +0200 Subject: [PATCH 1/2] feat(locales): add .nl locales --- locales/nl.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 locales/nl.lua diff --git a/locales/nl.lua b/locales/nl.lua new file mode 100644 index 0000000..f0761f8 --- /dev/null +++ b/locales/nl.lua @@ -0,0 +1,26 @@ +local Translations = { + error = { + minimum_store_robbery_police = "Er is niet genoeg politie, er zijn (%{MinimumStoreRobberyPolice} flikken nodig)", + not_driver = "Je bent geen chauffeur", + demolish_vehicle = "Je kunt nu geen voertuig kapot maken", + process_canceled = "Process gestopt..", + you_broke_the_lock_pick = "De lockpick is kapot gegaan, loserke", + }, + text = { + the_cash_register_is_empty = "De kassa is leeg", + try_combination = "~g~E~w~ - Probeer combinatie", + safe_opened = "De kluis is open!", + emptying_the_register= "Haalt alles leeg..", + safe_code = "Kluis Code: " + }, + email = { + shop_robbery = "SICAD101 | Winkeloverval", + someone_is_trying_to_rob_a_store = "Potentiele winkeloverval %{street} (CAMERA ID: %{cameraId1})", + storerobbery_progress = "Er is een winkeloverval bezig!" + }, +} + +Lang = Lang or Locale:new({ + phrases = Translations, + warnOnMissing = true +}) From 459408b52a4c9b929140d8c91423e6e2b6f4e820 Mon Sep 17 00:00:00 2001 From: Sigurd <81210348+SjurdVrancken@users.noreply.github.com> Date: Mon, 14 Oct 2024 21:35:40 +0200 Subject: [PATCH 2/2] fix(storerobbery): added missing if condition --- locales/nl.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/locales/nl.lua b/locales/nl.lua index f0761f8..6aeedbb 100644 --- a/locales/nl.lua +++ b/locales/nl.lua @@ -20,7 +20,11 @@ local Translations = { }, } -Lang = Lang or Locale:new({ - phrases = Translations, - warnOnMissing = true -}) +if GetConvar('qb_locale', 'en') == 'nl' then + Lang = Lang or Locale:new({ + phrases = Translations, + warnOnMissing = true, + fallbackLang = Lang, + }) +end +