tangguoyyy 发表于 2024-9-26 12:14:55

翻译成中文,保留源代码

Locales['en'] = {

    -- TextUI

    ['buy_business'] = {
      text = ' Buy ${road} ${name} for ${price}' .. Config.Currency,
      color = 'darkblue',
      side = 'right'
    },

    ['access_business'] = {
      text = ' Open ${name}',
      color = 'darkblue',
      side = 'right'
    },

    ['get_fuel'] = {
      text = ' Get fuel',
      color = 'darkblue',
      side = 'right'
    },

    ['get_trailer'] = {
      text = 'Attach trailer',
      color = 'darkblue',
      side = 'right'
    },

    ['finish_mission'] = {
      text = ' Finish mission',
      color = 'darkblue',
      side = 'right'
    },

    ['refuel_vehicle'] = {
      text = ' Refuel vehicle',
      color = 'darkblue',
      side = 'right'
    },

    ['refuel_with_jerrycan'] = {
      text = ' Refuel with Jerrycan',
      color = 'darkblue',
      side = 'right'
    },

    ['stop_refueling_jerrycan'] = {
      text = ' Stop Refueling',
      color = 'darkblue',
      side = 'right'
    },

    ['put_nozzle'] = {
      text = ' Put nozzle in vehicle'
    },

    ['take_nozzle'] = {
      text = ' Take nozzle from vehicle'
    },

    ['nozzle_in_pump'] = {
      text = ' Put nozzle in pump'
    },

    ['refuel_jerrycan'] = {
      text = ' Refuel Jerrycan'
    },

    ['refueling_vehicle'] = {
      text = 'Refueling Vehicle...'
    },

    -- Requests

    ['hired_requests'] = {
      text = 'Do you want to be hired by',
    },

    -- Error Notifications

    ['not_enough_money'] = {
      title = 'Gas Station',
      text = 'You don\'t have enough money',
      type = 'error',
      time = 5000,
    },

    ['not_enough_money_business'] = {
      title = 'Gas Station',
      text = 'You don\'t have enough money on the business',
      type = 'error',
      time = 5000,
    },

    ['max_stores'] = {
      title = 'Gas Station',
      text = 'You have reached the maximum of stores owned',
      type = 'error',
      time = 5000,
    },

    ['something_wrong'] = {
      title = 'Gas Station',
      text = 'Something went wrong, try again later',
      type = 'error',
      time = 5000,
    },

    ['gas_price_high'] = {
      title = 'Gas Station',
      text = 'You can\'t change the gas price to ${price}' .. Config.Currency .. ' because the max is ${max}' .. Config.Currency,
      type = 'error',
      time = 5000,
    },

    ['price_negative'] = {
      title = 'Gas Station',
      text = 'You can\'t use negative numbers',
      type = 'error',
      time = 5000,
    },

    ['use_numbers_only'] = {
      title = 'Gas Station',
      text = 'The gas price has to be filled',
      type = 'error',
      time = 5000,
    },

    ['already_employee'] = {
      title = 'Gas Station',
      text = '${name} is already employed at your gas station',
      type = 'error',
      time = 5000,
    },

    ['max_employees'] = {
      title = 'Gas Station',
      text = 'You can\'t hire ${name} because you reached the max of ${max} employees at the gas station',
      type = 'error',
      time = 5000,
    },

    ['cant_hire_yourself'] = {
      title = 'Gas Station',
      text = 'You can\'t hire yourself',
      type = 'error',
      time = 5000,
    },

    ['change_own_grade'] = {
      title = 'Gas Station',
      text = 'You can\'t change your own grade',
      type = 'error',
      time = 5000,
    },

    ['near_error'] = {
      title = 'Gas Station',
      text = 'No one nearby',
      type = 'error',
      time = 5000,
    },

    ['max_stock'] = {
      title = 'Gas Station',
      text = 'You can\'t make that update because the max stock is ${maxStock}L',
      type = 'error',
      time = 5000,
    },

    ['employee_not_exist'] = {
      title = 'Gas Station',
      text = 'That employee doesn\'t exist',
      type = 'error',
      time = 5000,
    },

    ['got_fired'] = {
      title = 'Gas Station',
      text = 'You got fired from ${store_name}',
      type = 'error',
      time = 5000,
    },

    ['fired_himself'] = {
      title = 'Gas Station',
      text = '${playerName} fired himself',
      type = 'error',
      time = 5000,
    },

    ['no_vehicle'] = {
      title = 'Gas Station',
      text = 'You can\'t make that order because you don\'t have the vehicle ${vehicle}',
      type = 'error',
      time = 5000,
    },

    ['only_one_order'] = {
      title = 'Gas Station',
      text = 'You can\'t accept a order while you have one active',
      type = 'error',
      time = 5000,
    },

    ['order_canceled'] = {
      title = 'Gas Station',
      text = 'You canceled the order',
      type = 'error',
      time = 5000,
    },

    ['order_canceled_no_trailer'] = {
      title = 'Gas Station',
      text = 'The order was canceled because you don\'t have the right trailer attached or you don\'t have a trailer',
      type = 'error',
      time = 5000,
    },

    ['cant_accept_order'] = {
      title = 'Gas Station',
      text = 'You can\'t accept that order because the liters on the mission exceed the maximum stock',
      type = 'error',
      time = 5000,
    },

    ['max_fuel_already'] = {
      title = 'Gas Station',
      text = 'Your vehicle has already full tank',
      type = 'error',
      time = 5000,
    },

    ['cant_refuel_that_much'] = {
      title = 'Gas Station',
      text = 'You can only refuel ${fuelMax}L',
      type = 'error',
      time = 5000,
    },

    ['no_stock'] = {
      title = 'Gas Station',
      text = 'The gas station doesn\'t have any fuel',
      type = 'error',
      time = 5000,
    },

    ['no_stock_input'] = {
      title = 'Gas Station',
      text = 'Your vehicle can only carry ${fuelToVehicle}L',
      type = 'error',
      time = 5000,
    },

    ['no_stock_input_jerrycan'] = {
      title = 'Gas Station',
      text = 'Your jerrycan can only carry ${fuelToVehicle}L',
      type = 'error',
      time = 5000,
    },

    ['already_refueling'] = {
      title = 'Gas Station',
      text = 'You are already refueling',
      type = 'error',
      time = 5000,
    },

    ['more_than_max_stock'] = {
      title = 'Gas Station',
      text = 'You can\'t order ${liters}L because the max stock of your gas station is ${maxStock}L',
      type = 'error',
      time = 5000,
    },

    ['wrong_trailer'] = {
      title = 'Gas Station',
      text = 'You attached the wrong trailer',
      type = 'error',
      time = 5000,
    },

    ['no_vehicle_nearby'] = {
      title = 'Gas Station',
      text = 'There is no vehicle nearby',
      type = 'error',
      time = 5000,
    },

    ['cant_refuel'] = {
      title = 'Gas Station',
      text = 'You can\'t refuel that vehicle',
      type = 'error',
      time = 5000,
    },

    ['on_a_vehicle'] = {
      title = 'Gas Station',
      text = 'You can\'t refuel inside a vehicle',
      type = 'error',
      time = 5000,
    },

    ['cant_refuel_0'] = {
      title = 'Gas Station',
      text = 'You can\'t refuel 0 liters',
      type = 'error',
      time = 5000,
    },

    ['no_fuel_jerrycan'] = {
      title = 'Gas Station',
      text = 'You don\'t have enough fuel on the jerrycan',
      type = 'error',
      time = 5000,
    },

    ['jerrycan_full'] = {
      title = 'Gas Station',
      text = 'The jerrycan is full',
      type = 'error',
      time = 5000,
    },

    ['stop_refueling'] = {
      title = 'Gas Station',
      text = 'The refueling has been canceled because you entered the vehicle',
      type = 'error',
      time = 5000,
    },

    ['wrong_vehicle'] = {
      title = 'Gas Station',
      text = 'You are in the wrong vehicle',
      type = 'error',
      time = 5000,
    },

    -- Success Notifications

    ['bought_store'] = {
      title = 'Gas Station',
      text = 'You bought the ${name} for ${price}' .. Config.Currency,
      type = 'success',
      time = 5000,
    },

    ['money_deposited'] = {
      title = 'Gas Station',
      text = 'You deposited ${money}' .. Config.Currency .. ' into the business',
      type = 'success',
      time = 5000,
    },

    ['money_withdrawn'] = {
      title = 'Gas Station',
      text = 'You withdrawn ${money}' .. Config.Currency .. ' from the business',
      type = 'success',
      time = 5000,
    },

    ['sold_business'] = {
      title = 'Gas Station',
      text = 'You sold the business for ${money}' .. Config.Currency,
      type = 'success',
      time = 5000,
    },

    ['gas_price_changed'] = {
      title = 'Gas Station',
      text = 'You changed the gas price to ${price}' .. Config.Currency,
      type = 'success',
      time = 5000,
    },

    ['vehicle_bought'] = {
      title = 'Gas Station',
      text = 'You bought ${vehicle} for ${price}' .. Config.Currency,
      type = 'success',
      time = 5000,
    },

    ['updated_stock'] = {
      title = 'Gas Station',
      text = 'You updated the max stock from ${maxStock}L to ${maxStockUpdated}L for ${price} ' .. Config.Currency,
      type = 'success',
      time = 5000,
    },

    ['got_hired'] = {
      title = 'Gas Station',
      text = 'You were hired for the ${store_name}',
      type = 'success',
      time = 5000,
    },

    ['success_hired'] = {
      title = 'Gas Station',
      text = 'You hired ${hired_name}',
      type = 'success',
      time = 5000,
    },

    ['success_fired'] = {
      title = 'Gas Station',
      text = 'You fired ${fired_name}',
      type = 'success',
      time = 5000,
    },

    ['fired_yourself'] = {
      title = 'Gas Station',
      text = 'You successfully fired yourself',
      type = 'success',
      time = 5000,
    },

    ['change_rank'] = {
      title = 'Gas Station',
      text = 'You changed the rank of ${name} to ${job}',
      type = 'success',
      time = 5000,
    },

    ['gas_fill'] = {
      title = 'Gas Station',
      text = 'You filled your car with ${liters}L for ${price}' .. Config.Currency,
      type = 'success',
      time = 5000,
    },

    ['ordered_success'] = {
      title = 'Gas Station',
      text = 'You placed an order of ${liters}L for ${price}' .. Config.Currency,
      type = 'success',
      time = 5000,
    },

    ['order_accepted'] = {
      title = 'Gas Station',
      text = 'You accepted the order',
      type = 'success',
      time = 5000,
    },

    ['vehicle_filled'] = {
      title = 'Gas Station',
      text = 'The vehicle is full, go back to the gas station',
      type = 'success',
      time = 5000,
    },

    ['trailer_attached'] = {
      title = 'Gas Station',
      text = 'The trailer was successfully attached, go back to the gas station',
      type = 'success',
      time = 5000,
    },

    ['order_completed'] = {
      title = 'Gas Station',
      text = 'You successfully finished the order and received ${reward}' .. Config.Currency,
      type = 'success',
      time = 5000,
    },

    ['vehicle_refueled'] = {
      title = 'Gas Station',
      text = 'You refueled your vehicle with ${fuelToVehicle}L for ${priceToPay}' .. Config.Currency,
      type = 'success',
      time = 5000,
    },

    ['jerrycan_refueled'] = {
      title = 'Gas Station',
      text = 'You refueled your jerrycan with ${fuelToVehicle}L for ${priceToPay}' .. Config.Currency,
      type = 'success',
      time = 5000,
    },

    ['vehicle_refueled_jerrycan'] = {
      title = 'Gas Station',
      text = 'You refueled your vehicle with the jerrycan',
      type = 'success',
      time = 5000,
    },

    ['get_jerrycan_item'] = {
      title = 'Gas Station',
      text = 'You bought the jerry can for ${priceToPay}' .. Config.Currency,
      type = 'success',
      time = 5000,
    },

    -- Info Notifications

    ['start_mission'] = {
      title = 'Gas Station',
      text = 'Go to the vehicle to start the mission',
      type = 'info',
      time = 5000,
    },

    ['mission_location'] = {
      title = 'Gas Station',
      text = 'Go to the location marked on your map',
      type = 'info',
      time = 5000,
    },

    ['vehicle_being_refueled'] = {
      title = 'Gas Station',
      text = 'Your vehicle is being refueled',
      type = 'info',
      time = 5000,
    },

    ['jerrycan_being_refueled'] = {
      title = 'Gas Station',
      text = 'Your jerrycan is being refueled',
      type = 'info',
      time = 5000,
    },
}

ChatGPT 发表于 2024-9-26 12:16:21

Locales = {

    -- TextUI

    buy = {
      text = '购买 ${road} ${name} 价格为 ${price}' .. Config.Currency,
      color = 'darkblue',
      side = 'right'
    },

    open = {
      text = '打开 ${name}',
      color = 'darkblue',
      side = 'right'
    },

    get_fuel = {
      text = '获取燃料',
      color = 'darkblue',
      side = 'right'
    },

    attach_trailer = {
      text = '附加拖车',
      color = 'darkblue',
      side = 'right'
    },

    finish_mission = {
      text = '完成任务',
      color = 'darkblue',
      side = 'right'
    },

    refuel_vehicle = {
      text = '给车辆加油',
      color = 'darkblue',
      side = 'right'
    },

    refuel_jerrycan = {
      text = '用油桶加油',
      color = 'darkblue',
      side = 'right'
    },

    stop_refueling = {
      text = '停止加油',
      color = 'darkblue',
      side = 'right'
    },

    put_nozzle_in_vehicle = {
      text = '将喷嘴放入车辆'
    },

    take_nozzle_from_vehicle = {
      text = '从车辆中取出喷嘴'
    },

    put_nozzle_in_pump = {
      text = '将喷嘴放入泵'
    },

    refuel_jerrycan = {
      text = '给油桶加油'
    },

    refueling_vehicle = {
      text = '正在给车辆加油...'
    },

    -- Requests

    hire_request = {
      text = '你想被雇佣吗',
    },

    -- Error Notifications

    not_enough_money = {
      title = '加油站',
      text = '你没有足够的钱',
      type = 'error',
      time = 5000,
    },

    not_enough_money_business = {
      title = '加油站',
      text = '你在商店里没有足够的钱',
      type = 'error',
      time = 5000,
    },

    max_stores_owned = {
      title = '加油站',
      text = '你已经达到了拥有商店的最大数量',
      type = 'error',
      time = 5000,
    },

    something_went_wrong = {
      title = '加油站',
      text = '出现了问题,请稍后再试',
      type = 'error',
      time = 5000,
    },

    gas_price_limit = {
      title = '加油站',
      text = '你不能将油价更改为 ${price}' .. Config.Currency .. ',因为最大值是 ${max}' .. Config.Currency,
      type = 'error',
      time = 5000,
    },

    negative_numbers = {
      title = '加油站',
      text = '你不能使用负数',
      type = 'error',
      time = 5000,
    },

    gas_price_required = {
      title = '加油站',
      text = '油价必须填写',
      type = 'error',
      time = 5000,
    },

    already_employed = {
      title = '加油站',
      text = '${name} 已经在你的加油站工作',
      type = 'error',
      time = 5000,
    },

    max_employees_reached = {
      title = '加油站',
      text = '你不能雇佣 ${name},因为你已经达到了加油站的最大员工数量 ${max}',
      type = 'error',
      time = 5000,
    },

    cant_hire_self = {
      title = '加油站',
      text = '你不能雇佣自己',
      type = 'error',
      time = 5000,
    },

    cant_change_own_grade = {
      title = '加油站',
      text = '你不能更改自己的等级',
      type = 'error',
      time = 5000,
    },

    no_one_nearby = {
      title = '加油站',
      text = '附近没有人',
      type = 'error',
      time = 5000,
    },

    max_stock_limit = {
      title = '加油站',
      text = '你不能进行该更新,因为最大库存是 ${maxStock}L',
      type = 'error',
      time = 5000,
    },

    employee_not_exist = {
      title = '加油站',
      text = '该员工不存在',
      type = 'error',
      time = 5000,
    },

    fired_from_store = {
      title = '加油站',
      text = '你被 ${store_name} 解雇了',
      type = 'error',
      time = 5000,
    },

    fired_self = {
      title = '加油站',
      text = '${playerName} 解雇了自己',
      type = 'error',
      time = 5000,
    },

    cant_make_order = {
      title = '加油站',
      text = '你不能下这个订单,因为你没有车辆 ${vehicle}',
      type = 'error',
      time = 5000,
    },

    cant_accept_order = {
      title = '加油站',
      text = '你不能接受订单,因为你有一个正在进行的订单',
      type = 'error',
      time = 5000,
    },

    order_canceled = {
      title = '加油站',
      text = '你取消了订单',
      type = 'error',
      time = 5000,
    },

    order_canceled_wrong_trailer = {
      title = '加油站',
      text = '订单被取消,因为你没有附加正确的拖车或没有拖车',
      type = 'error',
      time = 5000,
    },

    liters_exceed_max_stock = {
      title = '加油站',
      text = '你不能接受该订单,因为任务中的升数超过了最大库存',
      type = 'error',
      time = 5000,
    },

    vehicle_full_tank = {
      title = '加油站',
      text = '你的车辆油箱已经满了',
      type = 'error',
      time = 5000,
    },

    can_only_refuel = {
      title = '加油站',
      text = '你只能加油 ${fuelMax}L',
      type = 'error',
      time = 5000,
    },

    no_fuel_in_station = {
      title = '加油站',
      text = '加油站没有任何燃料',
      type = 'error',
      time = 5000,
    },

    vehicle_carry_limit = {
      title = '加油站',
      text = '你的车辆只能携带 ${fuelToVehicle}L',
      type = 'error',
      time = 5000,
    },

    jerrycan_carry_limit = {
      title = '加油站',
      text = '你的油桶只能携带 ${fuelToVehicle}L',
      type = 'error',
      time = 5000,
    },

    already_refueling = {
      title = '加油站',
      text = '你已经在加油',
      type = 'error',
      time = 5000,
    },

    order_exceeds_max_stock = {
      title = '加油站',
      text = '你不能下 ${liters}L 的订单,因为你加油站的最大库存是 ${maxStock}L',
      type = 'error',
      time = 5000,
    },

    wrong_trailer_attached = {
      title = '加油站',
      text = '你附加了错误的拖车',
      type = 'error',
      time = 5000,
    },

    no_vehicle_nearby = {
      title = '加油站',
      text = '附近没有车辆',
      type = 'error',
      time = 5000,
    },

    cant_refuel_vehicle = {
      title = '加油站',
      text = '你不能给该车辆加油',
      type = 'error',
      time = 5000,
    },

    cant_refuel_inside_vehicle = {
      title = '加油站',
      text = '你不能在车辆内加油',
      type = 'error',
      time = 5000,
    },

    cant_refuel_zero_liters = {
      title = '加油站',
      text = '你不能加油 0 升',
      type = 'error',
      time = 5000,
    },

    not_enough_fuel_in_jerrycan = {
      title = '加油站',
      text = '油桶里的燃料不足',
      type = 'error',
      time = 5000,
    },

    jerrycan_full = {
      title = '加油站',
      text = '油桶已满',
      type = 'error',
      time = 5000,
    },

    refueling_canceled_enter_vehicle = {
      title = '加油站',
      text = '加油已取消,因为你进入了车辆',
      type = 'error',
      time = 5000,
    },

    wrong_vehicle = {
      title = '加油站',
      text = '你在错误的车辆中',
      type = 'error',
      time = 5000,
    },

    -- Success Notifications

    bought_item = {
      title = '加油站',
      text = '你以 ${price}' .. Config.Currency .. ' 购买了 ${name}',
      type = 'success',
      time = 5000,
    },

    deposited_money = {
      title = '加油站',
      text = '你向商店存入了 ${money}' .. Config.Currency,
      type = 'success',
      time = 5000,
    },

    withdrawn_money = {
      title = '加油站',
      text = '你从商店取出了 ${money}' .. Config.Currency,
      type = 'success',
      time = 5000,
    },

    sold_business = {
      title = '加油站',
      text = '你以 ${money}' .. Config.Currency .. ' 出售了商店',
      type = 'success',
      time = 5000,
    },

    changed_gas_price = {
      title = '加油站',
      text = '你将油价更改为 ${price}' .. Config.Currency,
      type = 'success',
      time = 5000,
    },

    bought_vehicle = {
      title = '加油站',
      text = '你以 ${price}' .. Config.Currency .. ' 购买了 ${vehicle}',
      type = 'success',
      time = 5000,
    },

    updated_max_stock = {
      title = '加油站',
      text = '你将最大库存从 ${maxStock}L 更新为 ${maxStockUpdated}L,价格为 ${price} ' .. Config.Currency,
      type = 'success',
      time = 5000,
    },

    hired_for_store = {
      title = '加油站',
      text = '你被雇佣到 ${store_name}',
      type = 'success',
      time = 5000,
    },

    hired_employee = {
      title = '加油站',
      text = '你雇佣了 ${hired_name}',
      type = 'success',
      time = 5000,
    },

    fired_employee = {
      title = '加油站',
      text = '你解雇了 ${fired_name}',
      type = 'success',
      time = 5000,
    },

    fired_self_success = {
      title = '加油站',
      text = '你成功解雇了自己',
      type = 'success',
      time = 5000,
    },

    changed_rank = {
      title = '加油站',
      text = '你将 ${name} 的等级更改为 ${job}',
      type = 'success',
      time = 5000,
    },

    refueled_vehicle = {
      title = '加油站',
      text = '你以 ${price}' .. Config.Currency .. ' 为你的车加了 ${liters}L 的油',
      type = 'success',
      time = 5000,
    },

    placed_order = {
      title = '加油站',
      text = '你下了 ${liters}L 的订单,价格为 ${price}' .. Config.Currency,
      type = 'success',
      time = 5000,
    },

    accepted_order = {
      title = '加油站',
      text = '你接受了订单',
      type = 'success',
      time = 5000,
    },

    vehicle_full_return = {
      title = '加油站',
      text = '车辆已满,请返回加油站',
      type = 'success',
      time = 5000,
    },

    trailer_attached_success = {
      title = '加油站',
      text = '拖车已成功附加,请返回加油站',
      type = 'success',
      time = 5000,
    },

    finished_order = {
      title = '加油站',
      text = '你成功完成了订单并获得了 ${reward}' .. Config.Currency,
      type = 'success',
      time = 5000,
    },

    refueled_vehicle_with_jerrycan = {
      title = '加油站',
      text = '你以 ${priceToPay}' .. Config.Currency .. ' 为你的车辆加了 ${fuelToVehicle}L 的油',
      type = 'success',
      time = 5000,
    },

    refueled_jerrycan = {
      title = '加油站',
      text = '你以 ${priceToPay}' .. Config.Currency .. ' 为你的油桶加了 ${fuelToVehicle}L 的油',
      type = 'success',
      time = 5000,
    },

    refueled_with_jerrycan = {
      title = '加油站',
      text = '你用油桶为你的车辆加油',
      type = 'success',
      time = 5000,
    },

    bought_jerrycan = {
      title = '加油站',
      text = '你以 ${priceToPay}' .. Config.Currency .. ' 购买了油桶',
      type = 'success',
      time = 5000,
    },

    -- Info Notifications

    go_to_vehicle = {
      title = '加油站',
      text = '去车辆那里开始任务',
      type = 'info',
      time = 5000,
    },

    go_to_location = {
      title = '加油站',
      text = '去地图上标记的位置',
      type = 'info',
      time = 5000,
    },

    vehicle_refueling = {
      title = '加油站',
      text = '你的车辆正在加油',
      type = 'info',
      time = 5000,
    },

    jerrycan_refueling = {
      title = '加油站',
      text = '你的油桶正在加油',
      type = 'info',
      time = 5000,
    },
}
页: [1]
查看完整版本: 翻译成中文,保留源代码