mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 18:00:26 +00:00
Add a flag to disable warnings for about.xml
This commit is contained in:
parent
e82404e3ba
commit
9323194cd9
@ -1,6 +1,6 @@
|
|||||||
<!-- Aseprite -->
|
<!-- Aseprite -->
|
||||||
<!-- Copyright (C) 2018 by David Capello -->
|
<!-- Copyright (C) 2018 by David Capello -->
|
||||||
<gui>
|
<gui i18nwarnings="false">
|
||||||
<window id="about" text="About Aseprite">
|
<window id="about" text="About Aseprite">
|
||||||
<vbox>
|
<vbox>
|
||||||
<label text="" id="title" />
|
<label text="" id="title" />
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Aseprite Code Generator
|
// 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.
|
// This file is released under the terms of the MIT license.
|
||||||
// Read LICENSE.txt for more information.
|
// Read LICENSE.txt for more information.
|
||||||
@ -115,6 +115,10 @@ public:
|
|||||||
TiXmlHandle handle(doc);
|
TiXmlHandle handle(doc);
|
||||||
XmlElements widgets;
|
XmlElements widgets;
|
||||||
|
|
||||||
|
const char* warnings = doc->RootElement()->Attribute("i18nwarnings");
|
||||||
|
if (warnings && strcmp(warnings, "false") == 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
m_prefixId = find_first_id(doc->RootElement());
|
m_prefixId = find_first_id(doc->RootElement());
|
||||||
|
|
||||||
collect_elements_with_strings(doc->RootElement(), widgets);
|
collect_elements_with_strings(doc->RootElement(), widgets);
|
||||||
|
Loading…
Reference in New Issue
Block a user