diff --git a/client/damage/damage.lua b/client/damage/damage.lua index 9b41d8c..2be5169 100644 --- a/client/damage/damage.lua +++ b/client/damage/damage.lua @@ -208,7 +208,7 @@ local function checkForDamage() TriggerEvent('chat:addMessage', { color = { 255, 0, 0 }, multiline = false, - args = { Lang:t('info.status'), WEAPONS[weaponHash].damagereason } + args = { locale('info.status'), WEAPONS[weaponHash].damagereason } }) WeaponsThatDamagedPlayer[weaponHash] = true end diff --git a/client/dead.lua b/client/dead.lua index 3ad5f7b..e2a9426 100644 --- a/client/dead.lua +++ b/client/dead.lua @@ -99,12 +99,12 @@ end) ---@param weapon string weapon hash local function logDeath(victim, attacker, weapon) local playerId = NetworkGetPlayerIndexFromPed(victim) - local playerName = (' %s (%d)'):format(GetPlayerName(playerId), GetPlayerServerId(playerId)) or Lang:t('info.self_death') + local playerName = (' %s (%d)'):format(GetPlayerName(playerId), GetPlayerServerId(playerId)) or locale('info.self_death') local killerId = NetworkGetPlayerIndexFromPed(attacker) - local killerName = ('%s (%d)'):format(GetPlayerName(killerId), GetPlayerServerId(killerId)) or Lang:t('info.self_death') + local killerName = ('%s (%d)'):format(GetPlayerName(killerId), GetPlayerServerId(killerId)) or locale('info.self_death') local weaponLabel = WEAPONS[weapon]?.label or 'Unknown' local weaponName = WEAPONS[weapon]?.name or 'Unknown' - local message = Lang:t('logs.death_log_message', { killername = killerName, playername = playerName, weaponlabel = weaponLabel, weaponname = weaponName }) + local message = locale('logs.death_log_message', killerName, playerName, weaponLabel, weaponName) lib.callback.await('qbx_medical:server:log', false, 'logDeath', message) end diff --git a/client/laststand.lua b/client/laststand.lua index f00b7bd..b5f6fa0 100644 --- a/client/laststand.lua +++ b/client/laststand.lua @@ -37,11 +37,11 @@ local function logPlayerKiller() end local killerId = NetworkGetPlayerIndexFromPed(killer) - local killerName = killerId ~= -1 and (' %s (%d)'):format(GetPlayerName(killerId), GetPlayerServerId(killerId)) or Lang:t('info.self_death') + local killerName = killerId ~= -1 and (' %s (%d)'):format(GetPlayerName(killerId), GetPlayerServerId(killerId)) or locale('info.self_death') local weaponItem = WEAPONS[killerWeapon] - local weaponLabel = Lang:t('info.wep_unknown') or (weaponItem and weaponItem.label) - local weaponName = Lang:t('info.wep_unknown') or (weaponItem and weaponItem.name) - local message = Lang:t('logs.death_log_message', { killername = killerName, playername = GetPlayerName(cache.playerId), weaponlabel = weaponLabel, weaponname = weaponName }) + local weaponLabel = locale('info.wep_unknown') or (weaponItem and weaponItem.label) + local weaponName = locale('info.wep_unknown') or (weaponItem and weaponItem.name) + local message = locale('logs.death_log_message', killerName, GetPlayerName(cache.playerId), weaponLabel, weaponName) lib.callback.await('qbx_medical:server:log', false, 'playerKiller', message) end @@ -51,7 +51,7 @@ local function countdownLastStand() if LaststandTime - 1 > 0 then LaststandTime -= 1 else - exports.qbx_core:Notify(Lang:t('error.bled_out'), 'error') + exports.qbx_core:Notify(locale('error.bled_out'), 'error') EndLastStand() logPlayerKiller() DeathTime = config.deathTime diff --git a/client/main.lua b/client/main.lua index b94e744..a95f61a 100644 --- a/client/main.lua +++ b/client/main.lua @@ -107,14 +107,14 @@ local function doLimbAlert() local i = 0 for bodyPartKey, injury in pairs(Injuries) do local bodyPart = sharedConfig.bodyParts[bodyPartKey] - limbDamageMsg = limbDamageMsg .. Lang:t('info.pain_message', { limb = bodyPart.label, severity = sharedConfig.woundLevels[injury.severity].label}) + limbDamageMsg = limbDamageMsg .. locale('info.pain_message', bodyPart.label, sharedConfig.woundLevels[injury.severity].label) i += 1 if i < NumInjuries then limbDamageMsg = limbDamageMsg .. ' | ' end end else - limbDamageMsg = Lang:t('info.many_places') + limbDamageMsg = locale('info.many_places') end exports.qbx_core:Notify(limbDamageMsg, 'error') end @@ -173,7 +173,7 @@ end ---notify the player of bleeding to their body. function SendBleedAlert() if DeathState == sharedConfig.deathState.DEAD or BleedLevel == 0 then return end - exports.qbx_core:Notify(Lang:t('info.bleed_alert', {bleedstate = sharedConfig.bleedingStates[BleedLevel]}), 'inform') + exports.qbx_core:Notify(locale('info.bleed_alert', sharedConfig.bleedingStates[BleedLevel]), 'inform') end exports('SendBleedAlert', SendBleedAlert) @@ -199,7 +199,7 @@ lib.callback.register('qbx_medical:client:heal', function(type) else resetMinorInjuries() end - exports.qbx_core:Notify(Lang:t('success.wounds_healed'), 'success') + exports.qbx_core:Notify(locale('success.wounds_healed'), 'success') end) CreateThread(function() @@ -226,6 +226,6 @@ RegisterNetEvent('qbx_medical:client:playerRevived', function() resetAllInjuries() ResetPedMovementClipset(cache.ped, 0.0) TriggerServerEvent('hud:server:RelieveStress', 100) - exports.qbx_core:Notify(Lang:t('info.healthy'), 'inform') + exports.qbx_core:Notify(locale('info.healthy'), 'inform') LocalPlayer.state.invBusy = false end) diff --git a/config/shared.lua b/config/shared.lua index 678a63e..eed4b75 100644 --- a/config/shared.lua +++ b/config/shared.lua @@ -2,27 +2,27 @@ return { woundLevels = { { movementRate = 0.98, - label = Lang:t('states.irritated'), + label = locale('states.irritated'), }, { movementRate = 0.96, - label = Lang:t('states.quite_painful'), + label = locale('states.quite_painful'), }, { movementRate = 0.94, - label = Lang:t('states.painful'), + label = locale('states.painful'), }, { movementRate = 0.92, - label = Lang:t('states.really_painful'), + label = locale('states.really_painful'), }, }, bleedingStates = { -- Translate bleeding alerts - Lang:t('states.little_bleed'), - Lang:t('states.bleed'), - Lang:t('states.lot_bleed'), - Lang:t('states.big_bleed'), + locale('states.little_bleed'), + locale('states.bleed'), + locale('states.lot_bleed'), + locale('states.big_bleed'), }, ---@alias BodyPartKey string @@ -33,21 +33,21 @@ return { ---@type table bodyParts = { - HEAD = { label = Lang:t('body.head'), causeLimp = false }, - NECK = { label = Lang:t('body.neck'), causeLimp = false }, - SPINE = { label = Lang:t('body.spine'), causeLimp = true }, - UPPER_BODY = { label = Lang:t('body.upper_body'), causeLimp = false }, - LOWER_BODY = { label = Lang:t('body.lower_body'), causeLimp = true }, - LARM = { label = Lang:t('body.left_arm'), causeLimp = false, }, - LHAND = { label = Lang:t('body.left_hand'), causeLimp = false, }, - LFINGER = { label = Lang:t('body.left_fingers'), causeLimp = false, }, - LLEG = { label = Lang:t('body.left_leg'), causeLimp = true, }, - LFOOT = { label = Lang:t('body.left_foot'), causeLimp = true, }, - RARM = { label = Lang:t('body.right_arm'), causeLimp = false, }, - RHAND = { label = Lang:t('body.right_hand'), causeLimp = false, }, - RFINGER = { label = Lang:t('body.right_fingers'), causeLimp = false, }, - RLEG = { label = Lang:t('body.right_leg'), causeLimp = true, }, - RFOOT = { label = Lang:t('body.right_foot'), causeLimp = true, }, + HEAD = { label = locale('body.head'), causeLimp = false }, + NECK = { label = locale('body.neck'), causeLimp = false }, + SPINE = { label = locale('body.spine'), causeLimp = true }, + UPPER_BODY = { label = locale('body.upper_body'), causeLimp = false }, + LOWER_BODY = { label = locale('body.lower_body'), causeLimp = true }, + LARM = { label = locale('body.left_arm'), causeLimp = false, }, + LHAND = { label = locale('body.left_hand'), causeLimp = false, }, + LFINGER = { label = locale('body.left_fingers'), causeLimp = false, }, + LLEG = { label = locale('body.left_leg'), causeLimp = true, }, + LFOOT = { label = locale('body.left_foot'), causeLimp = true, }, + RARM = { label = locale('body.right_arm'), causeLimp = false, }, + RHAND = { label = locale('body.right_hand'), causeLimp = false, }, + RFINGER = { label = locale('body.right_fingers'), causeLimp = false, }, + RLEG = { label = locale('body.right_leg'), causeLimp = true, }, + RFOOT = { label = locale('body.right_foot'), causeLimp = true, }, }, ---@enum DeathState diff --git a/fxmanifest.lua b/fxmanifest.lua index 27023c9..3a82c7b 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -5,11 +5,10 @@ description 'qbx_medical' repository 'https://github.com/Qbox-project/qbx_medical' version '1.0.0' +ox_lib 'locale' + shared_scripts { '@ox_lib/init.lua', - '@qbx_core/shared/locale.lua', - 'locales/en.lua', - 'locales/*.lua', 'shared/**/*.lua', } @@ -30,6 +29,7 @@ server_scripts { } files { + 'locales/*.json', 'config/client.lua', 'config/shared.lua', } diff --git a/locales/ar.json b/locales/ar.json new file mode 100644 index 0000000..06da1d7 --- /dev/null +++ b/locales/ar.json @@ -0,0 +1,53 @@ +{ + "error": { + "bled_out": "لقد نزفت" + }, + "success": { + "wounds_healed": "لقد التئمت جروحك" + }, + "info": { + "self_death": "قتل نفسه او قتله سكان اصلي", + "wep_unknown": "غير معروف", + "status": "فحص الحالة", + "healthy": "أنت بصحة جيدة مرة أخرى", + "pain_message": "%s %s", + "many_places": "لديك ألم في أماكن كثيرة", + "bleed_alert": "%s انت", + "revive_player_a": "إحياء لاعب أو نفسك (المسؤول فقط)", + "player_id": "معرف اللاعب (قد يكون فارغا)", + "pain_level": "قم بتعيين مستوى الألم الخاص بك أو مستوى اللاعبين (المسؤول فقط)", + "kill": "اقتل لاعبًا أو قتل نفسك (المسؤول فقط)", + "heal_player_a": "شفاء لاعب أو نفسك (المسؤول فقط)" + }, + "states": { + "irritated": "منزعج", + "quite_painful": "مؤلم جدا", + "painful": "مؤلم", + "really_painful": "مؤلم حقا", + "little_bleed": "ينزف قليلا", + "bleed": "نزيف", + "lot_bleed": "ينزف كثيرا", + "big_bleed": "ينزف كثيرا" + }, + "body": { + "head": "رأس", + "neck": "رقبه", + "spine": "العمود الفقري", + "upper_body": "الجزء العلوي", + "lower_body": "الجسم السفلي", + "left_arm": "الذراع الأيسر", + "left_hand": "اليد اليسرى", + "left_fingers": "الأصابع اليسرى", + "left_leg": "الساق اليسرى", + "left_foot": "القدم اليسرى", + "right_arm": "الذراع الأيمن", + "right_hand": "اليد اليمنى", + "right_fingers": "الاصابع اليمنى", + "right_leg": "الساق اليمنى", + "right_foot": "القدم اليمنى" + }, + "logs": { + "death_log_title": "%s (%s) ميت", + "death_log_message": "%s قتل %s ب **%s** (%s)" + } +} \ No newline at end of file diff --git a/locales/ar.lua b/locales/ar.lua deleted file mode 100644 index 9b73150..0000000 --- a/locales/ar.lua +++ /dev/null @@ -1,61 +0,0 @@ -local Translations = { - error = { - bled_out = 'لقد نزفت', - }, - success = { - wounds_healed = 'لقد التئمت جروحك', - }, - info = { - self_death = 'قتل نفسه او قتله سكان اصلي', - wep_unknown = 'غير معروف', - status = 'فحص الحالة', - healthy = 'أنت بصحة جيدة مرة أخرى', - pain_message = '%{limb} %{severity}', - many_places = 'لديك ألم في أماكن كثيرة', - bleed_alert = '%{bleedstate} انت', - revive_player_a = 'إحياء لاعب أو نفسك (المسؤول فقط)', - player_id = 'معرف اللاعب (قد يكون فارغا)', - pain_level = 'قم بتعيين مستوى الألم الخاص بك أو مستوى اللاعبين (المسؤول فقط)', - kill = 'اقتل لاعبًا أو قتل نفسك (المسؤول فقط)', - heal_player_a = 'شفاء لاعب أو نفسك (المسؤول فقط)', - }, - states = { - irritated = 'منزعج', - quite_painful = 'مؤلم جدا', - painful = 'مؤلم', - really_painful = 'مؤلم حقا', - little_bleed = 'ينزف قليلا', - bleed = 'نزيف', - lot_bleed = 'ينزف كثيرا', - big_bleed = 'ينزف كثيرا', - }, - body = { - head = 'رأس', - neck = 'رقبه', - spine = 'العمود الفقري', - upper_body = 'الجزء العلوي', - lower_body = 'الجسم السفلي', - left_arm = 'الذراع الأيسر', - left_hand = 'اليد اليسرى', - left_fingers = 'الأصابع اليسرى', - left_leg = 'الساق اليسرى', - left_foot = 'القدم اليسرى', - right_arm = 'الذراع الأيمن', - right_hand = 'اليد اليمنى', - right_fingers = 'الاصابع اليمنى', - right_leg = 'الساق اليمنى', - right_foot = 'القدم اليمنى', - }, - logs = { - death_log_title = "%{playername} (%{playerid}) ميت", - death_log_message = "%{killername} قتل %{playername} ب **%{weaponlabel}** (%{weaponname})", - } -} - -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..e28998d --- /dev/null +++ b/locales/cs.json @@ -0,0 +1,53 @@ +{ + "error": { + "bled_out": "Vykrvácel(a) jsi..." + }, + "success": { + "wounds_healed": "Tvá zranění byla uzdravena!" + }, + "info": { + "self_death": "Sami sebe nebo NPC", + "wep_unknown": "Neznámý", + "status": "Kontrola stavu", + "healthy": "Jsi opět zcela zdravý(á)!", + "pain_message": "Tvůj %s cítí %s", + "many_places": "Máš bolest na mnoha místech...", + "bleed_alert": "Krvácíš %s", + "revive_player_a": "Oživit hráče nebo sebe (pouze pro administrátory)", + "player_id": "ID hráče (může být prázdné)", + "pain_level": "Nastavit úroveň bolesti pro sebe nebo hráče (pouze pro administrátory)", + "kill": "Zabít hráče nebo sebe (pouze pro administrátory)", + "heal_player_a": "Uzdravit hráče nebo sebe (pouze pro administrátory)" + }, + "states": { + "irritated": "podrážděný(á)", + "quite_painful": "docela bolestivý(á)", + "painful": "bolestivý(á)", + "really_painful": "opravdu bolestivý(á)", + "little_bleed": "krev trochu uniká...", + "bleed": "krev uniká...", + "lot_bleed": "krev uniká hodně...", + "big_bleed": "krev uniká velmi mnoho..." + }, + "body": { + "head": "Hlava", + "neck": "Krk", + "spine": "Hřbet", + "upper_body": "Horní část těla", + "lower_body": "Dolní část těla", + "left_arm": "Levá ruka", + "left_hand": "Levá ruka", + "left_fingers": "Levé prsty", + "left_leg": "Levá noha", + "left_foot": "Levá noha", + "right_arm": "Pravá ruka", + "right_hand": "Pravá ruka", + "right_fingers": "Pravé prsty", + "right_leg": "Pravá noha", + "right_foot": "Pravá noha" + }, + "logs": { + "death_log_title": "%s (%s) je mrtvý(á)", + "death_log_message": "%s zabil(a) %s s **%s** (%s)" + } +} \ No newline at end of file diff --git a/locales/cs.lua b/locales/cs.lua deleted file mode 100644 index f654516..0000000 --- a/locales/cs.lua +++ /dev/null @@ -1,63 +0,0 @@ -local Translations = { - error = { - bled_out = 'Vykrvácel(a) jsi...', - }, - success = { - wounds_healed = 'Tvá zranění byla uzdravena!', - }, - info = { - self_death = 'Sami sebe nebo NPC', - wep_unknown = 'Neznámý', - status = 'Kontrola stavu', - healthy = 'Jsi opět zcela zdravý(á)!', - pain_message = 'Tvůj %{limb} cítí %{severity}', - many_places = 'Máš bolest na mnoha místech...', - bleed_alert = 'Krvácíš %{bleedstate}', - revive_player_a = 'Oživit hráče nebo sebe (pouze pro administrátory)', - player_id = 'ID hráče (může být prázdné)', - pain_level = 'Nastavit úroveň bolesti pro sebe nebo hráče (pouze pro administrátory)', - kill = 'Zabít hráče nebo sebe (pouze pro administrátory)', - heal_player_a = 'Uzdravit hráče nebo sebe (pouze pro administrátory)', - }, - states = { - irritated = 'podrážděný(á)', - quite_painful = 'docela bolestivý(á)', - painful = 'bolestivý(á)', - really_painful = 'opravdu bolestivý(á)', - little_bleed = 'krev trochu uniká...', - bleed = 'krev uniká...', - lot_bleed = 'krev uniká hodně...', - big_bleed = 'krev uniká velmi mnoho...', - }, - body = { - head = 'Hlava', - neck = 'Krk', - spine = 'Hřbet', - upper_body = 'Horní část těla', - lower_body = 'Dolní část těla', - left_arm = 'Levá ruka', - left_hand = 'Levá ruka', - left_fingers = 'Levé prsty', - left_leg = 'Levá noha', - left_foot = 'Levá noha', - right_arm = 'Pravá ruka', - right_hand = 'Pravá ruka', - right_fingers = 'Pravé prsty', - right_leg = 'Pravá noha', - right_foot = 'Pravá noha', - }, - logs = { - death_log_title = "%{playername} (%{playerid}) je mrtvý(á)", - death_log_message = "%{killername} zabil(a) %{playername} s **%{weaponlabel}** (%{weaponname})", - } -} - - -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 index 83e34b2..bf9b514 100644 --- a/locales/da.json +++ b/locales/da.json @@ -1,58 +1,53 @@ -local Translations = { - fejl = { - bled_out = 'Du er blødt ud...', +{ + "error": { + "bled_out": "Du er blødt ud..." }, - success = { - wounds_healed = 'Dine sår er helet!', + "success": { + "wounds_healed": "Dine sår er helet!" }, - info = { - self_death = 'Sig selv eller en NPC', - wep_unknown = 'Ukendt', - status = 'Statuskontrol', - healthy = 'Du er helt rask igen!', - pain_message = 'Din %{limb} føles %{severity}', - many_places = 'Du har smerte mange steder...', - bleed_alert = 'Du er %{bleedstate}', - revive_player_a = 'Genopliv en spiller eller dig selv (Kun administrator)', - player_id = 'Spiller ID (kan være tomt)', - pain_level = 'Indstil din eller en spillers smerteniveau (Kun administrator)', - kill = 'Dræb en spiller eller dig selv (Kun administrator)', - heal_player_a = 'Helbred en spiller eller dig selv (Kun administrator)', + "info": { + "self_death": "Sig selv eller en NPC", + "wep_unknown": "Ukendt", + "status": "Statuskontrol", + "healthy": "Du er helt rask igen!", + "pain_message": "Din %s føles %s", + "many_places": "Du har smerte mange steder...", + "bleed_alert": "Du er %s", + "revive_player_a": "Genopliv en spiller eller dig selv (Kun administrator)", + "player_id": "Spiller ID (kan være tomt)", + "pain_level": "Indstil din eller en spillers smerteniveau (Kun administrator)", + "kill": "Dræb en spiller eller dig selv (Kun administrator)", + "heal_player_a": "Helbred en spiller eller dig selv (Kun administrator)" }, - states = { - irritated = 'irriteret', - quite_painful = 'ret smertefuldt', - painful = 'smertefuldt', - really_painful = 'virkelig smertefuldt', - little_bleed = 'bløder lidt...', - bleed = 'bløder...', - lot_bleed = 'bløder meget...', - big_bleed = 'bløder meget meget...', + "states": { + "irritated": "irriteret", + "quite_painful": "ret smertefuldt", + "painful": "smertefuldt", + "really_painful": "virkelig smertefuldt", + "little_bleed": "bløder lidt...", + "bleed": "bløder...", + "lot_bleed": "bløder meget...", + "big_bleed": "bløder meget meget..." }, - body = { - head = 'Hoved', - neck = 'Hals', - spine = 'Rygsøjle', - upper_body = 'Øverste krop', - lower_body = 'Nederste krop', - left_arm = 'Venstre arm', - left_hand = 'Venstre hånd', - left_fingers = 'Venstre fingre', - left_leg = 'Venstre ben', - left_foot = 'Venstre fod', - right_arm = 'Højre arm', - right_hand = 'Højre hånd', - right_fingers = 'Højre fingre', - right_leg = 'Højre ben', - right_foot = 'Højre fod', + "body": { + "head": "Hoved", + "neck": "Hals", + "spine": "Rygsøjle", + "upper_body": "Øverste krop", + "lower_body": "Nederste krop", + "left_arm": "Venstre arm", + "left_hand": "Venstre hånd", + "left_fingers": "Venstre fingre", + "left_leg": "Venstre ben", + "left_foot": "Venstre fod", + "right_arm": "Højre arm", + "right_hand": "Højre hånd", + "right_fingers": "Højre fingre", + "right_leg": "Højre ben", + "right_foot": "Højre fod" }, - logs = { - death_log_title = "%{playername} (%{playerid}) er død", - death_log_message = "%{killername} har dræbt %{playername} med et **%{weaponlabel}** (%{weaponname})", + "logs": { + "death_log_title": "%s (%s) er død", + "death_log_message": "%s har dræbt %s med et **%s** (%s)" } -} - -Lang = Lang or Locale:new({ - phrases = Translations, - warnOnMissing = true -}) +} \ No newline at end of file diff --git a/locales/de.json b/locales/de.json new file mode 100644 index 0000000..c523f92 --- /dev/null +++ b/locales/de.json @@ -0,0 +1,53 @@ +{ + "error": { + "bled_out": "Du bist ausgeblutet..." + }, + "success": { + "wounds_healed": "Deine Wunden wurden geheilt!" + }, + "info": { + "self_death": "Er selbst oder ein NPC", + "wep_unknown": "Unbekannt", + "status": "Status Prüfung", + "healthy": "Du bist wieder ganz gesund!", + "pain_message": "Dein %s fühlt sich %s an", + "many_places": "Du hast schmerzen an verschiedenen Stellen...", + "bleed_alert": "Du bist %s", + "revive_player_a": "Belebe einen Spieler oder dich selbst (Admin Only)", + "player_id": "Spieler ID (may be empty)", + "pain_level": "Setzt dein oder eines Spielers schmerzlevel (Admin Only)", + "kill": "Töte einen Spieler oder dich selbst (Admin Only)", + "heal_player_a": "Keile einen Spieler oder dich selbst (Admin Only)" + }, + "states": { + "irritated": "irritiert", + "quite_painful": "leicht schmerzhaft", + "painful": "schmerzhaft", + "really_painful": "sehr schmerzhaft", + "little_bleed": "wenig blutend...", + "bleed": "blutend...", + "lot_bleed": "etwas mehr blutend...", + "big_bleed": "sehr stark blutend..." + }, + "body": { + "head": "Kopf", + "neck": "Nacken", + "spine": "Wirbelsäule", + "upper_body": "Oberer Körper", + "lower_body": "Unterer Körper", + "left_arm": "Linker Arm", + "left_hand": "Linke Hand", + "left_fingers": "Linke Finger", + "left_leg": "Linkes Bein", + "left_foot": "Linker Fuß", + "right_arm": "Rechter Arm", + "right_hand": "Rechte Hand", + "right_fingers": "Rechte Finger", + "right_leg": "Rechtes Bein", + "right_foot": "Rechter Fuß" + }, + "logs": { + "death_log_title": "%s (%s) is gestorben", + "death_log_message": "%s tötete %s mit einer/einem **%s** (%s)" + } +} diff --git a/locales/de.lua b/locales/de.lua deleted file mode 100644 index 8156aee..0000000 --- a/locales/de.lua +++ /dev/null @@ -1,61 +0,0 @@ -local Translations = { - error = { - bled_out = 'Du bist ausgeblutet...', - }, - success = { - wounds_healed = 'Deine Wunden wurden geheilt!', - }, - info = { - self_death = 'Er selbst oder ein NPC', - wep_unknown = 'Unbekannt', - status = 'Status Prüfung', - healthy = 'Du bist wieder ganz gesund!', - pain_message = 'Dein %{limb} fühlt sich %{severity} an', - many_places = 'Du hast schmerzen an verschiedenen Stellen...', - bleed_alert = 'Du bist %{bleedstate}', - revive_player_a = 'Belebe einen Spieler oder dich selbst (Admin Only)', - player_id = 'Spieler ID (may be empty)', - pain_level = 'Setzt dein oder eines Spielers schmerzlevel (Admin Only)', - kill = 'Töte einen Spieler oder dich selbst (Admin Only)', - heal_player_a = 'Keile einen Spieler oder dich selbst (Admin Only)', - }, - states = { - irritated = 'irritiert', - quite_painful = 'leicht schmerzhaft', - painful = 'schmerzhaft', - really_painful = 'sehr schmerzhaft', - little_bleed = 'wenig blutend...', - bleed = 'blutend...', - lot_bleed = 'etwas mehr blutend...', - big_bleed = 'sehr stark blutend...', - }, - body = { - head = 'Kopf', - neck = 'Nacken', - spine = 'Wirbelsäule', - upper_body = 'Oberer Körper', - lower_body = 'Unterer Körper', - left_arm = 'Linker Arm', - left_hand = 'Linke Hand', - left_fingers = 'Linke Finger', - left_leg = 'Linkes Bein', - left_foot = 'Linker Fuß', - right_arm = 'Rechter Arm', - right_hand = 'Rechte Hand', - right_fingers = 'Rechte Finger', - right_leg = 'Rechtes Bein', - right_foot = 'Rechter Fuß', - }, - logs = { - death_log_title = "%{playername} (%{playerid}) is gestorben", - death_log_message = "%{killername} tötete %{playername} mit einer/einem **%{weaponlabel}** (%{weaponname})", - } -} - -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..7bd0288 --- /dev/null +++ b/locales/en.json @@ -0,0 +1,53 @@ +{ + "error": { + "bled_out": "You have bled out..." + }, + "success": { + "wounds_healed": "Your wounds have been healed!" + }, + "info": { + "self_death": "Themselves or an NPC", + "wep_unknown": "Unknown", + "status": "Status Check", + "healthy": "You are completely healthy again!", + "pain_message": "Your %s feels %s", + "many_places": "You have pain in many places...", + "bleed_alert": "You are %s", + "revive_player_a": "Revive A Player or Yourself (Admin Only)", + "player_id": "Player ID (may be empty)", + "pain_level": "Set Yours or A Players Pain Level (Admin Only)", + "kill": "Kill A Player or Yourself (Admin Only)", + "heal_player_a": "Heal A Player or Yourself (Admin Only)" + }, + "states": { + "irritated": "irritated", + "quite_painful": "quite painful", + "painful": "painful", + "really_painful": "really painful", + "little_bleed": "bleeding a little bit...", + "bleed": "bleeding...", + "lot_bleed": "bleeding a lot...", + "big_bleed": "bleeding very much..." + }, + "body": { + "head": "Head", + "neck": "Neck", + "spine": "Spine", + "upper_body": "Upper Body", + "lower_body": "Lower Body", + "left_arm": "Left Arm", + "left_hand": "Left Hand", + "left_fingers": "Left Fingers", + "left_leg": "Left Leg", + "left_foot": "Left Foot", + "right_arm": "Right Arm", + "right_hand": "Right Hand", + "right_fingers": "Right Fingers", + "right_leg": "Right Leg", + "right_foot": "Right Foot" + }, + "logs": { + "death_log_title": "%s (%s) is dead", + "death_log_message": "%s has killed %s with a **%s** (%s)" + } +} \ No newline at end of file diff --git a/locales/en.lua b/locales/en.lua deleted file mode 100644 index 78470ad..0000000 --- a/locales/en.lua +++ /dev/null @@ -1,58 +0,0 @@ -local Translations = { - error = { - bled_out = 'You have bled out...', - }, - success = { - wounds_healed = 'Your wounds have been healed!', - }, - info = { - self_death = 'Themselves or an NPC', - wep_unknown = 'Unknown', - status = 'Status Check', - healthy = 'You are completely healthy again!', - pain_message = 'Your %{limb} feels %{severity}', - many_places = 'You have pain in many places...', - bleed_alert = 'You are %{bleedstate}', - revive_player_a = 'Revive A Player or Yourself (Admin Only)', - player_id = 'Player ID (may be empty)', - pain_level = 'Set Yours or A Players Pain Level (Admin Only)', - kill = 'Kill A Player or Yourself (Admin Only)', - heal_player_a = 'Heal A Player or Yourself (Admin Only)', - }, - states = { - irritated = 'irritated', - quite_painful = 'quite painful', - painful = 'painful', - really_painful = 'really painful', - little_bleed = 'bleeding a little bit...', - bleed = 'bleeding...', - lot_bleed = 'bleeding a lot...', - big_bleed = 'bleeding very much...', - }, - body = { - head = 'Head', - neck = 'Neck', - spine = 'Spine', - upper_body = 'Upper Body', - lower_body = 'Lower Body', - left_arm = 'Left Arm', - left_hand = 'Left Hand', - left_fingers = 'Left Fingers', - left_leg = 'Left Leg', - left_foot = 'Left Foot', - right_arm = 'Right Arm', - right_hand = 'Right Hand', - right_fingers = 'Right Fingers', - right_leg = 'Right Leg', - right_foot = 'Right Foot', - }, - logs = { - death_log_title = "%{playername} (%{playerid}) is dead", - death_log_message = "%{killername} has killed %{playername} with a **%{weaponlabel}** (%{weaponname})", - } -} - -Lang = Lang or Locale:new({ - phrases = Translations, - warnOnMissing = true -}) diff --git a/locales/es.json b/locales/es.json new file mode 100644 index 0000000..8063dc7 --- /dev/null +++ b/locales/es.json @@ -0,0 +1,53 @@ +{ + "error": { + "bled_out": "Te desangraste..." + }, + "success": { + "wounds_healed": "¡Tus heridas han sido curadas!" + }, + "info": { + "self_death": "Suicidio o un NPC", + "wep_unknown": "Desconocido", + "status": "Revisión de estado", + "healthy": "Ya estás saludable de nuevo", + "pain_message": "Sientes %s en %s", + "many_places": "Te duele todo...", + "bleed_alert": "Estás %s", + "revive_player_a": "Reanimar jugador (Admin)", + "player_id": "ID de jugador (puede quedar vacio)", + "pain_level": "Establecer nivel de dolor (Admin)", + "kill": "Matar un jugador o a ti mismo (Admin)", + "heal_player_a": "Curar un jugador o a ti mismo (Admin)" + }, + "states": { + "irritated": "molestias", + "quite_painful": "mucho dolor", + "painful": "dolor", + "really_painful": "dolor insoportable", + "little_bleed": "sangrando un poco...", + "bleed": "sangrando...", + "lot_bleed": "sangrando mucho...", + "big_bleed": "desangrándote gravemente..." + }, + "body": { + "head": "cabeza", + "neck": "cuello", + "spine": "columna", + "upper_body": "parte superior", + "lower_body": "parte inferior", + "left_arm": "brazo izquierdo", + "left_hand": "mano izquierda", + "left_fingers": "dedos izquierdos", + "left_leg": "pierna izquierda", + "left_foot": "pie izquierdo", + "right_arm": "brazo derecho", + "right_hand": "mano derecha", + "right_fingers": "dedos derechos", + "right_leg": "pierna derecha", + "right_foot": "pie derecho" + }, + "logs": { + "death_log_title": "%s (%s) está muerto", + "death_log_message": "%s ha matado %s con **%s** (%s)" + } +} \ No newline at end of file diff --git a/locales/es.lua b/locales/es.lua deleted file mode 100644 index 5e28457..0000000 --- a/locales/es.lua +++ /dev/null @@ -1,61 +0,0 @@ -local Translations = { - error = { - bled_out = 'Te desangraste...', - }, - success = { - wounds_healed = '¡Tus heridas han sido curadas!', - }, - info = { - self_death = 'Suicidio o un NPC', - wep_unknown = 'Desconocido', - status = 'Revisión de estado', - healthy = 'Ya estás saludable de nuevo', - pain_message = 'Sientes %{severity} en %{limb}', - many_places = 'Te duele todo...', - bleed_alert = 'Estás %{bleedstate}', - revive_player_a = 'Reanimar jugador (Admin)', - player_id = 'ID de jugador (puede quedar vacio)', - pain_level = 'Establecer nivel de dolor (Admin)', - kill = 'Matar un jugador o a ti mismo (Admin)', - heal_player_a = 'Curar un jugador o a ti mismo (Admin)', - }, - states = { - irritated = 'molestias', - quite_painful = 'mucho dolor', - painful = 'dolor', - really_painful = 'dolor insoportable', - little_bleed = 'sangrando un poco...', - bleed = 'sangrando...', - lot_bleed = 'sangrando mucho...', - big_bleed = 'desangrándote gravemente...', - }, - body = { - head = 'cabeza', - neck = 'cuello', - spine = 'columna', - upper_body = 'parte superior', - lower_body = 'parte inferior', - left_arm = 'brazo izquierdo', - left_hand = 'mano izquierda', - left_fingers = 'dedos izquierdos', - left_leg = 'pierna izquierda', - left_foot = 'pie izquierdo', - right_arm = 'brazo derecho', - right_hand = 'mano derecha', - right_fingers = 'dedos derechos', - right_leg = 'pierna derecha', - right_foot = 'pie derecho', - }, - logs = { - death_log_title = "%{playername} (%{playerid}) está muerto", - death_log_message = "%{killername} ha matado %{playername} con **%{weaponlabel}** (%{weaponname})", - } -} - -if GetConvar('qb_locale', 'en') == 'es' 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..61c0bec --- /dev/null +++ b/locales/fi.json @@ -0,0 +1,53 @@ +{ + "error": { + "bled_out": "Olet vuotanut kuiviin..." + }, + "success": { + "wounds_healed": "Haavasi on hoidettu!" + }, + "info": { + "self_death": "Itsemurha tai NPC-tappo", + "wep_unknown": "Tuntematon", + "status": "Voinnin tarkastus", + "healthy": "Olet taas täysin terve!", + "pain_message": "Sinun %s tuntuu %s", + "many_places": "Tunnet kipua monessa paikassa..", + "bleed_alert": "Vuodat %s", + "revive_player_a": "Elvytä itsesi tai pelaaja", + "player_id": "Pelaajan ID(Nosta itsesi jättämällä tyhjäksi)", + "pain_level": "Aseta sinun tai muun pelaajan kiputaso", + "kill": "Tapa itsesi tai muu pelaaja", + "heal_player_a": "Hoida itsesi tai muu pelaaja" + }, + "states": { + "irritated": "ärtynyt", + "quite_painful": "hieman kipeä", + "painful": "kipeä", + "really_painful": "todella kipeä", + "little_bleed": "hieman verta", + "bleed": "verta", + "lot_bleed": "paljon verta", + "big_bleed": "todella paljon verta" + }, + "body": { + "head": "Pää", + "neck": "Niska", + "spine": "Selkäranka", + "upper_body": "Yläkroppa", + "lower_body": "Alakroppa", + "left_arm": "Vasen käsivarsi", + "left_hand": "Oikea käsi", + "left_fingers": "Vasemmat sormet", + "left_leg": "Vasen jalka", + "left_foot": "Vasen jalkapöytä", + "right_arm": "Oikea käsivarsi", + "right_hand": "Oikea käsi", + "right_fingers": "Oikeat sormet", + "right_leg": "Oikea jalka", + "right_foot": "Oikea jalkapöytä" + }, + "logs": { + "death_log_title": "%s (%s) on kuollut", + "death_log_message": "%s on tappanut %s välineellä **%s** (%s)" + } +} \ No newline at end of file diff --git a/locales/fi.lua b/locales/fi.lua deleted file mode 100644 index 019dafe..0000000 --- a/locales/fi.lua +++ /dev/null @@ -1,61 +0,0 @@ -local Translations = { - error = { - bled_out = 'Olet vuotanut kuiviin...', - }, - success = { - wounds_healed = 'Haavasi on hoidettu!', - }, - info = { - self_death = 'Itsemurha tai NPC-tappo', - wep_unknown = 'Tuntematon', - status = 'Voinnin tarkastus', - healthy = 'Olet taas täysin terve!', - pain_message = 'Sinun %{limb} tuntuu %{severity}', - many_places = 'Tunnet kipua monessa paikassa..', - bleed_alert = 'Vuodat %{bleedstate}', - revive_player_a = 'Elvytä itsesi tai pelaaja', - player_id = 'Pelaajan ID(Nosta itsesi jättämällä tyhjäksi)', - pain_level = 'Aseta sinun tai muun pelaajan kiputaso', - kill = 'Tapa itsesi tai muu pelaaja', - heal_player_a = 'Hoida itsesi tai muu pelaaja', - }, - states = { - irritated = 'ärtynyt', - quite_painful = 'hieman kipeä', - painful = 'kipeä', - really_painful = 'todella kipeä', - little_bleed = 'hieman verta', - bleed = 'verta', - lot_bleed = 'paljon verta', - big_bleed = 'todella paljon verta', - }, - body = { - head = 'Pää', - neck = 'Niska', - spine = 'Selkäranka', - upper_body = 'Yläkroppa', - lower_body = 'Alakroppa', - left_arm = 'Vasen käsivarsi', - left_hand = 'Oikea käsi', - left_fingers = 'Vasemmat sormet', - left_leg = 'Vasen jalka', - left_foot = 'Vasen jalkapöytä', - right_arm = 'Oikea käsivarsi', - right_hand = 'Oikea käsi', - right_fingers = 'Oikeat sormet', - right_leg = 'Oikea jalka', - right_foot = 'Oikea jalkapöytä', - }, - logs = { - death_log_title = "%{playername} (%{playerid}) on kuollut", - death_log_message = "%{killername} on tappanut %{playername} välineellä **%{weaponlabel}** (%{weaponname})", - } -} - -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..da05756 --- /dev/null +++ b/locales/fr.json @@ -0,0 +1,53 @@ +{ + "error": { + "bled_out": "Vous vous êtes vidé de votre sang..." + }, + "success": { + "wounds_healed": "Vos blessures ont été soignées !" + }, + "info": { + "self_death": "Eux-Même ou un PNJ", + "wep_unknown": "Inconnu", + "status": "Check Status", + "healthy": "Vous êtes maintenant en parfaite santé !", + "pain_message": "Votre %s est %s", + "many_places": "Vous avez mal à plusieurs endroits ...", + "bleed_alert": "Vous êtes %s", + "revive_player_a": "Réanimer quelqu'un ou vous même (Admin Only)", + "player_id": "ID joueur (Peut être vide)", + "pain_level": "Definir le niveau de douleur d'un joueur ou de vous même (Admin Only)", + "kill": "Tuer un joueur ou vous même (Admin Only)", + "heal_player_a": "Soigner un joueur ou vous même (Admin Only)" + }, + "states": { + "irritated": "irrité", + "quite_painful": "assez douloureux", + "painful": "douloureux", + "really_painful": "Vraiment douloureux", + "little_bleed": "Saigne un peu...", + "bleed": "Saigne...", + "lot_bleed": "Saigne beaucoup...", + "big_bleed": "Saigne enormément..." + }, + "body": { + "head": "Tête", + "neck": "Nuque", + "spine": "Colonne vertebrale", + "upper_body": "Haut du corp", + "lower_body": "Bas du corp", + "left_arm": "Bras gauche", + "left_hand": "Main gauche", + "left_fingers": "Doigts gauches", + "left_leg": "Jambe gauche", + "left_foot": "Pied gauche", + "right_arm": "Bras droit", + "right_hand": "Main droite", + "right_fingers": "Doigts Droite", + "right_leg": "Jambe droite", + "right_foot": "Pied Droit" + }, + "logs": { + "death_log_title": "%s (%s) est mort", + "death_log_message": "%s a tué %s avec **%s** (%s)" + } +} \ No newline at end of file diff --git a/locales/fr.lua b/locales/fr.lua deleted file mode 100644 index 56efcbf..0000000 --- a/locales/fr.lua +++ /dev/null @@ -1,61 +0,0 @@ -local Translations = { - error = { - bled_out = 'Vous vous êtes vidé de votre sang...', - }, - success = { - wounds_healed = 'Vos blessures ont été soignées !', - }, - info = { - self_death = 'Eux-Même ou un PNJ', - wep_unknown = 'Inconnu', - status = 'Check Status', - healthy = 'Vous êtes maintenant en parfaite santé !', - pain_message = 'Votre %{limb} est %{severity}', - many_places = 'Vous avez mal à plusieurs endroits ...', - bleed_alert = 'Vous êtes %{bleedstate}', - revive_player_a = 'Réanimer quelqu\'un ou vous même (Admin Only)', - player_id = 'ID joueur (Peut être vide)', - pain_level = 'Definir le niveau de douleur d\'un joueur ou de vous même (Admin Only)', - kill = 'Tuer un joueur ou vous même (Admin Only)', - heal_player_a = 'Soigner un joueur ou vous même (Admin Only)', - }, - states = { - irritated = 'irrité', - quite_painful = 'assez douloureux', - painful = 'douloureux', - really_painful = 'Vraiment douloureux', - little_bleed = 'Saigne un peu...', - bleed = 'Saigne...', - lot_bleed = 'Saigne beaucoup...', - big_bleed = 'Saigne enormément...', - }, - body = { - head = 'Tête', - neck = 'Nuque', - spine = 'Colonne vertebrale', - upper_body = 'Haut du corp', - lower_body = 'Bas du corp', - left_arm = 'Bras gauche', - left_hand = 'Main gauche', - left_fingers = 'Doigts gauches', - left_leg = 'Jambe gauche', - left_foot = 'Pied gauche', - right_arm = 'Bras droit', - right_hand = 'Main droite', - right_fingers = 'Doigts Droite', - right_leg = 'Jambe droite', - right_foot = 'Pied Droit', - }, - logs = { - death_log_title = "%{playername} (%{playerid}) est mort", - death_log_message = "%{killername} a tué %{playername} avec **%{weaponlabel}** (%{weaponname})", - } -} - -if GetConvar('qb_locale', 'en') == 'fr' then - Lang = Locale:new({ - phrases = Translations, - warnOnMissing = true, - fallbackLang = Lang, - }) -end diff --git a/locales/is.json b/locales/is.json new file mode 100644 index 0000000..9b9288b --- /dev/null +++ b/locales/is.json @@ -0,0 +1,53 @@ +{ + "error": { + "bled_out": "Þér hefur blætt út..." + }, + "success": { + "wounds_healed": "Sár þín hafa verið gróin!" + }, + "info": { + "self_death": "Sjálfir eða an NPC", + "wep_unknown": "Óþekktur", + "status": "Stöðuskoðun", + "healthy": "Þú ert alveg heilbrigð aftur!", + "pain_message": "Þinn %s finnst %s", + "many_places": "Þú ert með verki víða...", + "bleed_alert": "Þú ert %s", + "revive_player_a": "Endurlífga leikmann eða sjálfan þig (Aðeins stjórnandi)", + "player_id": "Leikmaður ID (gæti verið tómt)", + "pain_level": "Stilltu verkjastig þitt eða leikmanns (Aðeins stjórnandi)", + "kill": "Drepa leikmann eða sjálfan þig (Aðeins stjórnandi)", + "heal_player_a": "Lækna leikmann eða sjálfan þig (Aðeins stjórnandi)" + }, + "states": { + "irritated": "pirruð", + "quite_painful": "frekar sárt", + "painful": "sársaukafullt", + "really_painful": "virkilega sárt", + "little_bleed": "blæðir smá...", + "bleed": "blæðingar...", + "lot_bleed": "blæðir mikið...", + "big_bleed": "blæðir mjög mikið..." + }, + "body": { + "head": "Höfuð", + "neck": "Háls", + "spine": "Hrygg", + "upper_body": "Efri líkami", + "lower_body": "Neðri líkami", + "left_arm": "Vinstri armur", + "left_hand": "Vinstri hönd", + "left_fingers": "Vinstri fingur", + "left_leg": "Vinstri fótur", + "left_foot": "Vinstri fótur", + "right_arm": "Hægri armur", + "right_hand": "Hægri hönd", + "right_fingers": "Hægri fingur", + "right_leg": "Hægri fótur", + "right_foot": "Hægri fótur" + }, + "logs": { + "death_log_title": "%s (%s) er dáinn", + "death_log_message": "%s has killed %s með **%s** (%s)" + } +} \ No newline at end of file diff --git a/locales/is.lua b/locales/is.lua deleted file mode 100644 index 2622cfc..0000000 --- a/locales/is.lua +++ /dev/null @@ -1,61 +0,0 @@ -local Translations = { - error = { - bled_out = 'Þér hefur blætt út...', - }, - success = { - wounds_healed = 'Sár þín hafa verið gróin!', - }, - info = { - self_death = 'Sjálfir eða an NPC', - wep_unknown = 'Óþekktur', - status = 'Stöðuskoðun', - healthy = 'Þú ert alveg heilbrigð aftur!', - pain_message = 'Þinn %{limb} finnst %{severity}', - many_places = 'Þú ert með verki víða...', - bleed_alert = 'Þú ert %{bleedstate}', - revive_player_a = 'Endurlífga leikmann eða sjálfan þig (Aðeins stjórnandi)', - player_id = 'Leikmaður ID (gæti verið tómt)', - pain_level = 'Stilltu verkjastig þitt eða leikmanns (Aðeins stjórnandi)', - kill = 'Drepa leikmann eða sjálfan þig (Aðeins stjórnandi)', - heal_player_a = 'Lækna leikmann eða sjálfan þig (Aðeins stjórnandi)', - }, - states = { - irritated = 'pirruð', - quite_painful = 'frekar sárt', - painful = 'sársaukafullt', - really_painful = 'virkilega sárt', - little_bleed = 'blæðir smá...', - bleed = 'blæðingar...', - lot_bleed = 'blæðir mikið...', - big_bleed = 'blæðir mjög mikið...', - }, - body = { - head = 'Höfuð', - neck = 'Háls', - spine = 'Hrygg', - upper_body = 'Efri líkami', - lower_body = 'Neðri líkami', - left_arm = 'Vinstri armur', - left_hand = 'Vinstri hönd', - left_fingers = 'Vinstri fingur', - left_leg = 'Vinstri fótur', - left_foot = 'Vinstri fótur', - right_arm = 'Hægri armur', - right_hand = 'Hægri hönd', - right_fingers = 'Hægri fingur', - right_leg = 'Hægri fótur', - right_foot = 'Hægri fótur', - }, - logs = { - death_log_title = "%{playername} (%{playerid}) er dáinn", - death_log_message = "%{killername} has killed %{playername} með **%{weaponlabel}** (%{weaponname})", - } -} - -if GetConvar('qb_locale', 'en') == 'is' 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..0feb353 --- /dev/null +++ b/locales/it.json @@ -0,0 +1,53 @@ +{ + "error": { + "bled_out": "Sei dissanguato..." + }, + "success": { + "wounds_healed": "Le tue ferite sono state guarite!" + }, + "info": { + "self_death": "Se stesso o un NPC", + "wep_unknown": "Sconosciuto", + "status": "Verifica stato", + "healthy": "Sei di completamente in salute!", + "pain_message": "Hai %s e ti senti %s", + "many_places": "Hai dolori in molti posti...", + "bleed_alert": "Sei %s", + "revive_player_a": "Rianima un giocatore o te stesso (Solo Admin)", + "player_id": "ID Giocatore (può essere vuoto)", + "pain_level": "Imposta il tuo o un livello di dolore di un giocatore (Solo Admin)", + "kill": "Uccidi un giocatore o te stesso (Solo Admin)", + "heal_player_a": "Cura un giocatore o te stesso (Solo Admin)" + }, + "states": { + "irritated": "irritato", + "quite_painful": "abbastanza doloroso", + "painful": "doloroso", + "really_painful": "davvero doloroso", + "little_bleed": "sanguindo un po'...", + "bleed": "sanguindo...", + "lot_bleed": "sanguindo molto...", + "big_bleed": "sanguindo tantissimo..." + }, + "body": { + "head": "Testa", + "neck": "Collo", + "spine": "Dorso", + "upper_body": "Torace", + "lower_body": "Bacino", + "left_arm": "Braccio sinistro", + "left_hand": "Mano sinistra", + "left_fingers": "Dita sinistra", + "left_leg": "Gamba sinistra", + "left_foot": "Piede sinistro", + "right_arm": "Braccio destro", + "right_hand": "Mano destra", + "right_fingers": "Dita destra", + "right_leg": "Gamba destra", + "right_foot": "Piede destro" + }, + "logs": { + "death_log_title": "%s (%s) è morto", + "death_log_message": "%s ha ucciso %s con **%s** (%s)" + } +} \ No newline at end of file diff --git a/locales/it.lua b/locales/it.lua deleted file mode 100644 index 63d7e6f..0000000 --- a/locales/it.lua +++ /dev/null @@ -1,61 +0,0 @@ -local Translations = { - error = { - bled_out = 'Sei dissanguato...', - }, - success = { - wounds_healed = 'Le tue ferite sono state guarite!', - }, - info = { - self_death = 'Se stesso o un NPC', - wep_unknown = 'Sconosciuto', - status = 'Verifica stato', - healthy = 'Sei di completamente in salute!', - pain_message = 'Hai %{limb} e ti senti %{severity}', - many_places = 'Hai dolori in molti posti...', - bleed_alert = 'Sei %{bleedstate}', - revive_player_a = 'Rianima un giocatore o te stesso (Solo Admin)', - player_id = 'ID Giocatore (può essere vuoto)', - pain_level = 'Imposta il tuo o un livello di dolore di un giocatore (Solo Admin)', - kill = 'Uccidi un giocatore o te stesso (Solo Admin)', - heal_player_a = 'Cura un giocatore o te stesso (Solo Admin)', - }, - states = { - irritated = 'irritato', - quite_painful = 'abbastanza doloroso', - painful = 'doloroso', - really_painful = 'davvero doloroso', - little_bleed = 'sanguindo un po\'...', - bleed = 'sanguindo...', - lot_bleed = 'sanguindo molto...', - big_bleed = 'sanguindo tantissimo...', - }, - body = { - head = 'Testa', - neck = 'Collo', - spine = 'Dorso', - upper_body = 'Torace', - lower_body = 'Bacino', - left_arm = 'Braccio sinistro', - left_hand = 'Mano sinistra', - left_fingers = 'Dita sinistra', - left_leg = 'Gamba sinistra', - left_foot = 'Piede sinistro', - right_arm = 'Braccio destro', - right_hand = 'Mano destra', - right_fingers = 'Dita destra', - right_leg = 'Gamba destra', - right_foot = 'Piede destro', - }, - logs = { - death_log_title = "%{playername} (%{playerid}) è morto", - death_log_message = "%{killername} ha ucciso %{playername} con **%{weaponlabel}** (%{weaponname})", - } -} - -if GetConvar('qb_locale', 'en') == 'it' then - Lang = Locale:new({ - phrases = Translations, - warnOnMissing = true, - fallbackLang = Lang, - }) -end diff --git a/locales/pt.json b/locales/pt.json new file mode 100644 index 0000000..d78202f --- /dev/null +++ b/locales/pt.json @@ -0,0 +1,53 @@ +{ + "error": { + "bled_out": "Esvaíste-te em sangue..." + }, + "success": { + "wounds_healed": "Os teus ferimentos foram curados!" + }, + "info": { + "self_death": "Eles próprios ou um NPC", + "wep_unknown": "Desconhecido", + "status": "Verificação de Estado", + "healthy": "Estás novamente saudável!", + "pain_message": "O(s) teu(s) %s sente-se %s", + "many_places": "Tens dores em váios locais...", + "bleed_alert": "Tu estás %s", + "revive_player_a": "Reviver um Paciente ou tu mesmo (Somente Admin)", + "player_id": "ID do Jogador (opcional)", + "pain_level": "Define o nįvel de dor a ti ou a outro jogador (Somente Admin)", + "kill": "Matar um jogador ou a ti próprio (Somente Admin)", + "heal_player_a": "Curar um jogador ou a ti próprio (Somente Admin)" + }, + "states": { + "irritated": "irritado", + "quite_painful": "um pouco doloroso", + "painful": "doloroso", + "really_painful": "bastante doloroso", + "little_bleed": "a sangrar um pouco...", + "bleed": "a sangrar...", + "lot_bleed": "a sangrar bastante...", + "big_bleed": "a sangrar terrivelmente..." + }, + "body": { + "head": "Cabeça", + "neck": "Pescoço", + "spine": "Coluna", + "upper_body": "Membros Superiores", + "lower_body": "Membros Inferiores", + "left_arm": "Braço Esquerdo", + "left_hand": "Mão Esquerda", + "left_fingers": "Dedos Esquerdos", + "left_leg": "Perna Esquerda", + "left_foot": "Pé Esquerdo", + "right_arm": "Braço Direito", + "right_hand": "Mão Direita", + "right_fingers": "Dedos Direitos", + "right_leg": "Perna Direita", + "right_foot": "Pé Direito" + }, + "logs": { + "death_log_title": "%s (%s) foi morto", + "death_log_message": "%s foi morto %s com uma **%s** (%s)" + } +} diff --git a/locales/pt.lua b/locales/pt.lua deleted file mode 100644 index fb473df..0000000 --- a/locales/pt.lua +++ /dev/null @@ -1,61 +0,0 @@ -local Translations = { - error = { - bled_out = 'Esvaíste-te em sangue...', - }, - success = { - wounds_healed = 'Os teus ferimentos foram curados!', - }, - info = { - self_death = 'Eles próprios ou um NPC', - wep_unknown = 'Desconhecido', - status = 'Verificação de Estado', - healthy = 'Estás novamente saudável!', - pain_message = 'O(s) teu(s) %{limb} sente-se %{severity}', - many_places = 'Tens dores em váios locais...', - bleed_alert = 'Tu estás %{bleedstate}', - revive_player_a = 'Reviver um Paciente ou tu mesmo (Somente Admin)', - player_id = 'ID do Jogador (opcional)', - pain_level = 'Define o nįvel de dor a ti ou a outro jogador (Somente Admin)', - kill = 'Matar um jogador ou a ti próprio (Somente Admin)', - heal_player_a = 'Curar um jogador ou a ti próprio (Somente Admin)', - }, - states = { - irritated = 'irritado', - quite_painful = 'um pouco doloroso', - painful = 'doloroso', - really_painful = 'bastante doloroso', - little_bleed = 'a sangrar um pouco...', - bleed = 'a sangrar...', - lot_bleed = 'a sangrar bastante...', - big_bleed = 'a sangrar terrivelmente...', - }, - body = { - head = 'Cabeça', - neck = 'Pescoço', - spine = 'Coluna', - upper_body = 'Membros Superiores', - lower_body = 'Membros Inferiores', - left_arm = 'Braço Esquerdo', - left_hand = 'Mão Esquerda', - left_fingers = 'Dedos Esquerdos', - left_leg = 'Perna Esquerda', - left_foot = 'Pé Esquerdo', - right_arm = 'Braço Direito', - right_hand = 'Mão Direita', - right_fingers = 'Dedos Direitos', - right_leg = 'Perna Direita', - right_foot = 'Pé Direito', - }, - logs = { - death_log_title = "%{playername} (%{playerid}) foi morto", - death_log_message = "%{killername} foi morto %{playername} com uma **%{weaponlabel}** (%{weaponname})", - } -} - -if GetConvar('qb_locale', 'en') == 'pt' then - Lang = Locale:new({ - phrases = Translations, - warnOnMissing = true, - fallbackLang = Lang, - }) -end diff --git a/locales/sk.json b/locales/sk.json new file mode 100644 index 0000000..38e6839 --- /dev/null +++ b/locales/sk.json @@ -0,0 +1,53 @@ +{ + "error": { + "bled_out": "Vykrvácal si..." + }, + "success": { + "wounds_healed": "Tvoje rany sú zahojené!" + }, + "info": { + "self_death": "Sami alebo NPC", + "wep_unknown": "Neznáme", + "status": "Kontrola stavu", + "healthy": "Si opäť úplne zdravý!", + "pain_message": "Tvoje %s cítia %s", + "many_places": "Máte bolesti na mnohých miestach...", + "bleed_alert": "Si %s", + "revive_player_a": "Oživiť seba samého alebo hráča (Len pre Adminov)", + "player_id": "Hráčove ID (nepovinné)", + "pain_level": "Nastaviť svoju úroveň bolesti alebo pre hráča (Len pre Adminov)", + "kill": "Zabiť seba samého alebo hráča (Len pre Adminov)", + "heal_player_a": "Uzdraviť seba samého alebo hráča (Admin Only)" + }, + "states": { + "irritated": "podráždený", + "quite_painful": "trochu bolestivé", + "painful": "bolestivé", + "really_painful": "veľmi bolestivé", + "little_bleed": "menšie krvácanie...", + "bleed": "krvácanie...", + "lot_bleed": "veľa krvácanie...", + "big_bleed": "masívne krvácanie..." + }, + "body": { + "head": "Hlava", + "neck": "Krk", + "spine": "Chrbtica", + "upper_body": "Horná časť tela", + "lower_body": "Dolná časť tela", + "left_arm": "Ľavé Rameno", + "left_hand": "Ľavá Ruka", + "left_fingers": "Prsty na Ľavej Ruke", + "left_leg": "Ľavá noha", + "left_foot": "Ľavé chodidlo", + "right_arm": "Pravé rameno", + "right_hand": "Pravá ruka", + "right_fingers": "Prsty na Pravej Ruke", + "right_leg": "Pravá noha", + "right_foot": "Pravé chodidlo" + }, + "logs": { + "death_log_title": "%s (%s) je mrtvý", + "death_log_message": "%s zabil %s s **%s** (%s)" + } +} \ No newline at end of file diff --git a/locales/sk.lua b/locales/sk.lua deleted file mode 100644 index c9b22e3..0000000 --- a/locales/sk.lua +++ /dev/null @@ -1,61 +0,0 @@ -local Translations = { - error = { - bled_out = 'Vykrvácal si...', - }, - success = { - wounds_healed = 'Tvoje rany sú zahojené!', - }, - info = { - self_death = 'Sami alebo NPC', - wep_unknown = 'Neznáme', - status = 'Kontrola stavu', - healthy = 'Si opäť úplne zdravý!', - pain_message = 'Tvoje %{limb} cítia %{severity}', - many_places = 'Máte bolesti na mnohých miestach...', - bleed_alert = 'Si %{bleedstate}', - revive_player_a = 'Oživiť seba samého alebo hráča (Len pre Adminov)', - player_id = 'Hráčove ID (nepovinné)', - pain_level = 'Nastaviť svoju úroveň bolesti alebo pre hráča (Len pre Adminov)', - kill = 'Zabiť seba samého alebo hráča (Len pre Adminov)', - heal_player_a = 'Uzdraviť seba samého alebo hráča (Admin Only)', - }, - states = { - irritated = 'podráždený', - quite_painful = 'trochu bolestivé', - painful = 'bolestivé', - really_painful = 'veľmi bolestivé', - little_bleed = 'menšie krvácanie...', - bleed = 'krvácanie...', - lot_bleed = 'veľa krvácanie...', - big_bleed = 'masívne krvácanie...', - }, - body = { - head = 'Hlava', - neck = 'Krk', - spine = 'Chrbtica', - upper_body = 'Horná časť tela', - lower_body = 'Dolná časť tela', - left_arm = 'Ľavé Rameno', - left_hand = 'Ľavá Ruka', - left_fingers = 'Prsty na Ľavej Ruke', - left_leg = 'Ľavá noha', - left_foot = 'Ľavé chodidlo', - right_arm = 'Pravé rameno', - right_hand = 'Pravá ruka', - right_fingers = 'Prsty na Pravej Ruke', - right_leg = 'Pravá noha', - right_foot = 'Pravé chodidlo', - }, - logs = { - death_log_title = "%{playername} (%{playerid}) je mrtvý", - death_log_message = "%{killername} zabil %{playername} s **%{weaponlabel}** (%{weaponname})", - } -} - -if GetConvar('qb_locale', 'en') == 'sk' then - Lang = Locale:new({ - phrases = Translations, - warnOnMissing = true, - fallbackLang = Lang, - }) -end diff --git a/locales/sv.json b/locales/sv.json new file mode 100644 index 0000000..2e3c757 --- /dev/null +++ b/locales/sv.json @@ -0,0 +1,53 @@ +{ + "error": { + "bled_out": "Du har blödit ut..." + }, + "success": { + "wounds_healed": "Dina skador har blivit behandlade!" + }, + "info": { + "self_death": "Själva eller en npc", + "wep_unknown": "Okänd", + "status": "Statuscheck", + "healthy": "Du är helt frisk igen!", + "pain_message": "%s i %s", + "many_places": "Du har smärta på många ställen...", + "bleed_alert": "Du %s", + "revive_player_a": "Återuppliva en spelare eller dig själv (Admin Only)", + "player_id": "Spelar-ID (kan vara tomt)", + "pain_level": "Ställ in dina eller en spelare smärtnivå (Admin Only)", + "kill": "Döda en spelare eller dig själv (Admin Only)", + "heal_player_a": "Läk en spelare eller dig själv (Admin Only)" + }, + "states": { + "irritated": "Måttlig Smärta", + "quite_painful": "Medelsvår Smärta", + "painful": "Svår Smärta", + "really_painful": "Outhärdlig Smärta", + "little_bleed": "blöder lite..", + "bleed": "blöder..", + "lot_bleed": "blöder mycket..", + "big_bleed": "blöder väldigt mycket.." + }, + "body": { + "head": "Huvud", + "neck": "Nacke", + "spine": "Rygg", + "upper_body": "Övrekroppen", + "lower_body": "Underkroppen", + "left_arm": "Vänster arm", + "left_hand": "Vänster hand", + "left_fingers": "Vänster fingrar", + "left_leg": "Vänster ben", + "left_foot": "Vänster fot", + "right_arm": "Höger arm", + "right_hand": "Höger hand", + "right_fingers": "Höger fingrar", + "right_leg": "Höger ben", + "right_foot": "Höger fot" + }, + "logs": { + "death_log_title": "%s (%s) är död", + "death_log_message": "%s har dödat %s med en **%s** (%s)" + } +} \ No newline at end of file diff --git a/locales/sv.lua b/locales/sv.lua deleted file mode 100644 index f0711a5..0000000 --- a/locales/sv.lua +++ /dev/null @@ -1,61 +0,0 @@ -local Translations = { - error = { - bled_out = 'Du har blödit ut...', - }, - success = { - wounds_healed = 'Dina skador har blivit behandlade!', - }, - info = { - self_death = 'Själva eller en npc', - wep_unknown = 'Okänd', - status = 'Statuscheck', - healthy = 'Du är helt frisk igen!', - pain_message = '%{severity} i %{limb}', - many_places = 'Du har smärta på många ställen...', - bleed_alert = 'Du %{bleedstate}', - revive_player_a = 'Återuppliva en spelare eller dig själv (Admin Only)', - player_id = 'Spelar-ID (kan vara tomt)', - pain_level = 'Ställ in dina eller en spelare smärtnivå (Admin Only)', - kill = 'Döda en spelare eller dig själv (Admin Only)', - heal_player_a = 'Läk en spelare eller dig själv (Admin Only)', - }, - states = { - irritated = 'Måttlig Smärta', - quite_painful = 'Medelsvår Smärta', - painful = 'Svår Smärta', - really_painful = 'Outhärdlig Smärta', - little_bleed = 'blöder lite..', - bleed = 'blöder..', - lot_bleed = 'blöder mycket..', - big_bleed = 'blöder väldigt mycket..', - }, - body = { - head = 'Huvud', - neck = 'Nacke', - spine = 'Rygg', - upper_body = 'Övrekroppen', - lower_body = 'Underkroppen', - left_arm = 'Vänster arm', - left_hand = 'Vänster hand', - left_fingers = 'Vänster fingrar', - left_leg = 'Vänster ben', - left_foot = 'Vänster fot', - right_arm = 'Höger arm', - right_hand = 'Höger hand', - right_fingers = 'Höger fingrar', - right_leg = 'Höger ben', - right_foot = 'Höger fot', - }, - logs = { - death_log_title = "%{playername} (%{playerid}) är död", - death_log_message = "%{killername} har dödat %{playername} med en **%{weaponlabel}** (%{weaponname})", - } -} - -if GetConvar('qb_locale', 'en') == 'sv' then - Lang = Locale:new({ - phrases = Translations, - warnOnMissing = true, - fallbackLang = Lang, - }) -end \ No newline at end of file diff --git a/locales/vn.json b/locales/vn.json new file mode 100644 index 0000000..4fc47ff --- /dev/null +++ b/locales/vn.json @@ -0,0 +1,53 @@ +{ + "error": { + "bled_out": "Bạn đang bị chảy máu..." + }, + "success": { + "wounds_healed": "Vết thương của bạn đã lành" + }, + "info": { + "self_death": "Tự sát hoặc NPC", + "wep_unknown": "Vô danh", + "status": "Kiểm tra trạng thái", + "healthy": "Bạn đã được chữa lành!", + "pain_message": " %s đang bị %s", + "many_places": "Bạn bị đau nghiêm trọng...", + "bleed_alert": "Bạn bị %s", + "revive_player_a": "Hồi sinh bản thân hoặc ngươi chơi (Chỉ Admin)", + "player_id": "ID người chơi (có thể để trống)", + "pain_level": "Đặt mức độ bị thương cho chính bản thân hoặc người chơi (Chỉ Admin)", + "kill": "Giết người chơi hoặc bản thân (Chỉ Admin)", + "heal_player_a": "Hồi máu cho bản thân hoặc ngươi chơi (Chỉ Admin)" + }, + "states": { + "irritated": "Nhức", + "quite_painful": "Hơi đau", + "painful": "Đau", + "really_painful": "Đau nghiêm trọng", + "little_bleed": "Mất máu ít...", + "bleed": "Đang mất máu...", + "lot_bleed": "Mất máu nhiều...", + "big_bleed": "Mất máu nghiêm trọng..." + }, + "body": { + "head": "Đầu", + "neck": "Cổ", + "spine": "Xương sống", + "upper_body": "Thân trên", + "lower_body": "Thân dưới", + "left_arm": "Cánh tay trái", + "left_hand": "Bàn tay trái", + "left_fingers": "Ngón tay trái", + "left_leg": "Chân trái", + "left_foot": "Bàn chân trái", + "right_arm": "Cánh tay phải", + "right_hand": "Bàn tay phải", + "right_fingers": "Ngón tay phải", + "right_leg": "Chân phải", + "right_foot": "Bàn chân phải" + }, + "logs": { + "death_log_title": "%s (%s) đã chết", + "death_log_message": "%s đã giết %s bằng một **%s** (%s)" + } +} diff --git a/locales/vn.lua b/locales/vn.lua deleted file mode 100644 index 413a508..0000000 --- a/locales/vn.lua +++ /dev/null @@ -1,61 +0,0 @@ -local Translations = { - error = { - bled_out = 'Bạn đang bị chảy máu...', - }, - success = { - wounds_healed = 'Vết thương của bạn đã lành', - }, - info = { - self_death = 'Tự sát hoặc NPC', - wep_unknown = 'Vô danh', - status = 'Kiểm tra trạng thái', - healthy = 'Bạn đã được chữa lành!', - pain_message = ' %{limb} đang bị %{severity}', - many_places = 'Bạn bị đau nghiêm trọng...', - bleed_alert = 'Bạn bị %{bleedstate}', - revive_player_a = 'Hồi sinh bản thân hoặc ngươi chơi (Chỉ Admin)', - player_id = 'ID người chơi (có thể để trống)', - pain_level = 'Đặt mức độ bị thương cho chính bản thân hoặc người chơi (Chỉ Admin)', - kill = 'Giết người chơi hoặc bản thân (Chỉ Admin)', - heal_player_a = 'Hồi máu cho bản thân hoặc ngươi chơi (Chỉ Admin)', - }, - states = { - irritated = 'Nhức', - quite_painful = 'Hơi đau', - painful = 'Đau', - really_painful = 'Đau nghiêm trọng', - little_bleed = 'Mất máu ít...', - bleed = 'Đang mất máu...', - lot_bleed = 'Mất máu nhiều...', - big_bleed = 'Mất máu nghiêm trọng...', - }, - body = { - head = 'Đầu', - neck = 'Cổ', - spine = 'Xương sống', - upper_body = 'Thân trên', - lower_body = 'Thân dưới', - left_arm = 'Cánh tay trái', - left_hand = 'Bàn tay trái', - left_fingers = 'Ngón tay trái', - left_leg = 'Chân trái', - left_foot = 'Bàn chân trái', - right_arm = 'Cánh tay phải', - right_hand = 'Bàn tay phải', - right_fingers = 'Ngón tay phải', - right_leg = 'Chân phải', - right_foot = 'Bàn chân phải', - }, - logs = { - death_log_title = "%{playername} (%{playerid}) đã chết", - death_log_message = "%{killername} đã giết %{playername} bằng một **%{weaponlabel}** (%{weaponname})", - } -} - -if GetConvar('qb_locale', 'en') == 'vn' then - Lang = Locale:new({ - phrases = Translations, - warnOnMissing = true, - fallbackLang = Lang, - }) -end diff --git a/server/main.lua b/server/main.lua index c220c70..335f547 100644 --- a/server/main.lua +++ b/server/main.lua @@ -134,48 +134,48 @@ end lib.callback.register('qbx_medical:server:resetHungerAndThirst', resetHungerAndThirst) lib.addCommand('revive', { - help = Lang:t('info.revive_player_a'), + help = locale('info.revive_player_a'), restricted = 'group.admin', params = { - { name = 'id', help = Lang:t('info.player_id'), type = 'playerId', optional = true }, + { name = 'id', help = locale('info.player_id'), type = 'playerId', optional = true }, } }, function(source, args) if not args.id then args.id = source end local player = exports.qbx_core:GetPlayer(tonumber(args.id)) if not player then - exports.qbx_core:Notify(source, Lang:t('error.not_online'), 'error') + exports.qbx_core:Notify(source, locale('error.not_online'), 'error') return end revivePlayer(args.id) end) lib.addCommand('kill', { - help = Lang:t('info.kill'), + help = locale('info.kill'), restricted = 'group.admin', params = { - { name = 'id', help = Lang:t('info.player_id'), type = 'playerId', optional = true }, + { name = 'id', help = locale('info.player_id'), type = 'playerId', optional = true }, } }, function(source, args) if not args.id then args.id = source end local player = exports.qbx_core:GetPlayer(tonumber(args.id)) if not player then - exports.qbx_core:Notify(source, Lang:t('error.not_online'), 'error') + exports.qbx_core:Notify(source, locale('error.not_online'), 'error') return end lib.callback.await('qbx_medical:client:killPlayer', args.id) end) lib.addCommand('aheal', { - help = Lang:t('info.heal_player_a'), + help = locale('info.heal_player_a'), restricted = 'group.admin', params = { - { name = 'id', help = Lang:t('info.player_id'), type = 'playerId', optional = true }, + { name = 'id', help = locale('info.player_id'), type = 'playerId', optional = true }, } }, function(source, args) if not args.id then args.id = source end local player = exports.qbx_core:GetPlayer(tonumber(args.id)) if not player then - exports.qbx_core:Notify(source, Lang:t('error.not_online'), 'error') + exports.qbx_core:Notify(source, locale('error.not_online'), 'error') return end heal(args.id)