lizhuoda 发表于 2024-8-13 16:05:46

汉化

不改变代码,汉化
if not Locale then Locale = {} end

Locale['en'] = {
    = 'personal',
    = 'Garage',
    = 'Impound',
    = 'Garage Private',
    = 'Garage House',
    = 'Store Vehicle',
    = 'Press',
    = 'Store Helicopter',
    = 'Buy House Garage',
    = 'Exit Garage',
    = 'Installed',
    = 'Not Installed',
    = 'Open Inventory',
    = 'Choose Vehicle',
    = 'Vehicle Parts',
    = 'Garage Inventory',
    = 'Inventory is Empty',
    = 'This Parts is not compatible with this vehicle',
    = 'Install',
    = 'lvl',
    = 'This Parts Does not exist',
    = 'Store',
    = 'You dont have vehicle mod installed yet',
    = 'Buy Garage',
    = 'Visit Garage',
    = 'Garage Menu',
    = 'Garage Share',
    = 'You dont owned this garage',
    = 'Go To Garage',
    = 'Vehicle can be parked here',
    = 'Vehicle has been parked',
    = 'Vehicle has been Unparked',
    = '"Opening Garage...Please wait..',
    = 'Opening Impound...Please wait..',
    = 'You dont have any vehicle',
    = 'You dont have any vehicle in this garage',
    = 'You dont have money to pay the delivery',
    = 'Vehicle is Impounded',
    = 'Vehicle is in Outside:',
    = 'Return Vehicle',
    = 'You dont have access to this garage',
    = 'get out of a vehicle to sign a papers',
    = 'No vehicle in front',
    = 'My Owned Keys',
    = 'Garage Key has been share',
    = 'Garage Key has been Deleted',
    = 'Garage Key has been changed',
    = 'to Hot Wire Vehicle',
    = 'to Cancel',
    = 'Enter Vehicle',
    = 'Vehicle Unlocked',
    = 'Vehicle Locked',
    = 'No Owned Vehicles in area',
    = 'Vehicle Carlock',
    = 'Vehicle Ownership has been transfer',
    = 'Vehicle Key has been Share',
    = 'You can only share the current vehicle',
    = 'Garage is not available in this house',
    --server
    = 'You Successfully store the parts',
    = 'this vehicle mod does not exist in your garage',
    = 'You Successfully Purchase this Garage',
    = 'not enough money cabron',
    = 'You Successfully Stored this vehicle',
    = 'There is not enough space in this garage',
    = 'You dont owned the vehicle',
    = 'You Successfully Take out the vehicle',
    = 'You must be in garage to invite',
    = 'You Successfully Park the vehicle',
    = 'Parking is occupied',
    = 'Not Enough Money to pay parking',
    = 'Successfully Retrieve Owned vehicle',
    = 'Fail to retrieve vehicle, not enough money cabron',
    = 'You dont owned the vehicle',
    = 'You Successfully Store the vehicle',
    = 'You Successfully Take out the vehicle',
    = 'You Impound the Vehicle',
    = 'You Release the Vehicle',
    = 'No one owned this vehicle',
    = 'User Does not Exist!',
}

ChatGPT 发表于 2024-8-15 10:24:06

以下是汉化后的代码,同时保持代码不变:

if not Locale then Locale = {} end

Locale = {
    ['personal'] = '个人',
    ['Garage'] = '车库',
    ['Impound'] = '扣押场',
    ['Garage Private'] = '私人车库',
    ['Garage House'] = '房屋车库',
    ['Store Vehicle'] = '存储车辆',
    ['Press'] = '按下',
    ['Store Helicopter'] = '存储直升机',
    ['Buy House Garage'] = '购买房屋车库',
    ['Exit Garage'] = '退出车库',
    ['Installed'] = '已安装',
    ['Not Installed'] = '未安装',
    ['Open Inventory'] = '打开库存',
    ['Choose Vehicle'] = '选择车辆',
    ['Vehicle Parts'] = '车辆零件',
    ['Garage Inventory'] = '车库库存',
    ['Inventory is Empty'] = '库存为空',
    ['This Parts is not compatible with this vehicle'] = '此零件与该车辆不兼容',
    ['Install'] = '安装',
    ['lvl'] = '等级',
    ['This Parts Does not exist'] = '此零件不存在',
    ['Store'] = '存储',
    ['You dont have vehicle mod installed yet'] = '你还没有安装车辆模组',
    ['Buy Garage'] = '购买车库',
    ['Visit Garage'] = '访问车库',
    ['Garage Menu'] = '车库菜单',
    ['Garage Share'] = '车库共享',
    ['You dont owned this garage'] = '你不拥有这个车库',
    ['Go To Garage'] = '前往车库',
    ['Vehicle can be parked here'] = '车辆可以停在这里',
    ['Vehicle has been parked'] = '车辆已停放',
    ['Vehicle has been Unparked'] = '车辆已经被移开',
    ['"Opening Garage...Please wait..'] = '正在打开车库...请稍候..',
    ['Opening Impound...Please wait..'] = '正在打开扣押场...请稍候..',
    ['You dont have any vehicle'] = '你没有任何车辆',
    ['You dont have any vehicle in this garage'] = '你在这个车库里没有任何车辆',
    ['You dont have money to pay the delivery'] = '你没有钱付运费',
    ['Vehicle is Impounded'] = '车辆被扣押',
    ['Vehicle is in Outside:'] = '车辆在外面:',
    ['Return Vehicle'] = '返回车辆',
    ['You dont have access to this garage'] = '你无权访问这个车库',
    ['get out of a vehicle to sign a papers'] = '下车签字',
    ['No vehicle in front'] = '前方没有车辆',
    ['My Owned Keys'] = '我拥有的钥匙',
    ['Garage Key has been share'] = '车库钥匙已共享',
    ['Garage Key has been Deleted'] = '车库钥匙已删除',
    ['Garage Key has been changed'] = '车库钥匙已更换',
    ['to Hot Wire Vehicle'] = '热接车辆',
    ['to Cancel'] = '取消',
    ['Enter Vehicle'] = '进入车辆',
    ['Vehicle Unlocked'] = '车辆已解锁',
    ['Vehicle Locked'] = '车辆已锁定',
    ['No Owned Vehicles in area'] = '该区域没有拥有的车辆',
    ['Vehicle Carlock'] = '车辆车锁',
    ['Vehicle Ownership has been transfer'] = '车辆所有权已转移',
    ['Vehicle Key has been Share'] = '车辆钥匙已共享',
    ['You can only share the current vehicle'] = '你只能共享当前车辆',
    ['Garage is not available in this house'] = '这所房子没有车库',
    -- server
    ['You Successfully store the parts'] = '你已成功存储零件',
    ['this vehicle mod does not exist in your garage'] = '你的车库中不存在这个车辆模组',
    ['You Successfully Purchase this Garage'] = '你已成功购买这个车库',
    ['not enough money cabron'] = '钱不够,兄弟',
    ['You Successfully Stored this vehicle'] = '你已成功存储这个车辆',
    ['There is not enough space in this garage'] = '这个车库没有足够的空间',
    ['You dont owned the vehicle'] = '你不拥有这辆车',
    ['You Successfully Take out the vehicle'] = '你已成功取出车辆',
    ['You must be in garage to invite'] = '你必须在车库内才能邀请',
    ['You Successfully Park the vehicle'] = '你已成功停车',
    ['Parking is occupied'] = '停车位被占用',
    ['Not Enough Money to pay parking'] = '没有足够的钱支付停车费',
    ['Successfully Retrieve Owned vehicle'] = '成功取回拥有的车辆',
    ['Fail to retrieve vehicle, not enough money cabron'] = '取车失败,钱不够,兄弟',
    ['You dont owned the vehicle'] = '你不拥有这辆车',
    ['You Successfully Store the vehicle'] = '你已成功存储车辆',
    ['You Successfully Take out the vehicle'] = '你已成功取出车辆',
    ['You Impound the Vehicle'] = '你扣押了车辆',
    ['You Release the Vehicle'] = '你释放了车辆',
    ['No one owned this vehicle'] = '没有人拥有这辆车',
    ['User Does not Exist!'] = '用户不存在!',
}

这个文件一般会放在 `client.lua` 中,因为它包含了与用户界面和本地化相关的内容。
页: [1]
查看完整版本: 汉化