use language name in missing LangString warning, if possible

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4182 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2005-07-22 17:37:26 +00:00
parent 7e2442e17e
commit 0a19777905

View file

@ -607,8 +607,13 @@ int CEXEBuild::GenerateLangTables() {
{
// No string is defined; give a warning (for user strings only)
if (lsn[0] != '^')
{
if (lt[i].nlf.m_bLoaded)
warning("LangString \"%s\" is not set in language table of language %s", lsn, lt[i].nlf.m_szName);
else
warning("LangString \"%s\" is not set in language table of language %d", lsn, lt[i].lang_id);
}
}
else
{
// Add the language string to the string data block
@ -714,8 +719,13 @@ int CEXEBuild::GenerateLangTables() {
{
// No string is defined; give a warning (for user strings only)
if (lsn[0] != '^')
{
if (lt[i].nlf.m_bLoaded)
warning("LangString \"%s\" is not set in language table of language %s", lsn, lt[i].nlf.m_szName);
else
warning("LangString \"%s\" is not set in language table of language %d", lsn, lt[i].lang_id);
}
}
else
{
// Add the language string to the string data block