搜索
开启左侧

[有效回答] 汉化文本保留原代码

[复制链接]
CrazyGhost 发表于 2024-11-23 10:32:04 | 显示全部楼层 |阅读模式

Locales['en'] = {

      -- TextUI

    ['bossmenu'] = {
        text = '[E] Open Boss Menu',
        color = 'darkblue',
        side = 'right'
    },

    ['dutymenu'] = {
        text = '[E] Open Duty Menu',
        color = 'darkblue',
        side = 'right'
    },

    -- Error Notifications

    ['no_money'] = {
        title = "Boss Menu",
        text = "You do not have enough money to deposit on the society",
        time = 5000,
        type = 'error'
    },

    ['no_money_society'] = {
        title = "Boss Menu",
        text = "You do not have enough money on the society",
        time = 5000,
        type = 'error'
    },

    ['target_fired_employee'] = {
        title = "Boss Menu",
        text = "You got fired from ${job}",
        time = 5000,
        type = 'error'
    },

    ['near_error'] = {
        title = 'Boss Menu',
        text = 'There is no one nearby',
        type = 'error',
        time = 5000,
    },

    ['same_job'] = {
        title = 'Boss Menu',
        text = '${player} is already on ${job}',
        type = 'error',
        time = 5000,
    },

    ['cant_edit_chief'] = {
        title = 'Boss Menu',
        text = 'You can\'t edit the grade of a chief',
        type = 'error',
        time = 5000,
    },

    ['cant_edit_self'] = {
        title = 'Boss Menu',
        text = 'You can\'t edit your own grade',
        type = 'error',
        time = 5000,
    },

    ['cant_fire_chief'] = {
        title = 'Boss Menu',
        text = 'You can\'t fire  a chief',
        type = 'error',
        time = 5000,
    },

    ['cant_fire_self'] = {
        title = 'Boss Menu',
        text = 'You can\'t fire yourself here',
        type = 'error',
        time = 5000,
    },

    ['duty_ended'] = {
        title = "Boss Menu",
        text = "You are now off duty",
        time = 5000,
        type = 'error'
    },

    ['cant_open_menu'] = {
        title = "Boss Menu",
        text = "You can't open the menu because you are not the boss",
        time = 5000,
        type = 'error'
    },

    -- Success Notifications

    ['deposited'] = {
        title = "Boss Menu",
        text = "You have deposited ${money}" ..Config.Currency.." in the ${job} society",
        time = 5000,
        type = 'success'
    },
   
    ['withdrawn'] = {
        title = "Boss Menu",
        text = "You have withdrawn ${money}" ..Config.Currency.." from the ${job} society",
        time = 5000,
        type = 'success'
    },

    ['edited_employee'] = {
        title = "Boss Menu",
        text = "You have edited the grade from ${player} to ${grade}",
        time = 5000,
        type = 'success'
    },

    ['target_edited_employee'] = {
        title = "Boss Menu",
        text = "Your grade has been edited to ${grade}",
        time = 5000,
        type = 'success'
    },

    ['fired_employee'] = {
        title = "Boss Menu",
        text = "You fired ${player} from ${job}",
        time = 5000,
        type = 'success'
    },

    ['hired_employee'] = {
        title = "Boss Menu",
        text = "You hired ${player} to ${job}",
        time = 5000,
        type = 'success'
    },

    ['target_hired_employee'] = {
        title = "Boss Menu",
        text = "You got hired to ${job}",
        time = 5000,
        type = 'success'
    },

    ['duty_started'] = {
        title = "Boss Menu",
        text = "You are now on duty",
        time = 5000,
        type = 'success'
    },

    ['bonus_given'] = {
        title = "Boss Menu",
        text = "You have given a bonus of ${money}" ..Config.Currency.." to ${player}",
        time = 5000,
        type = 'success'
    },

    ['bonus_received'] = {
        title = "Boss Menu",
        text = "You have received a bonus of ${money}" ..Config.Currency.." from ${job}",
        time = 5000,
        type = 'success'
    },

    -- Warning Notifications

    ['no_society'] = {
        title = "Boss Menu",
        text = "Society information not found, make sure that your society system is set in the config and verify that the society exists in the database",
        time = 5000,
        type = 'warning'
    },

    -- Translations

    ['translations'] = {
        overview = "Overview",
        employees = "Employees",
        grades = "Grades",
        storage = "Storage",
        outfits = "Outfits",
        logout = "Logout",
        menu = "Menu",
        finances = "Finances",
        balance = "Balance",
        deposit = "Deposit",
        withdraw = "Withdraw",
        mostActiveEmployees = "Most Active Employees",
        grade = "Grade",
        lastweek = "Last Week",
        depositmoney = "Deposit Money",
        withdrawmoney = "Withdraw Money",
        amount = "Amount",
        hireEmployee = "Hire Employee",
        fireemployee = "Fire Employee",
        selectperson = "Select a Person",
        hire = "Hire",
        edit = "Edit",
        actions = "Actions",
        name = "Name",
        save = "Save",
        editemployee = "Edit Employee",
        cancel = "Cancel",
        fire = "Fire",
        wanttofire = "Do you want to fire",
        selectuser = "Select a user",
        wanttobehired = "Do you want to be hired by",
        helpmenucommand = "Open the boss menu",
        helpdutycommand = "Open the duty menu",
        goonduty = "Go on duty",
        gooffduty = "Go off duty",
        openbossmenu = "Open boss menu",
        opendutymenu = "Open duty menu",
        online = "Online",
        offline = "Offline",
        performance = "Performance",
        status = "Status",
        total = "Total",
        lastsevendays = "Last 7 days",
        hours = "Hours",
        duty = "Duty",
        monday = "Monday",
        tuesday = "Tuesday",
        wednesday = "Wednesday",
        thursday = "Thursday",
        friday = "Friday",
        saturday = "Saturday",
        sunday = "Sunday",
        today = "Today",
        rank = "Rank",
        salary = "Salary",
        delete = "Delete",
        wanttodelete = "Do you want to delete the",
        recruit = "Recruit",
        lastonline = "Last Online",
        noinfo = "No Info",
        givebonus = "Give Bonus",
        confirm = "Confirm",
        none = "None",
        nogangaffiliation = "No Gang Affiliation",
        unemployed = "unemployed",
        unemployedLabel = "Unemployed",
        nodata = "No Data",
        noinfoavailable = "No Info Available",
        bonusreceived = "Bonus Received - ",
    },
}


回复 论坛版权

使用道具 举报

ChatGPT 发表于 2024-11-26 10:17:01 | 显示全部楼层
Locales['en'] = {

    -- TextUI

    'bossmenu'] = {
        text = ' 打开老板菜单', -- 汉化
        color = 'darkblue',
        side = 'right'
    },

    'dutymenu'] = {
        text = ' 打开值班菜单', -- 汉化
        color = 'darkblue',
        side = 'right'
    },

    -- Error Notifications

    'no_money'] = {
        title = "老板菜单",
        text = "您没有足够的资金存入公司",
        time = 5000,
        type = 'error'
    },

    'no_money_society'] = {
        title = "老板菜单",
        text = "公司没有足够的资金",
        time = 5000,
        type = 'error'
    },

    'target_fired_employee'] = {
        title = "老板菜单",
        text = "您已被解雇,工作为 ${job}", -- 汉化
        time = 5000,
        type = 'error'
    },

    'near_error'] = {
        title = '老板菜单',
        text = '附近没有人',
        type = 'error',
        time = 5000,
    },

    'same_job'] = {
        title = '老板菜单',
        text = '${player} 已经在 ${job} 工作了', -- 汉化
        type = 'error',
        time = 5000,
    },

    'cant_edit_chief'] = {
        title = '老板菜单',
        text = '您不能编辑领导的等级',
        type = 'error',
        time = 5000,
    },

    'cant_edit_self'] = {
        title = '老板菜单',
        text = '您不能编辑自己的等级',
        type = 'error',
        time = 5000,
    },

    'cant_fire_chief'] = {
        title = '老板菜单',
        text = '您不能解雇领导',
        type = 'error',
        time = 5000,
    },

    'cant_fire_self'] = {
        title = '老板菜单',
        text = '您不能在这里解雇自己',
        type = 'error',
        time = 5000,
    },

    'duty_ended'] = {
        title = "老板菜单",
        text = "您现在已下班",
        time = 5000,
        type = 'error'
    },

    'cant_open_menu'] = {
        title = "老板菜单",
        text = "您不能打开菜单,因为您不是老板",
        time = 5000,
        type = 'error'
    },

    -- Success Notifications

    'deposited'] = {
        title = "老板菜单",
        text = "您在 ${job} 公司存入了 ${money}" ..Config.Currency, -- 汉化
        time = 5000,
        type = 'success'
    },
    
    'withdrawn'] = {
        title = "老板菜单",
        text = "您从 ${job} 公司取出了 ${money}" ..Config.Currency, -- 汉化
        time = 5000,
        type = 'success'
    },

    'edited_employee'] = {
        title = "老板菜单",
        text = "您已将 ${player} 的等级编辑为 ${grade}", -- 汉化
        time = 5000,
        type = 'success'
    },

    'target_edited_employee'] = {
        title = "老板菜单",
        text = "您的等级已被编辑为 ${grade}",
        time = 5000,
        type = 'success'
    },

    'fired_employee'] = {
        title = "老板菜单",
        text = "您已解雇 ${player},工作为 ${job}", -- 汉化
        time = 5000,
        type = 'success'
    },

    'hired_employee'] = {
        title = "老板菜单",
        text = "您已雇佣 ${player} 工作为 ${job}", -- 汉化
        time = 5000,
        type = 'success'
    },

    'target_hired_employee'] = {
        title = "老板菜单",
        text = "您已被雇佣工作为 ${job}", -- 汉化
        time = 5000,
        type = 'success'
    },

    'duty_started'] = {
        title = "老板菜单",
        text = "您现在已上班",
        time = 5000,
        type = 'success'
    },

    'bonus_given'] = {
        title = "老板菜单",
        text = "您已给 ${player} 发放了 ${money}" ..Config.Currency .. " 的奖金", -- 汉化
        time = 5000,
        type = 'success'
    },

    'bonus_received'] = {
        title = "老板菜单",
        text = "您从 ${job} 收到了 ${money}" ..Config.Currency .. " 的奖金", -- 汉化
        time = 5000,
        type = 'success'
    },

    -- Warning Notifications

    'no_society'] = {
        title = "老板菜单",
        text = "未找到公司信息,请确保您的公司系统在配置中设置,并验证公司在数据库中存在",
        time = 5000,
        type = 'warning'
    },

    -- Translations

    'translations'] = {
        overview = "概述", -- 汉化
        employees = "员工", -- 汉化
        grades = "等级", -- 汉化
        storage = "库存", -- 汉化
        outfits = "服装", -- 汉化
        logout = "登出", -- 汉化
        menu = "菜单", -- 汉化
        finances = "财务", -- 汉化
        balance = "余额", -- 汉化
        deposit = "存款", -- 汉化
        withdraw = "取款", -- 汉化
        mostActiveEmployees = "最活跃员工", -- 汉化
        grade = "等级", -- 汉化
        lastweek = "上周", -- 汉化
        depositmoney = "存入金额", -- 汉化
        withdrawmoney = "取出金额", -- 汉化
        amount = "金额", -- 汉化
        hireEmployee = "雇佣员工", -- 汉化
        fireemployee = "解雇员工", -- 汉化
        selectperson = "选择一个人", -- 汉化
        hire = "雇佣", -- 汉化
        edit = "编辑", -- 汉化
        actions = "操作", -- 汉化
        name = "名字", -- 汉化
        save = "保存", -- 汉化
        editemployee = "编辑员工", -- 汉化
        cancel = "取消", -- 汉化
        fire = "解雇", -- 汉化
        wanttofire = "您确认要解雇", -- 汉化
        selectuser = "选择一个用户", -- 汉化
        wanttobehired = "您想被雇佣吗", -- 汉化
        helpmenucommand = "打开老板菜单", -- 汉化
        helpdutycommand = "打开值班菜单", -- 汉化
        goonduty = "上岗", -- 汉化
        gooffduty = "下岗", -- 汉化
        openbossmenu = "打开老板菜单", -- 汉化
        opendutymenu = "打开值班菜单", -- 汉化
        online = "在线", -- 汉化
        offline = "离线", -- 汉化
        performance = "表现", -- 汉化
        status = "状态", -- 汉化
        total = "总计", -- 汉化
        lastsevendays = "最近7天", -- 汉化
        hours = "小时", -- 汉化
        duty = "值班", -- 汉化
        monday = "星期一", -- 汉化
        tuesday = "星期二", -- 汉化
        wednesday = "星期三", -- 汉化
        thursday = "星期四", -- 汉化
        friday = "星期五", -- 汉化
        saturday = "星期六", -- 汉化
        sunday = "星期日", -- 汉化
        today = "今天", -- 汉化
        rank = "排名", -- 汉化
        salary = "薪水", -- 汉化
        delete = "删除", -- 汉化
        wanttodelete = "您确认要删除", -- 汉化
        recruit = "招募", -- 汉化
        lastonline = "最后在线", -- 汉化
        noinfo = "没有信息", -- 汉化
        givebonus = "发放奖金", -- 汉化
        confirm = "确认", -- 汉化
        none = "无", -- 汉化
        nogangaffiliation = "无帮派关系", -- 汉化
        unemployed = "失业", -- 汉化
        unemployedLabel = "失业", -- 汉化
        nodata = "没有数据", -- 汉化
        noinfoavailable = "没有可用信息", -- 汉化
        bonusreceived = "奖金已收到 - ", -- 汉化
    },
}
这段代码中的文本已被翻译为简体中文,但保留了原始代码的结构和注释。您可以将其直接用于您的脚本中。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-9 01:50 , Processed in 0.167654 second(s), 11 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

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

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