From 9e009e280d2614bb065ce323e44f1d7aaaed110a Mon Sep 17 00:00:00 2001 From: def Date: Fri, 5 Mar 2021 17:08:54 +0100 Subject: [PATCH] Support localizing discord link link to http://chat.teeworlds.cn/ for Simplified Chinese Maintained by TsFreddie, KaiHei is a Chinese Discord clone --- data/languages/arabic.txt | 6 ++++++ data/languages/belarusian.txt | 6 ++++++ data/languages/bosnian.txt | 6 ++++++ data/languages/brazilian_portuguese.txt | 6 ++++++ data/languages/bulgarian.txt | 6 ++++++ data/languages/catalan.txt | 6 ++++++ data/languages/czech.txt | 6 ++++++ data/languages/danish.txt | 6 ++++++ data/languages/dutch.txt | 6 ++++++ data/languages/finnish.txt | 6 ++++++ data/languages/french.txt | 6 ++++++ data/languages/german.txt | 6 ++++++ data/languages/hungarian.txt | 6 ++++++ data/languages/italian.txt | 6 ++++++ data/languages/japanese.txt | 6 ++++++ data/languages/korean.txt | 6 ++++++ data/languages/kyrgyz.txt | 6 ++++++ data/languages/norwegian.txt | 6 ++++++ data/languages/persian.txt | 6 ++++++ data/languages/polish.txt | 6 ++++++ data/languages/portuguese.txt | 6 ++++++ data/languages/romanian.txt | 6 ++++++ data/languages/russian.txt | 6 ++++++ data/languages/serbian.txt | 6 ++++++ data/languages/serbian_cyrillic.txt | 6 ++++++ data/languages/simplified_chinese.txt | 6 ++++++ data/languages/slovak.txt | 6 ++++++ data/languages/spanish.txt | 6 ++++++ data/languages/swedish.txt | 6 ++++++ data/languages/traditional_chinese.txt | 6 ++++++ data/languages/turkish.txt | 6 ++++++ data/languages/ukrainian.txt | 6 ++++++ src/game/client/components/menus_start.cpp | 4 ++-- 33 files changed, 194 insertions(+), 2 deletions(-) diff --git a/data/languages/arabic.txt b/data/languages/arabic.txt index f56fb2391..adcf35809 100644 --- a/data/languages/arabic.txt +++ b/data/languages/arabic.txt @@ -1275,3 +1275,9 @@ Regular Background Color DDNet %s is available: == + +Discord +== + +https://ddnet.tw/discord +== diff --git a/data/languages/belarusian.txt b/data/languages/belarusian.txt index 2cfb489f8..829ffe371 100644 --- a/data/languages/belarusian.txt +++ b/data/languages/belarusian.txt @@ -1186,6 +1186,12 @@ Particles Assets directory == +Discord +== + +https://ddnet.tw/discord +== + Learn == diff --git a/data/languages/bosnian.txt b/data/languages/bosnian.txt index 0db079f47..cb38ae5db 100644 --- a/data/languages/bosnian.txt +++ b/data/languages/bosnian.txt @@ -1237,6 +1237,12 @@ Particles Assets directory == +Discord +== + +https://ddnet.tw/discord +== + https://wiki.ddnet.tw/ == diff --git a/data/languages/brazilian_portuguese.txt b/data/languages/brazilian_portuguese.txt index 4d32efe88..34fd21190 100644 --- a/data/languages/brazilian_portuguese.txt +++ b/data/languages/brazilian_portuguese.txt @@ -1294,3 +1294,9 @@ Entities Background color Regular Background Color == Cor de fundo comum + +Discord +== + +https://ddnet.tw/discord +== diff --git a/data/languages/bulgarian.txt b/data/languages/bulgarian.txt index 9dae70220..af6bf42fc 100644 --- a/data/languages/bulgarian.txt +++ b/data/languages/bulgarian.txt @@ -1186,6 +1186,12 @@ Particles Assets directory == +Discord +== + +https://ddnet.tw/discord +== + Learn == diff --git a/data/languages/catalan.txt b/data/languages/catalan.txt index 3c019fc0e..128a51420 100644 --- a/data/languages/catalan.txt +++ b/data/languages/catalan.txt @@ -1248,6 +1248,12 @@ Particles Assets directory == +Discord +== + +https://ddnet.tw/discord +== + https://wiki.ddnet.tw/ == diff --git a/data/languages/czech.txt b/data/languages/czech.txt index bb6ad9cfb..45bf7e4a0 100644 --- a/data/languages/czech.txt +++ b/data/languages/czech.txt @@ -1282,3 +1282,9 @@ Entities Background color Regular Background Color == + +Discord +== + +https://ddnet.tw/discord +== diff --git a/data/languages/danish.txt b/data/languages/danish.txt index 6292d493b..bc5819d60 100644 --- a/data/languages/danish.txt +++ b/data/languages/danish.txt @@ -1280,3 +1280,9 @@ Entities Background color Regular Background Color == + +Discord +== + +https://ddnet.tw/discord +== diff --git a/data/languages/dutch.txt b/data/languages/dutch.txt index 69f2baddb..31c6c2564 100644 --- a/data/languages/dutch.txt +++ b/data/languages/dutch.txt @@ -1260,6 +1260,12 @@ Particles Assets directory == +Discord +== + +https://ddnet.tw/discord +== + https://wiki.ddnet.tw/ == diff --git a/data/languages/finnish.txt b/data/languages/finnish.txt index a1022321d..9011e356c 100644 --- a/data/languages/finnish.txt +++ b/data/languages/finnish.txt @@ -1187,6 +1187,12 @@ Particles Assets directory == +Discord +== + +https://ddnet.tw/discord +== + Learn == diff --git a/data/languages/french.txt b/data/languages/french.txt index 197ccde0c..b628ea930 100644 --- a/data/languages/french.txt +++ b/data/languages/french.txt @@ -1305,3 +1305,9 @@ Entities Background color Regular Background Color == + +Discord +== + +https://ddnet.tw/discord +== diff --git a/data/languages/german.txt b/data/languages/german.txt index 98fa021fc..2b64ebe84 100644 --- a/data/languages/german.txt +++ b/data/languages/german.txt @@ -1294,3 +1294,9 @@ Entities Background color Regular Background Color == Normale Hintergrundfarbe + +Discord +== + +https://ddnet.tw/discord +== diff --git a/data/languages/hungarian.txt b/data/languages/hungarian.txt index cbad813d3..05855137b 100644 --- a/data/languages/hungarian.txt +++ b/data/languages/hungarian.txt @@ -1279,5 +1279,11 @@ Entities Background color Regular Background Color == +Discord +== + +https://ddnet.tw/discord +== + https://wiki.ddnet.tw/ == diff --git a/data/languages/italian.txt b/data/languages/italian.txt index 78ad62040..30695cba0 100644 --- a/data/languages/italian.txt +++ b/data/languages/italian.txt @@ -1314,5 +1314,11 @@ Entities Background color Regular Background Color == +Discord +== + +https://ddnet.tw/discord +== + FPM == diff --git a/data/languages/japanese.txt b/data/languages/japanese.txt index a7562d686..d60ebb1ee 100644 --- a/data/languages/japanese.txt +++ b/data/languages/japanese.txt @@ -1186,6 +1186,12 @@ Particles Assets directory == +Discord +== + +https://ddnet.tw/discord +== + Learn == diff --git a/data/languages/korean.txt b/data/languages/korean.txt index 2d04d12b9..e2b8ee96f 100644 --- a/data/languages/korean.txt +++ b/data/languages/korean.txt @@ -1185,6 +1185,12 @@ Particles Assets directory == +Discord +== + +https://ddnet.tw/discord +== + Learn == diff --git a/data/languages/kyrgyz.txt b/data/languages/kyrgyz.txt index d67ba8487..269c28ce1 100644 --- a/data/languages/kyrgyz.txt +++ b/data/languages/kyrgyz.txt @@ -1177,6 +1177,12 @@ Particles Assets directory == +Discord +== + +https://ddnet.tw/discord +== + Learn == diff --git a/data/languages/norwegian.txt b/data/languages/norwegian.txt index bc476ea99..7fdfff219 100644 --- a/data/languages/norwegian.txt +++ b/data/languages/norwegian.txt @@ -1281,3 +1281,9 @@ Entities Background color Regular Background Color == + +Discord +== + +https://ddnet.tw/discord +== diff --git a/data/languages/persian.txt b/data/languages/persian.txt index e8a968b62..6b379e0dd 100644 --- a/data/languages/persian.txt +++ b/data/languages/persian.txt @@ -1060,6 +1060,12 @@ Particles Assets directory == +Discord +== + +https://ddnet.tw/discord +== + Learn == diff --git a/data/languages/polish.txt b/data/languages/polish.txt index adc17af75..223c4a4f4 100644 --- a/data/languages/polish.txt +++ b/data/languages/polish.txt @@ -1282,3 +1282,9 @@ Entities Background color Regular Background Color == + +Discord +== + +https://ddnet.tw/discord +== diff --git a/data/languages/portuguese.txt b/data/languages/portuguese.txt index f34e5883e..9d1b0750d 100644 --- a/data/languages/portuguese.txt +++ b/data/languages/portuguese.txt @@ -1202,6 +1202,12 @@ Particles Assets directory == +Discord +== + +https://ddnet.tw/discord +== + Learn == diff --git a/data/languages/romanian.txt b/data/languages/romanian.txt index 7ce8f0f61..12ffd41b2 100644 --- a/data/languages/romanian.txt +++ b/data/languages/romanian.txt @@ -1192,6 +1192,12 @@ Particles Assets directory == +Discord +== + +https://ddnet.tw/discord +== + Learn == diff --git a/data/languages/russian.txt b/data/languages/russian.txt index 45dfbdd41..b9c05bd4a 100644 --- a/data/languages/russian.txt +++ b/data/languages/russian.txt @@ -1285,3 +1285,9 @@ Entities Background color Regular Background Color == Станд. фоновый цвет + +Discord +== + +https://ddnet.tw/discord +== diff --git a/data/languages/serbian.txt b/data/languages/serbian.txt index f5216940e..aecc3377f 100644 --- a/data/languages/serbian.txt +++ b/data/languages/serbian.txt @@ -1190,6 +1190,12 @@ Particles Assets directory == +Discord +== + +https://ddnet.tw/discord +== + https://wiki.ddnet.tw/ == diff --git a/data/languages/serbian_cyrillic.txt b/data/languages/serbian_cyrillic.txt index 1a376e38d..ee1a85e82 100644 --- a/data/languages/serbian_cyrillic.txt +++ b/data/languages/serbian_cyrillic.txt @@ -1279,3 +1279,9 @@ Use current map as background Regular Background Color == + +Discord +== + +https://ddnet.tw/discord +== diff --git a/data/languages/simplified_chinese.txt b/data/languages/simplified_chinese.txt index 74eac651c..2725f6c37 100644 --- a/data/languages/simplified_chinese.txt +++ b/data/languages/simplified_chinese.txt @@ -1256,6 +1256,12 @@ Particles Assets directory == 材质目录 +https://ddnet.tw/discord +== http://chat.teeworlds.cn/ + +Discord +== 开黑啦 + The width of texture %s is not divisible by %d, or the height is not divisible by %d, which might cause visual bugs. == diff --git a/data/languages/slovak.txt b/data/languages/slovak.txt index a843089df..d136b39b0 100644 --- a/data/languages/slovak.txt +++ b/data/languages/slovak.txt @@ -1186,6 +1186,12 @@ Particles Assets directory == +Discord +== + +https://ddnet.tw/discord +== + Learn == diff --git a/data/languages/spanish.txt b/data/languages/spanish.txt index 6e3a5612e..bf52b8fe3 100644 --- a/data/languages/spanish.txt +++ b/data/languages/spanish.txt @@ -1286,3 +1286,9 @@ Entities Background color Regular Background Color == + +Discord +== + +https://ddnet.tw/discord +== diff --git a/data/languages/swedish.txt b/data/languages/swedish.txt index 729c1aa1c..809c9b6b1 100644 --- a/data/languages/swedish.txt +++ b/data/languages/swedish.txt @@ -1282,3 +1282,9 @@ Particles Assets directory == + +Discord +== + +https://ddnet.tw/discord +== diff --git a/data/languages/traditional_chinese.txt b/data/languages/traditional_chinese.txt index ff3dfddb0..d28948d2a 100644 --- a/data/languages/traditional_chinese.txt +++ b/data/languages/traditional_chinese.txt @@ -1285,3 +1285,9 @@ Entities Background color Regular Background Color == + +Discord +== + +https://ddnet.tw/discord +== diff --git a/data/languages/turkish.txt b/data/languages/turkish.txt index 8346425a8..6e146bdbf 100644 --- a/data/languages/turkish.txt +++ b/data/languages/turkish.txt @@ -1260,6 +1260,12 @@ Particles Assets directory == +Discord +== + +https://ddnet.tw/discord +== + https://wiki.ddnet.tw/ == diff --git a/data/languages/ukrainian.txt b/data/languages/ukrainian.txt index 1664956e8..2de67ec3a 100644 --- a/data/languages/ukrainian.txt +++ b/data/languages/ukrainian.txt @@ -1255,6 +1255,12 @@ Particles Assets directory == +Discord +== + +https://ddnet.tw/discord +== + https://wiki.ddnet.tw/ == diff --git a/src/game/client/components/menus_start.cpp b/src/game/client/components/menus_start.cpp index 0e326df75..2f768e1e1 100644 --- a/src/game/client/components/menus_start.cpp +++ b/src/game/client/components/menus_start.cpp @@ -37,9 +37,9 @@ void CMenus::RenderStartMenu(CUIRect MainView) ExtMenu.HSplitBottom(20.0f, &ExtMenu, &Button); static int s_DiscordButton; - if(DoButton_Menu(&s_DiscordButton, "Discord", 0, &Button, 0, CUI::CORNER_ALL, 5.0f, 0.0f, vec4(0.0f, 0.0f, 0.0f, 0.5f), vec4(0.0f, 0.0f, 0.0f, 0.25f))) + if(DoButton_Menu(&s_DiscordButton, Localize("Discord"), 0, &Button, 0, CUI::CORNER_ALL, 5.0f, 0.0f, vec4(0.0f, 0.0f, 0.0f, 0.5f), vec4(0.0f, 0.0f, 0.0f, 0.25f))) { - if(!open_link("https://ddnet.tw/discord")) + if(!open_link(Localize("https://ddnet.tw/discord"))) { dbg_msg("menus", "couldn't open link"); }