CrazyGhost 发表于 2024-10-7 08:36:47

汉化保留代码


Locales['en'] = {
    -- client/main.lua -- Notifications
    ['help_notify_checkJailTime'] = 'Press ~INPUT_CONTEXT~ to check your jail time',
    ['help_notify_jailPlayer'] = 'Press ~INPUT_CONTEXT~ to open the Jail Menu',
    ['notify_checkJailTime'] = '%s minutes left',
    ['notify_no_job'] = 'you do not have the required Job',
    ['notify_invalid_name'] = 'name invalid \nenter a valid name',
    ['notify_player_alrd_jail'] = 'player is already in jail',
    ['notify_jailed_player'] = 'you have jailed %s',
    ['notify_cant_jail_yourself'] = 'you can\'t jail yourself',
    ['notify_max_jailtime'] = 'the maximum jailtime is %s',
    ['notify_min_jailtime'] = 'the minimum jailtime is %s',
    ['notify_unjailed_player'] = 'you have successfully unjailed %s %s',
    ['notify_updated_jailtime'] = 'you have updated the jailtime of %s from %s to %s minutes',
    ['notify_jail_released'] = 'you got released from the jail',
      
    -- client/main.lua
    ['title_jail_person'] = 'Jail Person',
    ['title_jailed_players'] = 'Jailed Players',
    ['title_jail_menu'] = 'Jail System',
    ['title_jail_dialog_playername'] = 'enter person name: Max Mustermann',
    ['title_jail_dialog_jailtime'] = 'Jailtime',
    ['title_jail_list_ply'] = 'Jailed Person',
    ['title_jail_list_time'] = 'Orig. Time',
    ['title_jail_list_timeleft'] = 'Time Left',
    ['title_jail_list_date'] = 'Date',
    ['title_jail_list_actions'] = 'Actions',
    ['action_jail_list_update'] = 'Update Jailtime',
    ['action_jail_list_unjail'] = 'Unjail',
    ['title_jail_dialog_update_jailtime'] = 'Update Jailtime of %s',

    ['title_not_unjailed'] = 'not released yet',
    ['title_jail_history'] = 'Prison Logs',
    ['title_jailed_id'] = 'ID',
    ['title_jailed_name'] = 'Name',
    ['title_jailed_date'] = 'Jailed on',
    ['title_jail_time'] = 'Jail Time',
    ['title_jailed_by'] = 'Jailed by',
    ['title_unjailed_by'] = 'Released by',
    ['title_unjailed_date'] = 'Released on',
    ['title_released'] = 'Jailtime Served',

    -- plugins/mx_jailbreak/jailbreak_client.lua
    ['title_jailbreak'] = 'Broken Out',

    -- server/commands.lua -- Commands
    ['chatnotify_max_jailtime'] = '[^1ERROR^0] The maximum jailtime is ^3%s',
    ['chatnotify_min_jailtime'] = '[^1ERROR^0] The minimum jailtime is ^3%s',
    ['chatnotify_ply_doesnt_exist'] = '[^1ERROR^0] PlayerID ^3%s ^0does not exist!!',
    ['chatnotify_not_jail'] = '[^1ERROR^0] PlayerID ^3%s ^0is not in jail!',
    ['chatnotify_id_jailtime'] = '[^1ERROR^0] ^3<playerID> ^0and ^3<jailtime> ^0required',
    ['chatnotify_no_perms'] = '[^1ERROR^0] ^0you do not have ^3permission ^0to use that command',
    ['chatnotify_id'] = '[^1ERROR^0] ^3<playerID> ^0required',
}


ChatGPT 发表于 2024-10-7 08:44:36

以下是汉化后的代码,保留了原有的结构和注释:

Locales['zh'] = {
    -- client/main.lua -- 通知
    ['help_notify_checkJailTime'] = '按 ~INPUT_CONTEXT~ 检查你的监禁时间',
    ['help_notify_jailPlayer'] = '按 ~INPUT_CONTEXT~ 打开监禁菜单',
    ['notify_checkJailTime'] = '%s 分钟剩余',
    ['notify_no_job'] = '你没有所需的工作',
    ['notify_invalid_name'] = '名字无效
请输入一个有效的名字',
    ['notify_player_alrd_jail'] = '玩家已经在监禁中',
    ['notify_jailed_player'] = '你已监禁 %s',
    ['notify_cant_jail_yourself'] = '你不能监禁自己',
    ['notify_max_jailtime'] = '最大监禁时间为 %s',
    ['notify_min_jailtime'] = '最小监禁时间为 %s',
    ['notify_unjailed_player'] = '你已成功释放 %s %s',
    ['notify_updated_jailtime'] = '你已将 %s 的监禁时间从 %s 更新为 %s 分钟',
    ['notify_jail_released'] = '你已从监狱释放',
      
    -- client/main.lua
    ['title_jail_person'] = '监禁人员',
    ['title_jailed_players'] = '被监禁的玩家',
    ['title_jail_menu'] = '监禁系统',
    ['title_jail_dialog_playername'] = '输入人员姓名: Max Mustermann',
    ['title_jail_dialog_jailtime'] = '监禁时间',
    ['title_jail_list_ply'] = '被监禁人员',
    ['title_jail_list_time'] = '原始时间',
    ['title_jail_list_timeleft'] = '剩余时间',
    ['title_jail_list_date'] = '日期',
    ['title_jail_list_actions'] = '操作',
    ['action_jail_list_update'] = '更新监禁时间',
    ['action_jail_list_unjail'] = '释放',
    ['title_jail_dialog_update_jailtime'] = '更新 %s 的监禁时间',

    ['title_not_unjailed'] = '尚未释放',
    ['title_jail_history'] = '监禁记录',
    ['title_jailed_id'] = 'ID',
    ['title_jailed_name'] = '姓名',
    ['title_jailed_date'] = '监禁日期',
    ['title_jail_time'] = '监禁时间',
    ['title_jailed_by'] = '监禁者',
    ['title_unjailed_by'] = '释放者',
    ['title_unjailed_date'] = '释放日期',
    ['title_released'] = '监禁时间已满',

    -- plugins/mx_jailbreak/jailbreak_client.lua
    ['title_jailbreak'] = '越狱',

    -- server/commands.lua -- 命令
    ['chatnotify_max_jailtime'] = ' 最大监禁时间为 ^3%s',
    ['chatnotify_min_jailtime'] = ' 最小监禁时间为 ^3%s',
    ['chatnotify_ply_doesnt_exist'] = ' 玩家ID ^3%s ^0不存在!!',
    ['chatnotify_not_jail'] = ' 玩家ID ^3%s ^0不在监禁中!',
    ['chatnotify_id_jailtime'] = ' ^3 ^0和 ^3 ^0是必需的',
    ['chatnotify_no_perms'] = ' ^0你没有 ^3权限 ^0使用该命令',
    ['chatnotify_id'] = ' ^3 ^0是必需的',
}

请根据需要将其放入相应的 `Locales` 文件中。
页: [1]
查看完整版本: 汉化保留代码