Add a flag to disable warnings for about.xml

This commit is contained in:
David Capello 2018-06-19 14:49:40 -03:00
parent e82404e3ba
commit 9323194cd9
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<!-- Aseprite -->
<!-- Copyright (C) 2018 by David Capello -->
<gui>
<gui i18nwarnings="false">
<window id="about" text="About Aseprite">
<vbox>
<label text="" id="title" />

View File

@ -1,5 +1,5 @@
// Aseprite Code Generator
// Copyright (c) 2016-2017 David Capello
// Copyright (c) 2016-2018 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
@ -115,6 +115,10 @@ public:
TiXmlHandle handle(doc);
XmlElements widgets;
const char* warnings = doc->RootElement()->Attribute("i18nwarnings");
if (warnings && strcmp(warnings, "false") == 0)
continue;
m_prefixId = find_first_id(doc->RootElement());
collect_elements_with_strings(doc->RootElement(), widgets);