From bd797e62478bf6170f5ee8857c3d49f63675939f Mon Sep 17 00:00:00 2001 From: Cocodrulo <142546774+Cocodrulo@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:29:12 +0000 Subject: [PATCH 1/3] feat(locales): add Spanish translations --- locales/es.lua | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 locales/es.lua diff --git a/locales/es.lua b/locales/es.lua new file mode 100644 index 0000000..b1c5ff0 --- /dev/null +++ b/locales/es.lua @@ -0,0 +1,86 @@ +-- Add translations by MC +local Translations = { + headers = { + ['bsm'] = 'Menú de Jefe - ', + }, + body = { + ['manage'] = 'Gestionar empleados', + ['managed'] = 'Revisa tu lista de empleados', + ['hire'] = 'Contratar empleados', + ['hired'] = 'Contratar civiles cercanos', + ['storage'] = 'Acceso a almacenamiento', + ['storaged'] = 'Abrir almacenamiento', + ['outfits'] = 'Atuendos', + ['outfitsd'] = 'Ver atuendos guardados', + ['money'] = 'Gestión de dinero', + ['moneyd'] = 'Revisar el saldo de tu empresa', + ['mempl'] = 'Gestionar empleados - ', + ['mngpl'] = 'Gestionar ', + ['grade'] = 'Rango: ', + ['fireemp'] = 'Despedir empleado', + ['hireemp'] = 'Contratar empleados - ', + ['cid'] = 'ID de ciudadano: ', + ['balance'] = 'Saldo: $', + ['deposit'] = 'Depositar', + ['depositd'] = 'Depositar dinero en la cuenta', + ['withdraw'] = 'Retirar', + ['withdrawd'] = 'Retirar dinero de la cuenta', + ['depositm'] = 'Depositar dinero
Saldo disponible: $', + ['withdrawm'] = 'Retirar dinero
Saldo disponible: $', + ['submit'] = 'Confirmar', + ['amount'] = 'Monto', + ['return'] = 'Volver', + ['exit'] = 'Volver', + }, + drawtext = { + ['label'] = '[E] Abrir gestión de trabajo', + }, + target = { + ['label'] = 'Menú de Jefe', + }, + headersgang = { + ['bsm'] = 'Gestión de Banda - ', + }, + bodygang = { + ['manage'] = 'Gestionar miembros de la banda', + ['managed'] = 'Reclutar o despedir miembros de la banda', + ['hire'] = 'Reclutar miembros', + ['hired'] = 'Contratar miembros de la banda', + ['storage'] = 'Acceso a almacenamiento', + ['storaged'] = 'Abrir alijo de la banda', + ['outfits'] = 'Atuendos', + ['outfitsd'] = 'Cambiar de ropa', + ['money'] = 'Gestión de dinero', + ['moneyd'] = 'Revisar el saldo de tu banda', + ['mempl'] = 'Gestionar miembros de la banda - ', + ['mngpl'] = 'Gestionar ', + ['grade'] = 'Rango: ', + ['fireemp'] = 'Despedir', + ['hireemp'] = 'Contratar miembros de la banda - ', + ['cid'] = 'ID de ciudadano: ', + ['balance'] = 'Saldo: $', + ['deposit'] = 'Depositar', + ['depositd'] = 'Depositar dinero en la cuenta', + ['withdraw'] = 'Retirar', + ['withdrawd'] = 'Retirar dinero de la cuenta', + ['depositm'] = 'Depositar dinero
Saldo disponible: $', + ['withdrawm'] = 'Retirar dinero
Saldo disponible: $', + ['submit'] = 'Confirmar', + ['amount'] = 'Monto', + ['return'] = 'Volver', + ['exit'] = 'Salir', + }, + drawtextgang = { + ['label'] = '[E] Abrir gestión de la banda', + }, + targetgang = { + ['label'] = 'Menú de la Banda', + } +} + +if GetConvar('qb_locale', 'en') == 'es' then + Lang = Lang or Locale:new({ + phrases = Translations, + warnOnMissing = true + }) +end From fe44af912c18fbcaa485316569fffa976db9e744 Mon Sep 17 00:00:00 2001 From: Cocodrulo <142546774+Cocodrulo@users.noreply.github.com> Date: Thu, 14 Nov 2024 14:23:05 +0000 Subject: [PATCH 2/3] Updated es.lua --- locales/es.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/locales/es.lua b/locales/es.lua index b1c5ff0..8c028b5 100644 --- a/locales/es.lua +++ b/locales/es.lua @@ -1,4 +1,4 @@ --- Add translations by MC +-- Add translations by Cocodrulo local Translations = { headers = { ['bsm'] = 'Menú de Jefe - ', @@ -30,7 +30,7 @@ local Translations = { ['submit'] = 'Confirmar', ['amount'] = 'Monto', ['return'] = 'Volver', - ['exit'] = 'Volver', + ['exit'] = 'Salir', }, drawtext = { ['label'] = '[E] Abrir gestión de trabajo', From 70074dbb8005ad65295db07b674bedf2a3e24d6c Mon Sep 17 00:00:00 2001 From: Cocodrulo <142546774+Cocodrulo@users.noreply.github.com> Date: Thu, 14 Nov 2024 14:36:46 +0000 Subject: [PATCH 3/3] Change `Monto` to `Cantidad` to use a more universal and central Spanish language in es.lua --- locales/es.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/locales/es.lua b/locales/es.lua index 8c028b5..42f72a8 100644 --- a/locales/es.lua +++ b/locales/es.lua @@ -28,7 +28,7 @@ local Translations = { ['depositm'] = 'Depositar dinero
Saldo disponible: $', ['withdrawm'] = 'Retirar dinero
Saldo disponible: $', ['submit'] = 'Confirmar', - ['amount'] = 'Monto', + ['amount'] = 'Cantidad', ['return'] = 'Volver', ['exit'] = 'Salir', }, @@ -66,7 +66,7 @@ local Translations = { ['depositm'] = 'Depositar dinero
Saldo disponible: $', ['withdrawm'] = 'Retirar dinero
Saldo disponible: $', ['submit'] = 'Confirmar', - ['amount'] = 'Monto', + ['amount'] = 'Cantidad', ['return'] = 'Volver', ['exit'] = 'Salir', },