mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53:40 +00:00
added printlocalized CCMD to check strings in-game.
This commit is contained in:
parent
43ca814da8
commit
561444f921
1 changed files with 20 additions and 0 deletions
|
@ -42,6 +42,7 @@
|
|||
#include "w_wad.h"
|
||||
#include "v_text.h"
|
||||
#include "c_functions.h"
|
||||
#include "gstrings.h"
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
|
@ -404,3 +405,22 @@ CCMD(listsnapshots)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
CCMD(printlocalized)
|
||||
{
|
||||
if (argv.argc() > 1)
|
||||
{
|
||||
if (argv.argc() > 2)
|
||||
{
|
||||
FString lang = argv[2];
|
||||
lang.ToLower();
|
||||
if (lang.Len() >= 2)
|
||||
{
|
||||
Printf("%s\n", GStrings.GetLanguageString(argv[1], MAKE_ID(lang[0], lang[1], lang[2], 0)));
|
||||
return;
|
||||
}
|
||||
}
|
||||
Printf("%s\n", GStrings(argv[1]));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue