Skip to content
Permalink
Browse files

added printlocalized CCMD to check strings in-game.

  • Loading branch information...
coelckers committed Mar 13, 2019
1 parent 43ca814 commit 561444f92159ac3370ec7a4579004f97624f084d
Showing with 20 additions and 0 deletions.
  1. +20 −0 src/g_dumpinfo.cpp
@@ -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]));
}

}

0 comments on commit 561444f

Please sign in to comment.
You can’t perform that action at this time.