3676: Support localizing discord link r=heinrich5991 a=def-

link to http://chat.teeworlds.cn/ for Simplified Chinese

Maintained by TsFreddie, KaiHei is a Chinese Discord clone

<!-- What is the motivation for the changes of this pull request -->

## Checklist

- [ ] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test if it works standalone, system.c especially
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


Co-authored-by: def <dennis@felsin9.de>
This commit is contained in:
bors[bot] 2021-03-05 23:37:17 +00:00 committed by GitHub
commit d0d06d9325
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 194 additions and 2 deletions

View file

@ -1275,3 +1275,9 @@ Regular Background Color
DDNet %s is available:
==
Discord
==
https://ddnet.tw/discord
==

View file

@ -1186,6 +1186,12 @@ Particles
Assets directory
==
Discord
==
https://ddnet.tw/discord
==
Learn
==

View file

@ -1237,6 +1237,12 @@ Particles
Assets directory
==
Discord
==
https://ddnet.tw/discord
==
https://wiki.ddnet.tw/
==

View file

@ -1294,3 +1294,9 @@ Entities Background color
Regular Background Color
== Cor de fundo comum
Discord
==
https://ddnet.tw/discord
==

View file

@ -1186,6 +1186,12 @@ Particles
Assets directory
==
Discord
==
https://ddnet.tw/discord
==
Learn
==

View file

@ -1248,6 +1248,12 @@ Particles
Assets directory
==
Discord
==
https://ddnet.tw/discord
==
https://wiki.ddnet.tw/
==

View file

@ -1282,3 +1282,9 @@ Entities Background color
Regular Background Color
==
Discord
==
https://ddnet.tw/discord
==

View file

@ -1280,3 +1280,9 @@ Entities Background color
Regular Background Color
==
Discord
==
https://ddnet.tw/discord
==

View file

@ -1260,6 +1260,12 @@ Particles
Assets directory
==
Discord
==
https://ddnet.tw/discord
==
https://wiki.ddnet.tw/
==

View file

@ -1187,6 +1187,12 @@ Particles
Assets directory
==
Discord
==
https://ddnet.tw/discord
==
Learn
==

View file

@ -1305,3 +1305,9 @@ Entities Background color
Regular Background Color
==
Discord
==
https://ddnet.tw/discord
==

View file

@ -1294,3 +1294,9 @@ Entities Background color
Regular Background Color
== Normale Hintergrundfarbe
Discord
==
https://ddnet.tw/discord
==

View file

@ -1279,5 +1279,11 @@ Entities Background color
Regular Background Color
==
Discord
==
https://ddnet.tw/discord
==
https://wiki.ddnet.tw/
==

View file

@ -1314,5 +1314,11 @@ Entities Background color
Regular Background Color
==
Discord
==
https://ddnet.tw/discord
==
FPM
==

View file

@ -1186,6 +1186,12 @@ Particles
Assets directory
==
Discord
==
https://ddnet.tw/discord
==
Learn
==

View file

@ -1185,6 +1185,12 @@ Particles
Assets directory
==
Discord
==
https://ddnet.tw/discord
==
Learn
==

View file

@ -1177,6 +1177,12 @@ Particles
Assets directory
==
Discord
==
https://ddnet.tw/discord
==
Learn
==

View file

@ -1281,3 +1281,9 @@ Entities Background color
Regular Background Color
==
Discord
==
https://ddnet.tw/discord
==

View file

@ -1060,6 +1060,12 @@ Particles
Assets directory
==
Discord
==
https://ddnet.tw/discord
==
Learn
==

View file

@ -1282,3 +1282,9 @@ Entities Background color
Regular Background Color
==
Discord
==
https://ddnet.tw/discord
==

View file

@ -1202,6 +1202,12 @@ Particles
Assets directory
==
Discord
==
https://ddnet.tw/discord
==
Learn
==

View file

@ -1192,6 +1192,12 @@ Particles
Assets directory
==
Discord
==
https://ddnet.tw/discord
==
Learn
==

View file

@ -1285,3 +1285,9 @@ Entities Background color
Regular Background Color
== Станд. фоновый цвет
Discord
==
https://ddnet.tw/discord
==

View file

@ -1190,6 +1190,12 @@ Particles
Assets directory
==
Discord
==
https://ddnet.tw/discord
==
https://wiki.ddnet.tw/
==

View file

@ -1279,3 +1279,9 @@ Use current map as background
Regular Background Color
==
Discord
==
https://ddnet.tw/discord
==

View file

@ -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.
==

View file

@ -1186,6 +1186,12 @@ Particles
Assets directory
==
Discord
==
https://ddnet.tw/discord
==
Learn
==

View file

@ -1286,3 +1286,9 @@ Entities Background color
Regular Background Color
==
Discord
==
https://ddnet.tw/discord
==

View file

@ -1282,3 +1282,9 @@ Particles
Assets directory
==
Discord
==
https://ddnet.tw/discord
==

View file

@ -1285,3 +1285,9 @@ Entities Background color
Regular Background Color
==
Discord
==
https://ddnet.tw/discord
==

View file

@ -1260,6 +1260,12 @@ Particles
Assets directory
==
Discord
==
https://ddnet.tw/discord
==
https://wiki.ddnet.tw/
==

View file

@ -1255,6 +1255,12 @@ Particles
Assets directory
==
Discord
==
https://ddnet.tw/discord
==
https://wiki.ddnet.tw/
==

View file

@ -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");
}