搜索
开启左侧

[有效回答] 汉化并保留源代码

[复制链接]
万斯 发表于 2025-8-4 22:54:46 | 显示全部楼层 |阅读模式

["height"] = "Height",
    ["rotate"] = "Rotation",
    ["place"] = "Place Furniture",
    ["delete_furni"] = "Delete",
    ["confirm_buy"] = "Do You Want To Buy %s ?",
    ["price"] = "Price: $%s",
    ["yes"] = "Yes",
    ["no"] = "No",
    ["action"] = "You %s ~b~%s~s~ !",
    ["bought_furni"] = "You Have ~g~Bought~s~ A ~b~%s~s~ !",
    ["edited_furni"] = "You Have Edited ~b~%s~s~ !",
    ["cannot_buy"] = "You ~r~Cannot~s~ Buy This!",
    ["cannot_edit"] = "You ~r~Cannot~s~ Edit This!",
    ["store_title"] = "Store - %s",
    ["back"] = "Return",
    ["edit_title"] = "Editing - %s",
    ["move_title"] = "Move",
    ["deleted_confirm"] = "Deleting ~b~%s~s~!",
    ["deleted_error"] = "Cannot Delete ~b~%s~s~!",
    ["owned_furni"] = "Owned Furniture",
    ["menu_stores"] = "Furniture Stores",
    ["menu_stores_desc"] = "Buy Furniture",
    ["menu_reset"] = "Reset",
    ["menu_reset_desc"] = "Clears All Furniture",
    ["menu_edit"] = "Edit",
    ["menu_edit_desc"] = "Move and/or Delete furniture items",
    ["furni_command"] = "furniture",
    ["furni_command_desc"] = "(ESX Property) Open Furniture Menu",
    ["furni_command_permission"] = "You ~r~Cannot~s~ Access This Menu!",
    ["furni_reset_success"] = "Furniture Reset!",
    ["furni_cannot_afford"] = "You Cannot Afford Todo this!",
    ["furni_reset_error"] = "You ~r~Cannot~s~  Reset This Property!",
    ["furni_management"] = "Manage Furniture",


回复 论坛版权

使用道具 举报

ChatGPT 发表于 2025-8-4 22:55:03 | 显示全部楼层
下面是您提供的代码片段经过汉化后的版本,同时保留了源代码的结构:
"height"] = "高度",
"rotate"] = "旋转",
"place"] = "放置家具",
"delete_furni"] = "删除",
"confirm_buy"] = "您确定要购买 %s 吗?",
"price"] = "价格:$%s",
"yes"] = "是",
"no"] = "否",
"action"] = "您 %s ~b~%s~s~ !",
"bought_furni"] = "您已 ~g~购买~s~ 一件 ~b~%s~s~ !",
"edited_furni"] = "您已编辑 ~b~%s~s~ !",
"cannot_buy"] = "您 ~r~不能~s~ 购买此物品!",
"cannot_edit"] = "您 ~r~不能~s~ 编辑此物品!",
"store_title"] = "商店 - %s",
"back"] = "返回",
"edit_title"] = "编辑 - %s",
"move_title"] = "移动",
"deleted_confirm"] = "正在删除 ~b~%s~s~!",
"deleted_error"] = "无法删除 ~b~%s~s~!",
"owned_furni"] = "拥有的家具",
"menu_stores"] = "家具商店",
"menu_stores_desc"] = "购买家具",
"menu_reset"] = "重置",
"menu_reset_desc"] = "清除所有家具",
"menu_edit"] = "编辑",
"menu_edit_desc"] = "移动和/或删除家具项目",
"furni_command"] = "furniture",
"furni_command_desc"] = "(ESX 财产) 打开家具菜单",
"furni_command_permission"] = "您 ~r~不能~s~ 访问此菜单!",
"furni_reset_success"] = "家具重置成功!",
"furni_cannot_afford"] = "您无法负担此费用!",
"furni_reset_error"] = "您 ~r~不能~s~ 重置此财产!",
"furni_management"] = "管理家具",

这个汉化版的代码与原始代码保持一致,方便使用。根据通常的代码结构,这段代码可以放在 `client.lua` 文件中,因为它涉及到用户界面提示和交互。
回复

使用道具 举报

文明发言,和谐互动
文明发言,和谐互动
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|FiveM技术教程分享 ( 冀ICP备2021005225号-1 ) |网站地图

GMT+8, 2025-9-19 21:31 , Processed in 0.045040 second(s), 9 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2013 ELITE论坛【技术无价-分享快乐】

快速回复 返回顶部 返回列表