游戏对象模板本地化表为不同语言的客户端提供游戏对象名称的翻译。这个表允许服务器为不同语言的玩家显示本地化的游戏对象信息,如宝箱、门、传送门、采集点等。
字段名 | 类型 | 属性 | 键 | 默认值 | 描述 |
---|---|---|---|---|---|
entry | int(10) unsigned | 不为空 | 主键 | 0 | 游戏对象模板ID,对应gameobject_template.entry |
locale | varchar(4) | 不为空 | 主键 | 语言代码 | |
name | text | 可为空 | NULL | 本地化的游戏对象名称 | |
castBarCaption | text | 可为空 | NULL | 本地化的施法条文本 | |
VerifiedBuild | int(11) | 可为空 | NULL | 验证的客户端版本号 |
游戏对象模板的唯一标识符,必须对应gameobject_template表中的entry字段。
示例值: 1, 100, 1234, 180000
语言代码,指定此本地化文本适用的语言版本。
常见语言代码:
游戏对象在指定语言中的名称。这个名称会覆盖gameobject_template表中的name字段。
示例翻译:
当玩家与游戏对象交互时,施法条上显示的本地化文本。
示例施法条文本:
记录验证此本地化文本的客户端版本号。
草药、矿物、木材等可采集的资源:
具有特定功能的游戏对象:
主要用于装饰的游戏对象:
-- 为草药添加中文名称
INSERT INTO gameobject_template_locale (entry, locale, name, castBarCaption, VerifiedBuild) VALUES
(1618, 'zhCN', '宁神花', '正在采集...', 12340),
(1619, 'zhCN', '银叶草', '正在采集...', 12340),
(1620, 'zhCN', '地根草', '正在采集...', 12340);
-- 为矿物添加中文名称
INSERT INTO gameobject_template_locale (entry, locale, name, castBarCaption, VerifiedBuild) VALUES
(1731, 'zhCN', '铜矿脉', '正在采矿...', 12340),
(1732, 'zhCN', '锡矿脉', '正在采矿...', 12340),
(1735, 'zhCN', '铁矿脉', '正在采矿...', 12340);
-- 为各种宝箱添加中文名称
INSERT INTO gameobject_template_locale (entry, locale, name, castBarCaption, VerifiedBuild) VALUES
(2843, 'zhCN', '小型宝箱', '正在打开...', 12340),
(2844, 'zhCN', '大型宝箱', '正在打开...', 12340),
(2845, 'zhCN', '秘密宝箱', '正在打开...', 12340);
SELECT gtl.entry, gt.name as original_name, gtl.name as localized_name, gt.type
FROM gameobject_template_locale gtl
JOIN gameobject_template gt ON gtl.entry = gt.entry
WHERE gtl.locale = 'zhCN' AND gt.type = 3 -- 类型3通常是宝箱
ORDER BY gtl.entry;
SELECT gt.entry, gt.name, gt.type
FROM gameobject_template gt
LEFT JOIN gameobject_template_locale gtl ON gt.entry = gtl.entry AND gtl.locale = 'zhCN'
WHERE gtl.entry IS NULL
AND gt.name IS NOT NULL
AND gt.type IN (3, 25, 26) -- 宝箱、草药、矿物
ORDER BY gt.type, gt.entry;
SELECT gt.type,
COUNT(*) as total_objects,
COUNT(gtl.entry) as translated_objects,
ROUND(COUNT(gtl.entry) * 100.0 / COUNT(*), 2) as translation_percentage
FROM gameobject_template gt
LEFT JOIN gameobject_template_locale gtl ON gt.entry = gtl.entry AND gtl.locale = 'zhCN'
WHERE gt.name IS NOT NULL
GROUP BY gt.type
ORDER BY translation_percentage DESC;
-- 为草药类对象批量添加中文翻译
INSERT INTO gameobject_template_locale (entry, locale, name, castBarCaption, VerifiedBuild)
SELECT gt.entry, 'zhCN',
CASE gt.name
WHEN 'Peacebloom' THEN '宁神花'
WHEN 'Silverleaf' THEN '银叶草'
WHEN 'Earthroot' THEN '地根草'
WHEN 'Mageroyal' THEN '魔皇草'
WHEN 'Briarthorn' THEN '石南草'
WHEN 'Stranglekelp' THEN '荆棘藻'
WHEN 'Bruiseweed' THEN '跌打草'
WHEN 'Wild Steelbloom' THEN '野钢花'
WHEN 'Grave Moss' THEN '墓地苔'
WHEN 'Kingsblood' THEN '皇血草'
ELSE CONCAT(gt.name, '(需翻译)')
END,
'正在采集...',
12340
FROM gameobject_template gt
LEFT JOIN gameobject_template_locale gtl ON gt.entry = gtl.entry AND gtl.locale = 'zhCN'
WHERE gtl.entry IS NULL
AND gt.type = 25 -- 草药类型
AND gt.name IN ('Peacebloom', 'Silverleaf', 'Earthroot', 'Mageroyal', 'Briarthorn', 'Stranglekelp', 'Bruiseweed', 'Wild Steelbloom', 'Grave Moss', 'Kingsblood');
Peacebloom → 宁神花
Silverleaf → 银叶草
Earthroot → 地根草
Mageroyal → 魔皇草
Briarthorn → 石南草
Stranglekelp → 荆棘藻
Bruiseweed → 跌打草
Wild Steelbloom → 野钢花
Grave Moss → 墓地苔
Kingsblood → 皇血草
Liferoot → 活根草
Fadeleaf → 枯叶草
Goldthorn → 金棘草
Khadgar's Whisker → 卡德加的胡须
Wintersbite → 冬刺草
Firebloom → 火焰花
Purple Lotus → 紫莲花
Arthas' Tears → 阿尔萨斯之泪
Sungrass → 太阳草
Blindweed → 盲目草
Ghost Mushroom → 幽灵菇
Gromsblood → 格罗姆之血
Golden Sansam → 黄金参
Dreamfoil → 梦叶草
Mountain Silversage → 山鼠草
Plaguebloom → 瘟疫花
Icecap → 冰盖草
Black Lotus → 黑莲花
Copper Vein → 铜矿脉
Tin Vein → 锡矿脉
Silver Vein → 银矿脉
Iron Deposit → 铁矿石
Gold Vein → 金矿脉
Mithril Deposit → 秘银矿脉
Truesilver Deposit → 真银矿脉
Dark Iron Deposit → 黑铁矿脉
Small Thorium Vein → 小瑟银矿脉
Rich Thorium Vein → 富瑟银矿脉
Small Treasure Chest → 小型宝箱
Large Treasure Chest → 大型宝箱
Battered Chest → 破损的箱子
Tattered Chest → 破烂的箱子
Solid Chest → 坚固的箱子
Dented Chest → 凹陷的箱子
Buccaneer's Strongbox → 海盗的保险箱
Opening... → 正在打开...
Mining... → 正在采矿...
Gathering... → 正在采集...
Activating... → 正在激活...
Channeling... → 正在引导...
Searching... → 正在搜索...
Unlocking... → 正在解锁...
Disarming... → 正在解除陷阱...
检查以下几点:
检查以下几点:
建议优先翻译: