mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 09:34:19 +00:00
Merge #2689
2689: Add localization for texture warning, improve wording (fixes #2688) r=heinrich5991 a=def- Co-authored-by: def <dennis@felsin9.de>
This commit is contained in:
commit
3bbf657941
|
@ -648,6 +648,9 @@ Successfully saved the replay!
|
||||||
Replay feature is disabled!
|
Replay feature is disabled!
|
||||||
==
|
==
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Game paused
|
Game paused
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -1148,6 +1148,9 @@ Best
|
||||||
9+ new mentions
|
9+ new mentions
|
||||||
== 9+ novih označenja
|
== 9+ novih označenja
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Country / Region
|
Country / Region
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -1146,6 +1146,9 @@ Zoom in
|
||||||
Zoom out
|
Zoom out
|
||||||
== Zoom out
|
== Zoom out
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Server best:
|
Server best:
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -645,6 +645,9 @@ Successfully saved the replay!
|
||||||
Replay feature is disabled!
|
Replay feature is disabled!
|
||||||
==
|
==
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Game paused
|
Game paused
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -1181,6 +1181,9 @@ Replay %3d:%02d
|
||||||
9+ new mentions
|
9+ new mentions
|
||||||
== 9+ noves mencions
|
== 9+ noves mencions
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Use k key to kill (restart), q to pause and watch other players. See settings for other key binds.
|
Use k key to kill (restart), q to pause and watch other players. See settings for other key binds.
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -648,6 +648,9 @@ Successfully saved the replay!
|
||||||
Replay feature is disabled!
|
Replay feature is disabled!
|
||||||
==
|
==
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Game paused
|
Game paused
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -651,6 +651,9 @@ Successfully saved the replay!
|
||||||
Replay feature is disabled!
|
Replay feature is disabled!
|
||||||
==
|
==
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Game paused
|
Game paused
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -648,6 +648,9 @@ Successfully saved the replay!
|
||||||
Replay feature is disabled!
|
Replay feature is disabled!
|
||||||
==
|
==
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Game paused
|
Game paused
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -1193,6 +1193,9 @@ Grabs
|
||||||
9+ new mentions
|
9+ new mentions
|
||||||
== 9+ nieuwe berichten
|
== 9+ nieuwe berichten
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Use k key to kill (restart), q to pause and watch other players. See settings for other key binds.
|
Use k key to kill (restart), q to pause and watch other players. See settings for other key binds.
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -649,6 +649,9 @@ Successfully saved the replay!
|
||||||
Replay feature is disabled!
|
Replay feature is disabled!
|
||||||
==
|
==
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Game paused
|
Game paused
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -1209,6 +1209,9 @@ Show DDNet map finishes in server browser
|
||||||
transmits your player name to info2.ddnet.tw
|
transmits your player name to info2.ddnet.tw
|
||||||
== transmet votre pseudonyme à info2.ddnet.tw
|
== transmet votre pseudonyme à info2.ddnet.tw
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Use k key to kill (restart), q to pause and watch other players. See settings for other key binds.
|
Use k key to kill (restart), q to pause and watch other players. See settings for other key binds.
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -1211,3 +1211,6 @@ Client message
|
||||||
|
|
||||||
Country / Region
|
Country / Region
|
||||||
== Land / Region
|
== Land / Region
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
== Die Breite oder Höhe von Textur %s ist nicht durch 16 teilbar, was visuelle Bugs verursachen kann.
|
||||||
|
|
|
@ -654,6 +654,9 @@ Successfully saved the replay!
|
||||||
Replay feature is disabled!
|
Replay feature is disabled!
|
||||||
==
|
==
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Server best:
|
Server best:
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -1187,6 +1187,9 @@ Length
|
||||||
Are you sure that you want to disconnect your dummy?
|
Are you sure that you want to disconnect your dummy?
|
||||||
== Biztos, hogy kiakarod léptetni a másolatodat?
|
== Biztos, hogy kiakarod léptetni a másolatodat?
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Use k key to kill (restart), q to pause and watch other players. See settings for other key binds.
|
Use k key to kill (restart), q to pause and watch other players. See settings for other key binds.
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -654,6 +654,9 @@ Successfully saved the replay!
|
||||||
Replay feature is disabled!
|
Replay feature is disabled!
|
||||||
==
|
==
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Game paused
|
Game paused
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -648,6 +648,9 @@ Successfully saved the replay!
|
||||||
Replay feature is disabled!
|
Replay feature is disabled!
|
||||||
==
|
==
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Game paused
|
Game paused
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -650,6 +650,9 @@ Successfully saved the replay!
|
||||||
Replay feature is disabled!
|
Replay feature is disabled!
|
||||||
==
|
==
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Server best:
|
Server best:
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -645,6 +645,9 @@ Successfully saved the replay!
|
||||||
Replay feature is disabled!
|
Replay feature is disabled!
|
||||||
==
|
==
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Server best:
|
Server best:
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -648,6 +648,9 @@ Successfully saved the replay!
|
||||||
Replay feature is disabled!
|
Replay feature is disabled!
|
||||||
==
|
==
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Game paused
|
Game paused
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -786,6 +786,9 @@ Personal best:
|
||||||
Best
|
Best
|
||||||
== ﻦﯾﺮﺘﻬﺑ
|
== ﻦﯾﺮﺘﻬﺑ
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Use k key to kill (restart), q to pause and watch other players. See settings for other key binds.
|
Use k key to kill (restart), q to pause and watch other players. See settings for other key binds.
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -1193,6 +1193,9 @@ Indicate map finish
|
||||||
Show others (own team only)
|
Show others (own team only)
|
||||||
== Pokazuj innych (tylko drużynę)
|
== Pokazuj innych (tylko drużynę)
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Use k key to kill (restart), q to pause and watch other players. See settings for other key binds.
|
Use k key to kill (restart), q to pause and watch other players. See settings for other key binds.
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -901,6 +901,9 @@ Successfully saved the replay!
|
||||||
Replay feature is disabled!
|
Replay feature is disabled!
|
||||||
==
|
==
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Server best:
|
Server best:
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -660,6 +660,9 @@ Successfully saved the replay!
|
||||||
Replay feature is disabled!
|
Replay feature is disabled!
|
||||||
==
|
==
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Server best:
|
Server best:
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -1194,6 +1194,9 @@ Grabs
|
||||||
Client message
|
Client message
|
||||||
== Сообщение от клиента
|
== Сообщение от клиента
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Use k key to kill (restart), q to pause and watch other players. See settings for other key binds.
|
Use k key to kill (restart), q to pause and watch other players. See settings for other key binds.
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -670,6 +670,9 @@ Video name:
|
||||||
Use k key to kill (restart), q to pause and watch other players. See settings for other key binds.
|
Use k key to kill (restart), q to pause and watch other players. See settings for other key binds.
|
||||||
== Tipka K da se ubijes (restart), tipka q da pauziras i gledas druge igrače.
|
== Tipka K da se ubijes (restart), tipka q da pauziras i gledas druge igrače.
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Server best:
|
Server best:
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -1207,3 +1207,6 @@ Use k key to kill (restart), q to pause and watch other players. See settings fo
|
||||||
|
|
||||||
Country / Region
|
Country / Region
|
||||||
== 国家 / 地区
|
== 国家 / 地区
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
|
@ -648,6 +648,9 @@ Successfully saved the replay!
|
||||||
Replay feature is disabled!
|
Replay feature is disabled!
|
||||||
==
|
==
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Game paused
|
Game paused
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -1194,6 +1194,9 @@ Grabs
|
||||||
9+ new mentions
|
9+ new mentions
|
||||||
== 9+ nuevas menciones
|
== 9+ nuevas menciones
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Use k key to kill (restart), q to pause and watch other players. See settings for other key binds.
|
Use k key to kill (restart), q to pause and watch other players. See settings for other key binds.
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -1190,6 +1190,9 @@ Connect Dummy
|
||||||
Show others (own team only)
|
Show others (own team only)
|
||||||
== Visa andra (eget lag endast)
|
== Visa andra (eget lag endast)
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Use k key to kill (restart), q to pause and watch other players. See settings for other key binds.
|
Use k key to kill (restart), q to pause and watch other players. See settings for other key binds.
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -1201,3 +1201,6 @@ Auto %3d:%02d
|
||||||
|
|
||||||
Replay %3d:%02d
|
Replay %3d:%02d
|
||||||
== 回放 %3d:%02d
|
== 回放 %3d:%02d
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
|
@ -1199,5 +1199,8 @@ Grabs
|
||||||
9+ new mentions
|
9+ new mentions
|
||||||
== 9+ yeni bildirim
|
== 9+ yeni bildirim
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Country / Region
|
Country / Region
|
||||||
==
|
==
|
||||||
|
|
|
@ -1188,6 +1188,9 @@ Grabs
|
||||||
9+ new mentions
|
9+ new mentions
|
||||||
== 9+ нових згадок
|
== 9+ нових згадок
|
||||||
|
|
||||||
|
The width or height of texture %s is not divisible by 16, which might cause visual bugs.
|
||||||
|
==
|
||||||
|
|
||||||
Use k key to kill (restart), q to pause and watch other players. See settings for other key binds.
|
Use k key to kill (restart), q to pause and watch other players. See settings for other key binds.
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
#include <engine/storage.h>
|
#include <engine/storage.h>
|
||||||
#include <engine/keys.h>
|
#include <engine/keys.h>
|
||||||
#include <engine/console.h>
|
#include <engine/console.h>
|
||||||
|
#include <game/localization.h>
|
||||||
|
|
||||||
#include <math.h> // cosf, sinf, log2f
|
#include <math.h> // cosf, sinf, log2f
|
||||||
|
|
||||||
|
@ -454,16 +455,12 @@ IGraphics::CTextureHandle CGraphics_Threaded::LoadTextureRaw(int Width, int Heig
|
||||||
{
|
{
|
||||||
SGraphicsWarning NewWarning;
|
SGraphicsWarning NewWarning;
|
||||||
char aText[128];
|
char aText[128];
|
||||||
if(pTexName && *pTexName)
|
aText[0] = '\0';
|
||||||
|
if(pTexName)
|
||||||
{
|
{
|
||||||
str_format(aText, sizeof(aText), ":\n\"%s\"\n", pTexName);
|
str_format(aText, sizeof(aText), "\"%s\"", pTexName);
|
||||||
}
|
}
|
||||||
else
|
str_format(NewWarning.m_aWarningMsg, sizeof(NewWarning.m_aWarningMsg), Localize("The width or height of texture %s is not divisible by 16, which might cause visual bugs."), aText);
|
||||||
{
|
|
||||||
aText[0] = ' ';
|
|
||||||
aText[1] = 0;
|
|
||||||
}
|
|
||||||
str_format(NewWarning.m_aWarningMsg, sizeof(NewWarning.m_aWarningMsg), "The width and height of texture%sare not divisible by 16, which might cause visual bugs.", aText);
|
|
||||||
|
|
||||||
m_Warnings.emplace_back(NewWarning);
|
m_Warnings.emplace_back(NewWarning);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue