From f8604c092a7baa56a06f80e855cd3e9b2c453de4 Mon Sep 17 00:00:00 2001 From: Cocodrulo <142546774+Cocodrulo@users.noreply.github.com> Date: Wed, 13 Nov 2024 22:59:21 +0000 Subject: [PATCH 1/2] Remove weird space --- locales/en.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/locales/en.lua b/locales/en.lua index 0ed85ef..8f61359 100644 --- a/locales/en.lua +++ b/locales/en.lua @@ -2,7 +2,6 @@ local Translations = { error = { invalid_ext = "Thats not a valid extension, only", allowed_ext = "extension links are allowed.", - }, info = { use_printer = "Use Printer" From d550d836c86118f969a9fb124c4dd4745ae9c43d Mon Sep 17 00:00:00 2001 From: Cocodrulo <142546774+Cocodrulo@users.noreply.github.com> Date: Wed, 13 Nov 2024 22:59:32 +0000 Subject: [PATCH 2/2] Add Spanish translations --- locales/es.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 locales/es.lua diff --git a/locales/es.lua b/locales/es.lua new file mode 100644 index 0000000..754cc8e --- /dev/null +++ b/locales/es.lua @@ -0,0 +1,21 @@ +local Translations = { + error = { + invalid_ext = "Esa extensión no es válida, sólo", + allowed_ext = "son las extensiones de enlaces permitidas.", + }, + info = { + use_printer = "Usar impresora" + + }, + command = { + spawn_printer = "Generar una impresora" + } +} + +if GetConvar('qb_locale', 'en') == 'es' then + Lang = Locale:new({ + phrases = Translations, + warnOnMissing = true, + fallbackLang = Lang, + }) +end