jiesen 发表于 2024-10-30 13:05:36

帮我汉化并保存源代码


Locales['en'] = {
yes = "Yes",
no = "No",
garage = "Garage",
jobGarage = "Job Garage",
gangGarage = "Gang Garage",
player = "Player",
impound = "Impound",
inGarage = "In garage",
notInGarage = "Not in garage",
car = "Car",
air = "Air",
sea = "Sea",
fuel = "Fuel",
engine = "Engine",
body = "Body",
day = "day",
days = "days",
hour = "hour",
hours = "hours",
mins = "mins",

-- User Interface
noVehicles = "There are no vehicles in this garage",
noVehiclesAvailableToDrive = "There are no vehicles available to drive",
vehicles = "vehicle(s)",
vehiclePlate = "Vehicle Plate",
vehicleNotInGarage = "Vehicle has been left out",
vehicleTakeOut = "Drive",
vehicleReturnAndTakeOut = "Return & Drive",
vehicleReturnToOwnersGarage = "Return to Owner's Garage",
transferToGarageOrPlayer = "Transfer to a Garage or Player",
transferToGarage = "Transfer to a Garage",
transferToPlayer = "Transfer to a Player",
vehicleTransfer = "Transfer",
noAvailableGarages = "No available garages",
currentGarage = "Current garage",
noPlayersOnline = "No players online",
createPrivateGarage = "Create Private Garage",
pgAlertHeadsUp = "Heads up!",
pgAlertText = "The garage will be created and vehicles will spawn in the exact location and direction are you are currently standing.",
garageName = "Garage Name",
impoundInformation = "Impound Information",
impoundedBy = "Impounded by",
impoundedReason = "Reason",
impoundPlayerCanCollect = "You can collect your vehicle from the impound.",
impoundCollectionContact = "Please contact %{value} in order to collect your vehicle.",
impoundNoVehicles = "There are no vehicles in the impound",
impoundAvailable = "Available",
impoundRetrievableByOwner = "Retrievable by owner",
impoundNoReason = "No reason provided",
impoundVehicle = "Impound Vehicle",
impoundReasonField = "Reason (optional)",
impoundTime = "Impound Time",
impoundAvailableImmediately = "Available immediately",
impoundCost = "Cost",
changeVehiclePlate = "Change Vehicle Plate",
newPlate = "New Plate",
search = "Search by name or plate",
noPrivateGarages = "No private garages",
editPrivateGarage = "Edit Private Garage",
owners = "Owner(s)",
location = "Location",
next = "Next",
previous = "Previous",
page = "Page",
of = "of",
show = "Show",
save = "Save",
edit = "Edit",
delete = "Delete",
garageDeleteConfirm = "Are you sure you want to delete this garage?",
privGarageSearch = "Search by name",
garageUpdatedSuccess = "Garage successfully updated!",
getCurrentCoords = "Get current coordinates",
identifier = "Identifier",
name = "Name",
noPlayers = "There are no players added",
addPlayer = "Add player",
loadingVehicle = "Loading vehicle...",
vehicleSetup = "Vehicle Setup",
extras = "Extras",
extra = "Extra",
liveries = "Liveries",
livery = "Livery",
noLiveries = "No liveries available",
noExtras = "No extras available",
none = "None",
vehicleNeedsService = "Needs Service",
type = "Type",
goInside = "Go inside",

-- Notifications
insertVehicleTypeError = "You can only store %{value} vehicle types in this garage",
insertVehiclePublicError = "You can't store job or gang vehicles in public garages",
vehicleParkedSuccess = "Vehicle parked in garage",
vehicleNotOwnedError = "You don't own this vehicle",
vehicleNotOwnedByPlayerError = "Vehicle is not owned by a player",
notEnoughMoneyError = "You don't have enough money in your bank",
vehicleNotYoursError = "Vehicle does not belong to you",
notJobOrGangVehicle = "This is not a %{value} vehicle",
invalidGangError = "You have not provided a valid gang",
invalidJobError = "You have not provided a valid job",
notInsideVehicleError = "You are not sat in a vehicle",
vehicleAddedToGangGarageSuccess = "Vehicle added to the %{value} gang garage!",
vehicleAddedToJobGarageSuccess = "Vehicle added to the %{value} job garage!",
moveCloserToVehicleError = "You need to move closer to the vehicle",
noVehiclesNearbyError = "There are no vehicles nearby",
commandPermissionsError = "You are not allowed to use this command",
actionNotAllowedError = "You are not allowed to do this",
garageNameExistsError = "Garage name already exists",
vehiclePlateExistsError = "Vehicle plate is already in use",
playerNotOnlineError = "Player is not online",
vehicleTransferSuccess = "Vehicle transferred to %{value}",
vehicleTransferSuccessGeneral = "Vehicle successfully transferred",
vehicleReceived = "You recieved a vehicle with the plate %{value}",
vehicleImpoundSuccess = "Vehicle successfully impounded",
vehicleImpoundRemoveSuccess = "Vehicle removed from impound",
vehicleImpoundReturnedToOwnerSuccess = "Vehicle returned to owner's garage",
garageCreatedSuccess = "Garage successfully created!",
vehiclePlateUpdateSuccess = "Vehicle plate set to %{value}",
vehicleDeletedSuccess = "Vehicle deleted from database %{value}",
playerIsDead = "You cannot do this while you are dead",
vehicleStoreError = "You cannot store this vehicle here",

-- Commands
cmdSetGangVehicle = "Add current vehicle to a gang garage",
cmdRemoveGangVehicle = "Set gang vehicle back to player owned",
cmdSetJobVehicle = "Add current vehicle to a job garage",
cmdRemoveJobVehicle = "Set job vehicle back to player owned",
cmdArgGangName = "Gang name",
cmdArgJobName = "Job name",
cmgArgMinGangRank = "Minimum gang rank",
cmgArgMinJobRank = "Minimum job rank",
cmdArgPlayerId = "Player ID of new owner",
cmdImpoundVehicle = "Impound a vehicle",
cmdChangePlate = "Change vehicle plate (Admin only)",
cmdDeleteVeh = "Delete vehicle from database (Admin only)",
cmdCreatePrivGarage = "Create a private garage for a player",
}



admin 发表于 2024-11-1 17:41:01

Locales['en'] = {
yes = "是",
no = "否",
garage = "车库",
jobGarage = "工作车库",
gangGarage = "帮派车库",
player = "玩家",
impound = "扣押",
inGarage = "在车库中",
notInGarage = "不在车库中",
car = "汽车",
air = "空中",
sea = "海上",
fuel = "燃料",
engine = "引擎",
body = "车身",
day = "天",
days = "天",
hour = "小时",
hours = "小时",
mins = "分钟",
-- 用户界面
noVehicles = "此车库没有车辆",
noVehiclesAvailableToDrive = "没有可驾驶的车辆",
vehicles = "辆车",
vehiclePlate = "车辆牌照",
vehicleNotInGarage = "车辆已停在外面",
vehicleTakeOut = "驾驶",
vehicleReturnAndTakeOut = "归还并驾驶",
vehicleReturnToOwnersGarage = "返回车主的车库",
transferToGarageOrPlayer = "转移到车库或玩家",
transferToGarage = "转移到车库",
transferToPlayer = "转移到玩家",
vehicleTransfer = "转移",
noAvailableGarages = "没有可用的车库",
currentGarage = "当前车库",
noPlayersOnline = "没有在线玩家",
createPrivateGarage = "创建私人车库",
pgAlertHeadsUp = "请注意!",
pgAlertText = "车库将被创建,车辆将在你当前站立的位置和方向生成。",
garageName = "车库名称",
impoundInformation = "扣押信息",
impoundedBy = "扣押人",
impoundedReason = "原因",
impoundPlayerCanCollect = "你可以从扣押处取回你的车辆。",
impoundCollectionContact = "请联系%{value}以取回你的车辆。",
impoundNoVehicles = "扣押处没有车辆",
impoundAvailable = "可用",
impoundRetrievableByOwner = "车主可取回",
impoundNoReason = "未提供原因",
impoundVehicle = "扣押车辆",
impoundReasonField = "原因(可选)",
impoundTime = "扣押时间",
impoundAvailableImmediately = "立即可用",
impoundCost = "费用",
changeVehiclePlate = "更改车辆牌照",
newPlate = "新牌照",
search = "按名称或牌照搜索",
noPrivateGarages = "没有私人车库",
editPrivateGarage = "编辑私人车库",
owners = "车主",
location = "位置",
next = "下一页",
previous = "上一页",
page = "页",
of = "的",
show = "显示",
save = "保存",
edit = "编辑",
delete = "删除",
garageDeleteConfirm = "你确定要删除这个车库吗?",
privGarageSearch = "按名称搜索",
garageUpdatedSuccess = "车库成功更新!",
getCurrentCoords = "获取当前坐标",
identifier = "标识符",
name = "名称",
noPlayers = "没有添加的玩家",
addPlayer = "添加玩家",
loadingVehicle = "正在加载车辆...",
vehicleSetup = "车辆设置",
extras = "额外选项",
extra = "额外",
liveries = "涂装",
livery = "涂装",
noLiveries = "没有可用的涂装",
noExtras = "没有可用的额外选项",
none = "无",
vehicleNeedsService = "需要服务",
type = "类型",
goInside = "进入",
-- 通知
insertVehicleTypeError = "此车库只能存储%{value}种车辆类型",
insertVehiclePublicError = "你不能在公共车库存储工作或帮派车辆",
vehicleParkedSuccess = "车辆已停放在车库中",
vehicleNotOwnedError = "你不拥有这辆车",
vehicleNotOwnedByPlayerError = "车辆不属于任何玩家",
notEnoughMoneyError = "你的银行余额不足",
vehicleNotYoursError = "这辆车不属于你",
notJobOrGangVehicle = "这不是一辆%{value}车辆",
invalidGangError = "你没有提供有效的帮派",
invalidJobError = "你没有提供有效的工作",
notInsideVehicleError = "你没有坐在车辆内",
vehicleAddedToGangGarageSuccess = "车辆已添加到%{value}帮派车库!",
vehicleAddedToJobGarageSuccess = "车辆已添加到%{value}工作车库!",
moveCloserToVehicleError = "你需要靠近车辆",
noVehiclesNearbyError = "附近没有车辆",
commandPermissionsError = "你没有权限使用此命令",
actionNotAllowedError = "你不被允许这样做",
garageNameExistsError = "车库名称已存在",
vehiclePlateExistsError = "车辆牌照已在使用",
playerNotOnlineError = "玩家不在线",
vehicleTransferSuccess = "车辆已转移给%{value}",
vehicleTransferSuccessGeneral = "车辆成功转移",
vehicleReceived = "你收到了车牌为%{value}的车辆",
vehicleImpoundSuccess = "车辆成功扣押",
vehicleImpoundRemoveSuccess = "车辆已从扣押中移除",
vehicleImpoundReturnedToOwnerSuccess = "车辆返回到车主的车库",
garageCreatedSuccess = "车库成功创建!",
vehiclePlateUpdateSuccess = "车辆牌照设置为%{value}",
vehicleDeletedSuccess = "车辆从数据库中删除成功%{value}",
playerIsDead = "你无法在死去时执行此操作",
vehicleStoreError = "你不能在此处存储这辆车辆",
-- 命令
cmdSetGangVehicle = "将当前车辆添加到帮派车库",
cmdRemoveGangVehicle = "将帮派车辆恢复为玩家拥有",
cmdSetJobVehicle = "将当前车辆添加到工作车库",
cmdRemoveJobVehicle = "将工作车辆恢复为玩家拥有",
cmdArgGangName = "帮派名称",
cmdArgJobName = "工作名称",
cmgArgMinGangRank = "最低帮派等级",
cmgArgMinJobRank = "最低工作等级",
cmdArgPlayerId = "新车主的玩家ID",
cmdImpoundVehicle = "扣押一辆车辆",
cmdChangePlate = "更改车辆牌照(仅管理员)",
cmdDeleteVeh = "从数据库中删除车辆(仅管理员)",
cmdCreatePrivGarage = "为玩家创建一个私人车库",
}

ChatGPT 发表于 2024-11-1 18:11:21

以下是汉化后的源代码:

Locales['zh'] = {
yes = "是",
no = "否",
garage = "车库",
jobGarage = "工作车库",
gangGarage = "帮派车库",
player = "玩家",
impound = "扣押",
inGarage = "在车库中",
notInGarage = "不在车库中",
car = "汽车",
air = "空中",
sea = "海上",
fuel = "燃料",
engine = "引擎",
body = "车身",
day = "天",
days = "天",
hour = "小时",
hours = "小时",
mins = "分钟",

-- 用户界面
noVehicles = "此车库中没有车辆",
noVehiclesAvailableToDrive = "没有可驾驶的车辆",
vehicles = "辆车辆",
vehiclePlate = "车辆牌照",
vehicleNotInGarage = "车辆已被遗留",
vehicleTakeOut = "驾驶",
vehicleReturnAndTakeOut = "归还并驾驶",
vehicleReturnToOwnersGarage = "归还到车主的车库",
transferToGarageOrPlayer = "转移到车库或玩家",
transferToGarage = "转移到车库",
transferToPlayer = "转移给玩家",
vehicleTransfer = "转移",
noAvailableGarages = "没有可用的车库",
currentGarage = "当前车库",
noPlayersOnline = "当前没有在线玩家",
createPrivateGarage = "创建私人车库",
pgAlertHeadsUp = "提醒!",
pgAlertText = "车库将被创建,车辆将出现在你当前站立的位置和方向上。",
garageName = "车库名称",
impoundInformation = "扣押信息",
impoundedBy = "扣押者",
impoundedReason = "原因",
impoundPlayerCanCollect = "你可以从扣押处取回你的车辆。",
impoundCollectionContact = "请联系%{value}以取回你的车辆。",
impoundNoVehicles = "扣押处没有车辆",
impoundAvailable = "可用",
impoundRetrievableByOwner = "车主可取回",
impoundNoReason = "没有提供理由",
impoundVehicle = "扣押车辆",
impoundReasonField = "理由(可选)",
impoundTime = "扣押时间",
impoundAvailableImmediately = "立即可用",
impoundCost = "费用",
changeVehiclePlate = "更改车辆牌照",
newPlate = "新牌照",
search = "通过名称或牌照搜索",
noPrivateGarages = "没有私人车库",
editPrivateGarage = "编辑私人车库",
owners = "车主",
location = "位置",
next = "下一页",
previous = "上一页",
page = "页",
of = "的",
show = "显示",
save = "保存",
edit = "编辑",
delete = "删除",
garageDeleteConfirm = "你确定要删除此车库吗?",
privGarageSearch = "通过名称搜索",
garageUpdatedSuccess = "车库成功更新!",
getCurrentCoords = "获取当前位置",
identifier = "标识符",
name = "名字",
noPlayers = "没有添加玩家",
addPlayer = "添加玩家",
loadingVehicle = "正在加载车辆...",
vehicleSetup = "车辆设置",
extras = "附加项",
extra = "附加项",
liveries = "涂装",
livery = "涂装",
noLiveries = "没有可用涂装",
noExtras = "没有可用附加项",
none = "无",
vehicleNeedsService = "需要维护",
type = "类型",
goInside = "进入内部",

-- 通知
insertVehicleTypeError = "你只能在此车库中存储%{value}种车辆类型",
insertVehiclePublicError = "你不能在公共车库中存储工作或帮派车辆",
vehicleParkedSuccess = "车辆已停放在车库中",
vehicleNotOwnedError = "你不拥有这辆车辆",
vehicleNotOwnedByPlayerError = "车辆不属于该玩家",
notEnoughMoneyError = "你的银行余额不足",
vehicleNotYoursError = "该车辆不属于你",
notJobOrGangVehicle = "这不是一辆%{value}车辆",
invalidGangError = "你没有提供有效的帮派",
invalidJobError = "你没有提供有效的工作",
notInsideVehicleError = "你没有坐在车辆内",
vehicleAddedToGangGarageSuccess = "车辆已添加到%{value}帮派车库!",
vehicleAddedToJobGarageSuccess = "车辆已添加到%{value}工作车库!",
moveCloserToVehicleError = "你需要靠近车辆",
noVehiclesNearbyError = "附近没有车辆",
commandPermissionsError = "你没有权限使用此命令",
actionNotAllowedError = "你不被允许这样做",
garageNameExistsError = "车库名称已存在",
vehiclePlateExistsError = "车辆牌照已在使用",
playerNotOnlineError = "玩家不在线",
vehicleTransferSuccess = "车辆已转移到%{value}",
vehicleTransferSuccessGeneral = "车辆已成功转移",
vehicleReceived = "你收到了一辆牌照为%{value}的车辆",
vehicleImpoundSuccess = "车辆已成功扣押",
vehicleImpoundRemoveSuccess = "车辆已从扣押处移除",
vehicleImpoundReturnedToOwnerSuccess = "车辆已归还给车主的车库",
garageCreatedSuccess = "车库创建成功!",
vehiclePlateUpdateSuccess = "车辆牌照已更改为%{value}",
vehicleDeletedSuccess = "车辆已从数据库删除%{value}",
playerIsDead = "你在死亡状态下无法这样做",
vehicleStoreError = "你无法将此车辆存放在这里",

-- 命令
cmdSetGangVehicle = "将当前车辆添加到帮派车库",
cmdRemoveGangVehicle = "将帮派车辆重新设置为玩家所有",
cmdSetJobVehicle = "将当前车辆添加到工作车库",
cmdRemoveJobVehicle = "将工作车辆重新设置为玩家所有",
cmdArgGangName = "帮派名称",
cmdArgJobName = "工作名称",
cmgArgMinGangRank = "最小帮派等级",
cmgArgMinJobRank = "最小工作等级",
cmdArgPlayerId = "新车主的玩家ID",
cmdImpoundVehicle = "扣押一辆车辆",
cmdChangePlate = "更改车辆牌照(仅限管理员)",
cmdDeleteVeh = "从数据库中删除车辆(仅限管理员)",
cmdCreatePrivGarage = "为玩家创建私人车库",
}

请将以上代码保存为 Lua 文件,替换原有的 `Locales['en']` 内容为 `Locales['zh']`。这样就完成了汉化。
页: [1]
查看完整版本: 帮我汉化并保存源代码