mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-29 18:20:44 +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 -->
|
||||
<!-- Copyright (C) 2018 by David Capello -->
|
||||
<gui>
|
||||
<gui i18nwarnings="false">
|
||||
<window id="about" text="About Aseprite">
|
||||
<vbox>
|
||||
<label text="" id="title" />
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user