-
Notifications
You must be signed in to change notification settings - Fork 491
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues with some Chinese page text locales (#2232)
Closes #2224
- Loading branch information
1 parent
c891e37
commit 4e93afa
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
SET NAMES utf8; | ||
DROP PROCEDURE IF EXISTS add_migration; | ||
delimiter ?? | ||
CREATE PROCEDURE `add_migration`() | ||
BEGIN | ||
DECLARE v INT DEFAULT 1; | ||
SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20231017230102'); | ||
IF v=0 THEN | ||
INSERT INTO `migrations` VALUES ('20231017230102'); | ||
-- Add your query below. | ||
|
||
|
||
-- Fix issues with some Chinese page text locales. | ||
SET NAMES utf8; | ||
UPDATE `locales_page_text` SET `Text_loc4` = '<HTML>\r\n<BODY>\r\n<H1 align=\"center\">军衔概述</H1>\r\n<BR/>\r\n<BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRankAlliance\" align=\"left\"/>\r\n<BR/>\r\n <P align=\"right\">以下是</P>\r\n <P align=\"right\">联盟的军衔概述,</P>\r\n <P align=\"right\">同时包括部落种族</P>\r\n <P align=\"right\">的军衔信息。</P><BR/>\r\n <P align=\"right\">每一个阵营都</P>\r\n <P align=\"right\">包含两个章节。</P>\r\n <P align=\"right\">军官和士兵的军阶,</P>\r\n <P align=\"right\">按照由高到低的顺序排列。</P><BR/>\r\n <P align=\"right\">联盟万岁!</P>\r\n</BODY>\r\n</HTML>' WHERE `locales_page_text`.`entry` = 2654; | ||
UPDATE `locales_page_text` SET `Text_loc4` = '<HTML>\r\n<BODY>\r\n<H1 align=\"center\">联盟军官军衔</H1><BR/>\r\n<P align=\"center\">第一章</P>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank14\" align=\"left\"/><BR/>\r\n<P align=\"right\">大元帅</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank13\" align=\"left\"/><BR/>\r\n<P align=\"right\">元帅</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank12\" align=\"left\"/><BR/>\r\n<P align=\"right\">统帅</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank11\" align=\"left\"/><BR/>\r\n<P align=\"right\">司令</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank10\" align=\"left\"/><BR/>\r\n<P align=\"right\">少校</P><BR/>\r\n</BODY>\r\n</HTML>' WHERE `locales_page_text`.`entry` = 2655; | ||
UPDATE `locales_page_text` SET `Text_loc4` = '<HTML>\r\n<BODY>\r\n<H1 align=\"center\">联盟军官军衔</H1><BR/>\r\n<P align=\"center\">第二章</P>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank09\" align=\"left\"/><BR/>\r\n<P align=\"right\">护卫骑士</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank08\" align=\"left\"/><BR/>\r\n<P align=\"right\">骑士队长</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank07\" align=\"left\"/><BR/>\r\n<P align=\"right\">骑士中尉</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank06\" align=\"left\"/><BR/>\r\n<P align=\"right\">骑士</P><BR/>\r\n</BODY>\r\n</HTML>' WHERE `locales_page_text`.`entry` = 2656; | ||
UPDATE `locales_page_text` SET `Text_loc4` = '<HTML>\r\n<BODY>\r\n<H1 align=\"center\">联盟士兵军衔</H1><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank05\" align=\"left\"/><BR/>\r\n<P align=\"right\">士官长</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank04\" align=\"left\"/><BR/>\r\n<P align=\"right\">军士长</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank03\" align=\"left\"/><BR/>\r\n<P align=\"right\">中士</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank02\" align=\"left\"/><BR/>\r\n<P align=\"right\">下士</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank01\" align=\"left\"/><BR/>\r\n<P align=\"right\">列兵</P><BR/>\r\n</BODY>\r\n</HTML>' WHERE `locales_page_text`.`entry` = 2657; | ||
UPDATE `locales_page_text` SET `Text_loc4` = '<HTML>\r\n<BODY>\r\n<H1 align=\"center\">部落军官军衔</H1><BR/>\r\n<P align=\"center\">第一章</P>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank14\" align=\"left\"/><BR/>\r\n<P align=\"right\">高阶督军</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank13\" align=\"left\"/><BR/>\r\n<P align=\"right\">督军</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank12\" align=\"left\"/><BR/>\r\n<P align=\"right\">将军</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank11\" align=\"left\"/><BR/>\r\n<P align=\"right\">中将</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank10\" align=\"left\"/><BR/>\r\n<P align=\"right\">勇士</P><BR/>\r\n</BODY>\r\n</HTML>' WHERE `locales_page_text`.`entry` = 2658; | ||
UPDATE `locales_page_text` SET `Text_loc4` = '<HTML>\r\n<BODY>\r\n<H1 align=\"center\">部落士兵军衔</H1><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank05\" align=\"left\"/><BR/>\r\n<P align=\"right\">一等军士长</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank04\" align=\"left\"/><BR/>\r\n<P align=\"right\">高阶军士</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank03\" align=\"left\"/><BR/>\r\n<P align=\"right\">中士</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank02\" align=\"left\"/><BR/>\r\n<P align=\"right\">步兵</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank01\" align=\"left\"/><BR/>\r\n<P align=\"right\">侦察兵</P><BR/>\r\n</BODY>\r\n</HTML>' WHERE `locales_page_text`.`entry` = 2660; | ||
UPDATE `locales_page_text` SET `Text_loc4` = '<HTML>\r\n<BODY>\r\n<H1 align=\"center\">军衔概述</H1>\r\n<BR/>\r\n<BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRankHorde\" align=\"left\"/>\r\n<BR/>\r\n<P align=\"right\"> Loktar Ogar!</P>\r\n<P align=\"right\">本书中列出了</P>\r\n<P align=\"right\">部落的军衔,</P>\r\n<P align=\"right\">以及弱小的联盟。</P><BR/>\r\n<P align=\"right\">首先是部落的,</P>\r\n<P align=\"right\">然后是联盟的。</P>\r\n<P align=\"right\">囊括军官和军阶列表,</P>\r\n<P align=\"right\">按等级高低排列。</P>\r\n<P align=\"right\">等级最高的排在首位,</P>\r\n<P align=\"right\">等级低的列于下位。</P>\r\n</BODY>\r\n</HTML>' WHERE `locales_page_text`.`entry` = 2661; | ||
UPDATE `locales_page_text` SET `Text_loc4` = '<HTML>\r\n<BODY>\r\n<H1 align=\"center\">部落军官军衔</H1><BR/>\r\n<P align=\"center\">第一章</P>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank14\" align=\"left\"/><BR/>\r\n<P align=\"right\">高阶督军</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank13\" align=\"left\"/><BR/>\r\n<P align=\"right\">督军</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank12\" align=\"left\"/><BR/>\r\n<P align=\"right\">将军</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank11\" align=\"left\"/><BR/>\r\n<P align=\"right\">中将</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank10\" align=\"left\"/><BR/>\r\n<P align=\"right\">勇士</P><BR/>\r\n</BODY>\r\n</HTML>' WHERE `locales_page_text`.`entry` = 2662; | ||
UPDATE `locales_page_text` SET `Text_loc4` = '<HTML>\r\n<BODY>\r\n<H1 align=\"center\">部落军官军衔</H1><BR/>\r\n<P align=\"center\">第二章</P>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank09\" align=\"left\"/><BR/>\r\n<P align=\"right\">百夫长</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank08\" align=\"left\"/><BR/>\r\n<P align=\"right\">军团士兵</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank07\" align=\"left\"/><BR/>\r\n<P align=\"right\">血卫士</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank06\" align=\"left\"/><BR/>\r\n<P align=\"right\">石头守卫</P><BR/>\r\n</BODY>\r\n</HTML>' WHERE `locales_page_text`.`entry` = 2663; | ||
UPDATE `locales_page_text` SET `Text_loc4` = '<HTML>\r\n<BODY>\r\n<H1 align=\"center\">部落士兵军衔</H1><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank05\" align=\"left\"/><BR/>\r\n<P align=\"right\">一等军士长</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank04\" align=\"left\"/><BR/>\r\n<P align=\"right\">高阶军士</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank03\" align=\"left\"/><BR/>\r\n<P align=\"right\">中士</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank02\" align=\"left\"/><BR/>\r\n<P align=\"right\">步兵</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank01\" align=\"left\"/><BR/>\r\n<P align=\"right\">侦察兵</P><BR/>\r\n</BODY>\r\n</HTML>' WHERE `locales_page_text`.`entry` = 2664; | ||
UPDATE `locales_page_text` SET `Text_loc4` = '<HTML>\r\n<BODY>\r\n<H1 align=\"center\">联盟军官军衔</H1><BR/>\r\n<P align=\"center\">第一章</P>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank14\" align=\"left\"/><BR/>\r\n<P align=\"right\">大元帅</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank13\" align=\"left\"/><BR/>\r\n<P align=\"right\">元帅</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank12\" align=\"left\"/><BR/>\r\n<P align=\"right\">统帅</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank11\" align=\"left\"/><BR/>\r\n<P align=\"right\">司令</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank10\" align=\"left\"/><BR/>\r\n<P align=\"right\">少校</P><BR/>\r\n</BODY>\r\n</HTML>' WHERE `locales_page_text`.`entry` = 2665; | ||
UPDATE `locales_page_text` SET `Text_loc4` = '<HTML>\r\n<BODY>\r\n<H1 align=\"center\">部落军官军衔</H1><BR/>\r\n<P align=\"center\">第二章</P>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank09\" align=\"left\"/><BR/>\r\n<P align=\"right\">百夫长</P><BR/><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank08\" align=\"left\"/><BR/>\r\n<P align=\"right\">军团士兵</P><BR/><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank07\" align=\"left\"/><BR/>\r\n<P align=\"right\">血卫士</P><BR/><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank06\" align=\"left\"/><BR/>\r\n<P align=\"right\">石头守卫</P><BR/><BR/>\r\n</BODY>\r\n</HTML>' WHERE `locales_page_text`.`entry` = 2854; | ||
UPDATE `locales_page_text` SET `Text_loc4` = '<HTML>\r\n<BODY>\r\n<H1 align=\"center\">部落士兵军衔</H1><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank05\" align=\"left\"/><BR/>\r\n<P align=\"right\">一等军士长</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank04\" align=\"left\"/><BR/>\r\n<P align=\"right\">高阶军士</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank03\" align=\"left\"/><BR/>\r\n<P align=\"right\">中士</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank02\" align=\"left\"/><BR/>\r\n<P align=\"right\">步兵</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank01\" align=\"left\"/><BR/>\r\n<P align=\"right\">侦察兵</P><BR/>\r\n</BODY>\r\n</HTML>' WHERE `locales_page_text`.`entry` = 2855; | ||
UPDATE `locales_page_text` SET `Text_loc4` = '<HTML>\r\n<BODY>\r\n<H1 align=\"center\">联盟军官军衔</H1><BR/>\r\n<P align=\"center\">第二章</P>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank09\" align=\"left\"/><BR/>\r\n<P align=\"right\">护卫骑士</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank08\" align=\"left\"/><BR/>\r\n<P align=\"right\">骑士队长</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank07\" align=\"left\"/><BR/>\r\n<P align=\"right\">骑士中尉</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank06\" align=\"left\"/><BR/>\r\n<P align=\"right\">骑士</P><BR/>\r\n</BODY>\r\n</HTML>' WHERE `locales_page_text`.`entry` = 2856; | ||
UPDATE `locales_page_text` SET `Text_loc4` = '<HTML>\r\n<BODY>\r\n<H1 align=\"center\">联盟士兵军衔</H1><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank05\" align=\"left\"/><BR/>\r\n<P align=\"right\">士官长</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank04\" align=\"left\"/><BR/>\r\n<P align=\"right\">军士长</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank03\" align=\"left\"/><BR/>\r\n<P align=\"right\">中士</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank02\" align=\"left\"/><BR/>\r\n<P align=\"right\">下士</P><BR/>\r\n<IMG src=\"Interface\\PvPRankBadges\\PvPRank01\" align=\"left\"/><BR/>\r\n<P align=\"right\">列兵</P><BR/>\r\n</BODY>\r\n</HTML>' WHERE `locales_page_text`.`entry` = 2857; | ||
|
||
|
||
-- End of migration. | ||
END IF; | ||
END?? | ||
delimiter ; | ||
CALL add_migration(); | ||
DROP PROCEDURE IF EXISTS add_migration; |