From a75b94f9cad6ad13a048ff1ea690da15e619415d Mon Sep 17 00:00:00 2001 From: Sigurd <81210348+SjurdVrancken@users.noreply.github.com> Date: Sat, 17 Aug 2024 12:38:13 +0200 Subject: [PATCH 1/2] feat(banking): add .nl locales --- locales/nl.lua | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 locales/nl.lua diff --git a/locales/nl.lua b/locales/nl.lua new file mode 100644 index 0000000..f604a50 --- /dev/null +++ b/locales/nl.lua @@ -0,0 +1,36 @@ +local Translations = { + success = { + withdraw = 'Sucessvol opgenomen', + deposit = 'Succesvol gestort', + transfer = 'Succesvol overgeschreven', + account = 'Account aangemaakt', + rename = 'Naamaanpassing is gelukt', + delete = 'Account verwijderd', + userAdd = 'Account aangemaakt', + userRemove = 'Account verwijderd', + card = 'Kaart aangemaakt', + give = '€%s cash gegeven', + receive = '€%s cash ontvangen', + }, + error = { + error = 'Er is error opgedoken', + access = 'Je bent niet gemachtigd', + account = 'Account niet gevonden', + accounts = 'Maximum aantal account gemaakt', + user = 'Account reeds toegevoegd', + noUser = 'Account niet gevonden', + money = 'Je hebt niet genoeg geld', + pin = 'Foutieve pincode', + card = 'Geen bankkaart gevonden', + amount = 'Foute hoeveelheid', + toofar = 'Je bent te ver weg', + }, + progress = { + atm = 'ATM gebruiken', + } +} + +Lang = Lang or Locale:new({ + phrases = Translations, + warnOnMissing = true +}) From 27ef6dcb592fe7afea6e6440988e335545455152 Mon Sep 17 00:00:00 2001 From: Sigurd <81210348+SjurdVrancken@users.noreply.github.com> Date: Mon, 14 Oct 2024 21:35:33 +0200 Subject: [PATCH 2/2] fix(banking): added missing if condition --- locales/nl.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/locales/nl.lua b/locales/nl.lua index f604a50..351b5bb 100644 --- a/locales/nl.lua +++ b/locales/nl.lua @@ -30,7 +30,10 @@ 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