搜索
查看: 28|回复: 1
收起左侧

[有效回答] 请帮我汉化 并保留原代码

[复制链接]

升级进度: 45%

菠萝凯 发表于 2024-4-30 15:39:19 | 显示全部楼层 |阅读模式

Strings = {
    currency = '$',
    success = 'Success',
    go_back = '< Go Back',
    cloakroom = 'Cloakroom',
    civilian_wear = 'Civilian Wear',
    armoury_quantity_dialog = 'Quantity To Order',
    quantity = 'Quantity',
    invalid_amount = 'Invalid Amount',
    invalid_amount_desc = 'Please enter a valid amount',
    successful_purchase_desc = 'You have successfully ordered your weapons from the armoury',
    lacking_funds = 'Lacking Funds',
    lacking_funds_desc = 'You are lacking funds in the bank for this purchase',
    no_permission = 'No Permission',
    no_access_desc = 'You do not have authorization to access this!',
    key_map_cuff = 'Handcuff Player',
    key_map_tackle = 'Tackle player while sprinting',
    key_map_job = 'Open Job Menu',
    no_nearby = 'No One Found',
    no_nearby_desc = 'There appears to be no one around',
    invalid_entry = 'Invalid Entry',
    invalid_entry_desc = 'Please enter a valid number',
    fines = 'Fines',
    fines_desc = 'Issue a nearby player a fine',
    search_player = 'Search Suspect',
    search_player_desc = 'Search a nearby suspect',
    jail_player = 'Jail Suspect',
    jail_player_desc = 'Jail a nearby suspect',
    minutes_dialog = 'Sentencing',
    minutes_dialog_field = 'Months',
    escort_player = 'Escort Suspect',
    escort_player_desc = 'Escort a nearby suspect',
    handcuff_player = 'Handcuff Suspect',
    handcuff_player_desc = 'Handcuff a nearby suspect',
    put_in_vehicle = 'Place In Vehicle',
    put_in_vehicle_desc = 'Place nearby suspect in vehicle',
    check_id = 'Check Identification',
    check_id_desc = 'Check nearby suspect\'s I.D.',
    id_result_menu = 'Identification Results',
    name = 'Name',
    job = 'Job',
    job_position = 'Position',
    dob = 'Date Of Birth',
    sex = 'Gender',
    bac = 'BAC',
    licenses = 'Licenses',
    total_licenses = 'Total Licenses:',
    no_licenses = 'No Licenses',
    revoke_license = 'Revoke License',
    license_revoked = 'License Revoked',
    license_revoked_desc = 'You have successfully revoked license',
    armoury_menu = 'Armory Menu',
    take_out_vehicle = 'Remove From Vehicle',
    take_out_vehicle_desc = 'Remove suspect from vehicle',
    not_restrained = 'Target Unrestrained',
    not_restrained_desc = 'You must restrain the criminal before escorting them',
    vehicle_not_found = 'No Vehicle Found',
    vehicle_not_found_desc = 'No vehicle found nearby',
    unconcious = 'Person Unconcious',
    unconcious_desc = 'Person appears unconcious',
    police_garage = 'Garage',
    police = 'Police',
    plate = 'Plate Number',
    owner = 'Owner',
    possibly_stolen = 'Caution!',
    possibly_stolen_desc = 'Vehicle Possibly Stolen',
    vehicle_interactions = 'Vehicle Interactions',
    vehicle_interactions_desc = 'Inspect nearby vehicle',
    vehicle_information = 'Vehicle Information',
    vehicle_information_desc = 'Information on nearby vehicle',
    lockpick_vehicle = 'Lockpick Vehicle',
    locakpick_vehicle_desc = 'Force access to nearby vehicle',
    lockpick_progress = 'Lockpicking Vehicle . . .',
    too_far = 'Too Far Away',
    too_far_desc = 'The target vehicle is too far away',
    lockpicked = 'Successfully Unlocked',
    lockpicked_desc = 'You have successfully unlocked the target vehicle',
    cancelled = 'Cancelled',
    cancelled_desc = 'You cancelled your last action',
    impound_vehicle = 'Impound Vehicle',
    impound_vehicle_desc = 'Impound Nearby Vehicle',
    impounding_progress = 'Impounding Vehicle . . .',
    driver_in_car = 'Driver In Vehicle',
    driver_in_car_desc = 'Remove driver from vehicle prior to impounding!',
    car_impounded_desc = 'Vehicle has been impounded',
    place_object = 'Place Objects',
    place_object_desc = 'Place objects on the floor.',
    prop_help_text = 'Press ~INPUT_CONTEXT~ to move the object.\nPress ~INPUT_DETONATE~ to delete the object.',
    prop_help_text2 = 'Press ~INPUT_CONTEXT~ to place the object.',


}


回复 论坛版权

使用道具 举报

ChatGPT 发表于 2024-4-30 15:39:53 | 显示全部楼层
以下是汉化后的代码和原始代码:
-- 汉化后的代码
Strings = {
    currency = '¥', -- 货币单位
    success = '成功', -- 成功
    go_back = '< 返回', -- 返回
    cloakroom = '更衣室', -- 更衣室
    civilian_wear = '便装', -- 便装
    armoury_quantity_dialog = '订购数量', -- 订购数量对话框
    quantity = '数量', -- 数量
    invalid_amount = '无效数量', -- 无效数量
    invalid_amount_desc = '请输入有效的数量', -- 请输入有效的数量
    successful_purchase_desc = '您已成功从装备库订购了武器', -- 您已成功从装备库订购了武器
    lacking_funds = '资金不足', -- 资金不足
    lacking_funds_desc = '您的银行账户余额不足', -- 您的银行账户余额不足
    no_permission = '无权限', -- 无权限
    no_access_desc = '您没有权限进行操作!', -- 您没有权限进行操作!
    key_map_cuff = '手铐玩家', -- 手铐玩家
    key_map_tackle = '奔跑时铐住玩家', -- 奔跑时铐住玩家
    key_map_job = '打开工作菜单', -- 打开工作菜单
    no_nearby = '未发现玩家', -- 未发现玩家
    no_nearby_desc = '附近似乎没有人', -- 附近似乎没有人
    invalid_entry = '无效输入', -- 无效输入
    invalid_entry_desc = '请输入有效数字', -- 请输入有效数字
    fines = '罚款', -- 罚款
    fines_desc = '对附近玩家开具罚单', -- 对附近玩家开具罚单
    search_player = '搜查嫌疑人', -- 搜查嫌疑人
    search_player_desc = '搜查附近嫌疑人', -- 搜查附近嫌疑人
    jail_player = '监禁嫌疑人', -- 监禁嫌疑人
    jail_player_desc = '监禁附近嫌疑人', -- 监禁附近嫌疑人
    minutes_dialog = '判刑', -- 判刑
    minutes_dialog_field = '月数', -- 月数
    escort_player = '押送嫌疑人', -- 押送嫌疑人
    escort_player_desc = '押送附近嫌疑人', -- 押送附近嫌疑人
    handcuff_player = '上手铐嫌疑人', -- 上手铐嫌疑人
    handcuff_player_desc = '给附近嫌疑人戴上手铐', -- 给附近嫌疑人戴上手铐
    put_in_vehicle = '放入车辆', -- 放入车辆
    put_in_vehicle_desc = '将附近嫌疑人放入车辆', -- 将附近嫌疑人放入车辆
    check_id = '查验身份证', -- 查验身份证
    check_id_desc = '检查附近嫌疑人的身份证', -- 检查附近嫌疑人的身份证
    id_result_menu = '身份证查询结果', -- 身份证查询结果
    name = '姓名', -- 姓名
    job = '工作', -- 工作
    job_position = '职位', -- 职位
    dob = '出生日期', -- 出生日期
    sex = '性别', -- 性别
    bac = '酒精含量', -- 酒精含量
    licenses = '执照', -- 执照
    total_licenses = '总执照数:', -- 总执照数:
    no_licenses = '无执照', -- 无执照
    revoke_license = '吊销执照', -- 吊销执照
    license_revoked = '执照已吊销', -- 执照已吊销
    license_revoked_desc = '您已成功吊销执照', -- 您已成功吊销执照
    armoury_menu = '装备库菜单', -- 装备库菜单
    take_out_vehicle = '将嫌疑人移出车辆', -- 将嫌疑人移出车辆
    take_out_vehicle_desc = '将嫌疑人从车辆中移出', -- 将嫌疑人从车辆中移出
    not_restrained = '目标未受限制', -- 目标未受限制
    not_restrained_desc = '在押送前必须限制罪犯', -- 在押送前必须限制罪犯
    vehicle_not_found = '未找到车辆', -- 未找到车辆
    vehicle_not_found_desc = '附近未找到车辆', -- 附近未找到车辆
    unconcious = '人员昏迷', -- 人员昏迷
    unconcious_desc = '人员似乎昏迷了', -- 人员似乎昏迷了
    police_garage = '警车库', -- 警车库
    police = '警察', -- 警察
    plate = '车牌号', -- 车牌号
    owner = '车主', -- 车主
    possibly_stolen = '警告!', -- 警告!
    possibly_stolen_desc = '车辆可能被盗', -- 车辆可能被盗
    vehicle_interactions = '车辆互动', -- 车辆互动
    vehicle_interactions_desc = '检查附近车辆', -- 检查附近车辆
    vehicle_information = '车辆信息', -- 车辆信息
    vehicle_information_desc = '查看附近车辆信息', -- 查看附近车辆信息
    lockpick_vehicle = '撬锁车辆', -- 撬锁车辆
    locakpick_vehicle_desc = '强行进入附近车辆', -- 强行进入附近车辆
    lockpick_progress = '正在撬锁车辆...', -- 正在撬锁车辆...
    too_far = '距离太远', -- 距离太远
    too_far_desc = '目标车辆距离太远', -- 目标车辆距离太远
    lockpicked = '解锁成功', -- 解锁成功
    lockpicked_desc = '您已成功解锁目标车辆', -- 您已成功解锁目标车辆
    cancelled = '已取消', -- 已取消
    cancelled_desc = '您取消了上一个操作', -- 您取消了上一个操作
    impound_vehicle = '扣押车辆', -- 扣押车辆
    impound_vehicle_desc = '扣押附近车辆', -- 扣押附近车辆
    impounding_progress = '正在扣押车辆...', -- 正在扣押车辆...
    driver_in_car = '车内有驾驶员', -- 车内有驾驶员
    driver_in_car_desc = '扣押前请先移出车内驾驶员!', -- 扣押前请先移出车内驾驶员!
    car_impounded_desc = '车辆已被扣押', -- 车辆已被扣押
    place_object = '放置物品', -- 放置物品
    place_object_desc = '在地上放置物品', -- 在地上放置物品
    prop_help_text = '按 ~INPUT_CONTEXT~ 移动物品。\n按 ~INPUT_DETONATE~ 删除物品。', -- 按 ~INPUT_CONTEXT~ 移动物品。\n按 ~INPUT_DETONATE~ 删除物品。
    prop_help_text2 = '按 ~INPUT_CONTEXT~ 放置物品。', -- 按 ~INPUT_CONTEXT~ 放置物品。
}

该代码应该放在服务器的脚本文件server.lua中。
回复

使用道具 举报

ahome_bigavatar:guest
ahome_bigavatar:welcomelogin
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|首页 ( 冀ICP备2021005225号-1 ) |网站地图

GMT+8, 2024-5-19 04:09 , Processed in 0.256264 second(s), 26 queries .

Powered by Discuz! X3.4

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

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