From 58a71835e402ec921f9602647123ccd2417fe9a2 Mon Sep 17 00:00:00 2001 From: PaPi <89279156+Mesrine67@users.noreply.github.com> Date: Sun, 5 May 2024 19:51:31 +0200 Subject: [PATCH] Update and rename en.lua to en.json change `Lang:t` > `locale` ## Description change of the glass translation system to that of ox_lib --- locales/en.json | 53 ++++++++++++++++++++++++++++++++++++++++++++ locales/en.lua | 58 ------------------------------------------------- 2 files changed, 53 insertions(+), 58 deletions(-) create mode 100644 locales/en.json delete mode 100644 locales/en.lua diff --git a/locales/en.json b/locales/en.json new file mode 100644 index 0000000..9fca222 --- /dev/null +++ b/locales/en.json @@ -0,0 +1,53 @@ +{ + "error": { + "bled_out": "You bled out..." + }, + "success": { + "wounds_healed": "Your wounds have been healed!" + }, + "info": { + "self_death": "Either self or an NPC", + "wep_unknown": "Unknown", + "status": "Check Status", + "healthy": "You are now in perfect health!", + "pain_message": "Your %{limb} is %{severity}", + "many_places": "You are in pain in multiple places...", + "bleed_alert": "You are %{bleedstate}", + "revive_player_a": "Revive someone or yourself (Admin Only)", + "player_id": "Player ID (Can be empty)", + "pain_level": "Set pain level of a player or yourself (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...", + "bleed": "bleeding...", + "lot_bleed": "bleeding a lot...", + "big_bleed": "bleeding heavily..." + }, + "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}) has died", + "death_log_message": "%{killername} killed %{playername} with **%{weaponlabel}** (%{weaponname})" + } +} 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 -})