翻译成中文,保留原有代码
Locales["en"] = {
UI = {
modal = {
save = {
title = "Save customization",
description = "You will remain ugly"
},
exit = {
title = "Exit customization",
description = "No changes will be saved"
},
accept = "Yes",
decline = "No"
},
ped = {
title = "Ped",
model = "Model"
},
headBlend = {
title = "Inheritance",
shape = {
title = "Face",
firstOption = "Father",
secondOption = "Mother",
mix = "Mix"
},
skin = {
title = "Skin",
firstOption = "Father",
secondOption = "Mother",
mix = "Mix"
},
race = {
title = "Race",
shape = "Shape",
skin = "Skin",
mix = "Mix"
}
},
faceFeatures = {
title = "Face Features",
nose = {
title = "Nose",
width = "Width",
height = "Height",
size = "Size",
boneHeight = "Bone height",
boneTwist = "Bone twist",
peakHeight = "Peak height"
},
eyebrows = {
title = "Eyebrows",
height = "Height",
depth = "Depth"
},
cheeks = {
title = "Cheeks",
boneHeight = "Bone height",
boneWidth = "Bone width",
width = "Width"
},
eyesAndMouth = {
title = "Eyes and Mouth",
eyesOpening = "Eyes opening",
lipsThickness = "Lip thickness"
},
jaw = {
title = "Jaw",
width = "Width",
size = "Size"
},
chin = {
title = "Chin",
lowering = "Lowering",
length = "Length",
size = "Size",
hole = "Hole size"
},
neck = {
title = "Neck",
thickness = "Thickness"
}
},
headOverlays = {
title = "Appearance",
hair = {
title = "Hair",
style = "Style",
color = "Color",
highlight = "Highlight",
texture = "Texture",
fade = "Fade"
},
opacity = "Opacity",
style = "Style",
color = "Color",
secondColor = "Secondary Color",
blemishes = "Blemishes",
beard = "Beard",
eyebrows = "Eyebrows",
ageing = "Ageing",
makeUp = "Make up",
blush = "Blush",
complexion = "Complexion",
sunDamage = "Sun damage",
lipstick = "Lipstick",
moleAndFreckles = "Mole and Freckles",
chestHair = "Chest hair",
bodyBlemishes = "Body blemishes",
eyeColor = "Eye color"
},
components = {
title = "Clothes",
drawable = "Drawable",
texture = "Texture",
mask = "Mask",
upperBody = "Hands",
lowerBody = "Legs",
bags = "Bags and parachute",
shoes = "Shoes",
scarfAndChains = "Scarf and chains",
shirt = "Shirt",
bodyArmor = "Body armor",
decals = "Decals",
jackets = "Jackets",
head = "Head"
},
props = {
title = "Props",
drawable = "Drawable",
texture = "Texture",
hats = "Hats and helmets",
glasses = "Glasses",
ear = "Ear",
watches = "Watches",
bracelets = "Bracelets"
},
tattoos = {
title = "Tattoos",
items = {
ZONE_TORSO = "Torso",
ZONE_HEAD = "Head",
ZONE_LEFT_ARM = "Left arm",
ZONE_RIGHT_ARM = "Right arm",
ZONE_LEFT_LEG = "Left leg",
ZONE_RIGHT_LEG = "Right leg"
},
apply = "Apply",
delete = "Remove",
deleteAll = "Remove all Tattoos",
opacity = "Opacity"
}
},
outfitManagement = {
title = "Outfit Management",
jobText = "Manage outfits for Job",
gangText = "Manage outfits for Gang"
},
cancelled = {
title = "Cancelled Customization",
description = "Customization not saved"
},
outfits = {
import = {
title = "Enter outfit code",
menuTitle = "Import Outfit",
description = "Import an outfit from a sharing code",
name = {
label = "Name the Outfit",
placeholder = "A nice outfit",
default = "Imported Outfit"
},
code = {
label = "Outfit Code"
},
success = {
title = "Outfit Imported",
description = "You can now change to the outfit using the outfit menu"
},
failure = {
title = "Import Failure",
description = "Invalid outfit code"
}
},
generate = {
title = "Generate Outfit Code",
description = "Generate an outfit code for sharing",
failure = {
title = "Something went wrong",
description = "Code generation failed for the outfit"
},
success = {
title = "Outfit Code Generated",
description = "Here is your outfit code"
}
},
save = {
menuTitle = "Save current Outfit",
menuDescription = "Save your current outfit as %s outfit",
description = "Save your current outfit",
title = "Name your outfit",
managementTitle = "Management Outfit Details",
name = {
label = "Outfit Name",
placeholder = "Very cool outfit"
},
gender = {
label = "Gender",
male = "Male",
female = "Female"
},
rank = {
label = "Minimum Rank"
},
failure = {
title = "Save Failed",
description = "Outfit with this name already exists"
},
success = {
title = "Success",
description = "Outfit %s has been saved"
}
},
update = {
title = "Update Outfit",
description = "Save your current clothing to an existing outfit",
failure = {
title = "Update Failed",
description = "That outfit does not exist"
},
success = {
title = "Success",
description = "Outfit %s has been updated"
}
},
change = {
title = "Change Outfit",
description = "Pick from any of your currently saved %s outfits",
pDescription = "Pick from any of your currently saved outfits",
failure = {
title = "Something went wrong",
description = "The outfit that you're trying to change to, does not have a base appearance",
}
},
delete = {
title = "Delete Outfit",
description = "Delete a saved %s outfit",
mDescription = "Delete any of your saved outfits",
item = {
title = 'Delete "%s"',
description = "Model: %s%s"
},
success = {
title = "Success",
description = "Outfit Deleted"
}
},
manage = {
title = " Locales["zh"] = {
UI = {
modal = {
save = {
title = "保存自定义",
description = "你将保持丑陋"
},
exit = {
title = "退出自定义",
description = "不会保存任何更改"
},
accept = "是",
decline = "否"
},
ped = {
title = "行人",
model = "模型"
},
headBlend = {
title = "继承",
shape = {
title = "面部",
firstOption = "父亲",
secondOption = "母亲",
mix = "混合"
},
skin = {
title = "皮肤",
firstOption = "父亲",
secondOption = "母亲",
mix = "混合"
},
race = {
title = "种族",
shape = "形状",
skin = "皮肤",
mix = "混合"
}
},
faceFeatures = {
title = "面部特征",
nose = {
title = "鼻子",
width = "宽度",
height = "高度",
size = "大小",
boneHeight = "骨高度",
boneTwist = "骨扭曲",
peakHeight = "峰高度"
},
eyebrows = {
title = "眉毛",
height = "高度",
depth = "深度"
},
cheeks = {
title = "脸颊",
boneHeight = "骨高度",
boneWidth = "骨宽度",
width = "宽度"
},
eyesAndMouth = {
title = "眼睛和嘴巴",
eyesOpening = "眼睛开度",
lipsThickness = "嘴唇厚度"
},
jaw = {
title = "下颌",
width = "宽度",
size = "大小"
},
chin = {
title = "下巴",
lowering = "下降",
length = "长度",
size = "大小",
hole = "孔大小"
},
neck = {
title = "脖子",
thickness = "厚度"
}
},
headOverlays = {
title = "外观",
hair = {
title = "头发",
style = "样式",
color = "颜色",
highlight = "高光",
texture = "纹理",
fade = "渐变"
},
opacity = "不透明度",
style = "样式",
color = "颜色",
secondColor = "第二颜色",
blemishes = "污点",
beard = "胡须",
eyebrows = "眉毛",
ageing = "老化",
makeUp = "化妆",
blush = "腮红",
complexion = "肤色",
sunDamage = "晒伤",
lipstick = "口红",
moleAndFreckles = "痣和雀斑",
chestHair = "胸毛",
bodyBlemishes = "身体污点",
eyeColor = "眼睛颜色"
},
components = {
title = "衣服",
drawable = "可绘制",
texture = "纹理",
mask = "面具",
upperBody = "上肢",
lowerBody = "下肢",
bags = "背包和降落伞",
shoes = "鞋子",
scarfAndChains = "围巾和链条",
shirt = "衬衫",
bodyArmor = "防弹衣",
decals = "贴花",
jackets = "夹克",
head = "头部"
},
props = {
title = "道具",
drawable = "可绘制",
texture = "纹理",
hats = "帽子和头盔",
glasses = "眼镜",
ear = "耳饰",
watches = "手表",
bracelets = "手镯"
},
tattoos = {
title = "纹身",
items = {
ZONE_TORSO = "躯干",
ZONE_HEAD = "头部",
ZONE_LEFT_ARM = "左臂",
ZONE_RIGHT_ARM = "右臂",
ZONE_LEFT_LEG = "左腿",
ZONE_RIGHT_LEG = "右腿"
},
apply = "应用",
delete = "删除",
deleteAll = "删除所有纹身",
opacity = "不透明度"
}
},
outfitManagement = {
title = "打扮管理",
jobText = "管理工作服装",
gangText = "管理帮派服装"
},
cancelled = {
title = "取消自定义",
description = "自定义未保存"
},
outfits = {
import = {
title = "输入服装代码",
menuTitle = "导入服装",
description = "通过共享代码导入服装",
name = {
label = "命名服装",
placeholder = "一个漂亮的服装",
default = "导入的服装"
},
code = {
label = "服装代码"
},
success = {
title = "服装已导入",
description = "您现在可以使用服装菜单更换服装"
},
failure = {
title = "导入失败",
description = "无效的服装代码"
}
},
generate = {
title = "生成服装代码",
description = "生成一个共享服装代码",
failure = {
title = "出了点问题",
description = "服装代码生成失败"
},
success = {
title = "服装代码已生成",
description = "这是您的服装代码"
}
},
save = {
menuTitle = "保存当前服装",
menuDescription = "将当前服装保存为 %s 服装",
description = "保存当前服装",
title = "命名你的服装",
managementTitle = "管理服装详细信息",
name = {
label = "服装名称",
placeholder = "非常酷的服装"
},
gender = {
label = "性别",
male = "男",
female = "女"
},
rank = {
label = "最低等级"
},
failure = {
title = "保存失败",
description = "具有此名称的服装已存在"
},
success = {
title = "成功",
description = "服装 %s 已保存"
}
},
update = {
title = "更新服装",
description = "将当前服装保存到现有服装中",
failure = {
title = "更新失败",
description = "该服装不存在"
},
success = {
title = "成功",
description = "服装 %s 已更新"
}
},
change = {
title = "更改服装",
description = "从当前保存的 %s 服装中选择",
pDescription = "从当前保存的服装中选择",
failure = {
title = "出了点问题",
description = "尝试更换的服装没有基础外观"
}
},
delete = {
title = "删除服装",
description = "删除保存的 %s 服装",
mDescription = "删除任何您保存的服装",
item = {
title = '删除 "%s"',
description = "模型: %s%s"
},
success = {
title = "成功",
description = "服装已删除"
}
},
manage = {
title = "管理服装"
}
}
}
这段代码是FiveM插件中的本地化文件,用于提供界面的多语言支持。
local Translations = {
error = {
negative = 'Trying to sell an invalid amount?',
no_melt = 'You didnt give me anything to melt...',
no_items = 'Not Enough Material',
},
success = {
sold = 'You sold for %{value} x %{value2} $%{value3}',
items_received = '%{value} x %{value2} you received',
},
info = {
title = 'Black marketeer',
subject = 'Melting Items',
message = 'Were done melting your stuff. You can come and get them whenever you want.',
open_pawn = 'Black Market Purchase of Goods',
sell = 'Sell İtems'<
sell_pawn = 'Sell Illegal Goods to a Black Marketer',
melt = 'Melt İtems',
melt_pawn = 'Melt Illegal Minerals',
melt_pickup = 'Get Melted Items',
pawn_closed = 'The black market is closed. Come back between %{value}:00 AM - %{value2}:00 PM',
sell_items = 'Sell Price $%{value}',
back = '⬅ Back',
melt_item = '%{value} Melting',
max = 'Maximum Amount %{değer}',
submit = 'Melt',
melt_wait = 'Give me %{value} minutes and Ill melt your stuff',
}
}
Lang = Locale:new({
phrases = Translations,
warnOnMissing = true
})
翻译成中文,保留原有代码
local Translations = {
error = {
negative = 'Trying to sell an invalid amount?',
no_melt = 'You didnt give me anything to melt...',
no_items = 'Not Enough Material',
},
success = {
sold = 'You sold for %{value} x %{value2} $%{value3}',
items_received = '%{value} x %{value2} you received',
},
info = {
title = 'Black marketeer',
subject = 'Melting Items',
message = 'Were done melting your stuff. You can come and get them whenever you want.',
open_pawn = 'Black Market Purchase of Goods',
sell = 'Sell İtems'<
sell_pawn = 'Sell Illegal Goods to a Black Marketer',
melt = 'Melt İtems',
melt_pawn = 'Melt Illegal Minerals',
melt_pickup = 'Get Melted Items',
pawn_closed = 'The black market is closed. Come back between %{value}:00 AM - %{value2}:00 PM',
sell_items = 'Sell Price $%{value}',
back = '⬅ Back',
melt_item = '%{value} Melting',
max = 'Maximum Amount %{değer}',
submit = 'Melt',
melt_wait = 'Give me %{value} minutes and Ill melt your stuff',
}
}
Lang = Locale:new({
phrases = Translations,
warnOnMissing = true
})
error = {
negative = 'Trying to sell an invalid amount?',
no_melt = 'You didnt give me anything to melt...',
no_items = 'Not Enough Material',
},
success = {
sold = 'You sold for %{value} x %{value2} $%{value3}',
items_received = '%{value} x %{value2} you received',
},
info = {
title = 'Black marketeer',
subject = 'Melting Items',
message = 'Were done melting your stuff. You can come and get them whenever you want.',
open_pawn = 'Black Market Purchase of Goods',
sell = 'Sell İtems'<
sell_pawn = 'Sell Illegal Goods to a Black Marketer',
melt = 'Melt İtems',
melt_pawn = 'Melt Illegal Minerals',
melt_pickup = 'Get Melted Items',
pawn_closed = 'The black market is closed. Come back between %{value}:00 AM - %{value2}:00 PM',
sell_items = 'Sell Price $%{value}',
back = '⬅ Back',
melt_item = '%{value} Melting',
max = 'Maximum Amount %{değer}',
submit = 'Melt',
melt_wait = 'Give me %{value} minutes and Ill melt your stuff',
}
negative = 'Trying to sell an invalid amount?',
no_melt = 'You didnt give me anything to Craft..',
no_items = 'Invalid amount',
},
success = {
sold = 'you sold for %{value} x %{value2} $%{value3} ',
items_received = 'you received %{value} x %{value2} ',
},
info = {
title = 'BOSS',
subject = 'Crafted drugs',
message = 'Craft Ended. You can come and get them whenever you want.',
open_pawn = 'Selling Drugs and crafting',
sell = 'Sell Drugs',
sell_pawn = 'Buy Drugs',
melt = 'Make Drug Craft',
melt_pawn = 'Make Craft',
melt_pickup = 'Undo Crafted Items',
pawn_closed = 'Purchase is closed. Come between %{value}:00 - %{value2}:00',
sell_items = 'Sale price $%{value}',
back = '⬅ Back',
melt_item = '%{value} Craft',
max = 'Max Amound %{değer}',
submit = 'Craft',
melt_wait = ' %{value} Wait Minute, Goods Coming Soon',
local Translations = {
error = {
negative = '尝试出售无效的数量?',
no_melt = '你没有给我任何要熔化的东西...',
no_items = '材料不足',
},
success = {
sold = '你以 %{value} x %{value2} $%{value3} 出售了',
items_received = '你收到了 %{value} x %{value2}',
},
info = {
title = '黑市商人',
subject = '熔化物品',
message = '我们完成了熔化你的东西。你可以随时来取。',
open_pawn = '黑市购买商品',
sell = '出售物品',
sell_pawn = '向黑市商人出售非法商品',
melt = '熔化物品',
melt_pawn = '熔化非法矿物',
melt_pickup = '领取熔化的物品',
pawn_closed = '黑市已关闭。请在 %{value}:00 AM - %{value2}:00 PM 之间返回',
sell_items = '出售价格 $%{value}',
back = '⬅ 返回',
melt_item = '%{value} 正在熔化',
max = '最大数量 %{değer}',
submit = '熔化',
melt_wait = '给我 %{value} 分钟,我会熔化你的东西',
}
}
Lang = Locale:new({
phrases = Translations,
warnOnMissing = true
})
这段代码定义了一个用于处理翻译的本地化功能,其中包含错误信息、成功提示和信息类提示的中文翻译。 local Translations = {
error = {
negative = '尝试出售无效数量?',
no_melt = '你没有给我任何东西来融化...',
no_items = '材料不足',
},
success = {
sold = '你以 %{value} x %{value2} 售出了 $%{value3}',
items_received = '你收到了 %{value} x %{value2}',
},
info = {
title = '黑市商人',
subject = '融化物品',
message = '我们已经融化了你的物品。你可以随时来取。',
open_pawn = '黑市商品购买',
sell = '出售物品',
sell_pawn = '向黑市商人出售非法商品',
melt = '融化物品',
melt_pawn = '融化非法矿石',
melt_pickup = '取回融化的物品',
pawn_closed = '黑市已关闭。请在 %{value}:00 AM - %{value2}:00 PM 之间回来',
sell_items = '出售价格 $%{value}',
back = '⬅ 返回',
melt_item = '%{value} 融化中',
max = '最大数量 %{değer}',
submit = '融化',
melt_wait = '给我 %{value} 分钟,我将融化你的物品',
}
}
Lang = Locale:new({
phrases = Translations,
warnOnMissing = true
})
这段代码是一个FiveM插件中的翻译文件,用于处理各种信息、错误和成功提示的本地化,便于玩家在游戏中理解各种操作的结果。
页:
[1]