diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-05-23 21:36:54 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-05-24 21:37:54 -0400 |
commit | 8b8c0c7c2ac40cd729a9eeb39189c184978b6d57 (patch) | |
tree | 09ab71d2b8f13ae47960d5508a5afd3ac135e588 /apps/gui/skin_engine/wps_internals.h | |
parent | ac20f8a73c9898ab66e176ab66f3ef89bb76692d (diff) | |
download | rockbox-8b8c0c7c2ac40cd729a9eeb39189c184978b6d57.tar.gz rockbox-8b8c0c7c2ac40cd729a9eeb39189c184978b6d57.zip |
checkwps: Validate translated strings (%Sx)
In verbose mode it will log valid the strings found, otherwise it will
only complain when we encounter a missing string.
Unfortunately a missing string is not inherently a problem, due to
conditional expressions. So all we can do is complain in checkwps
or if wps debugging is turned on.
Meanwhile, this is the first step in actually enumerating the translated
strings used by themes.
Change-Id: Ia93b333085e825d5b085c4d372ad8e13aa3e3ba1
Diffstat (limited to 'apps/gui/skin_engine/wps_internals.h')
-rw-r--r-- | apps/gui/skin_engine/wps_internals.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/wps_internals.h b/apps/gui/skin_engine/wps_internals.h index 6e20ed8da9..c4e319fca5 100644 --- a/apps/gui/skin_engine/wps_internals.h +++ b/apps/gui/skin_engine/wps_internals.h | |||
@@ -442,7 +442,8 @@ enum skin_find_what { | |||
442 | }; | 442 | }; |
443 | void *skin_find_item(const char *label, enum skin_find_what what, | 443 | void *skin_find_item(const char *label, enum skin_find_what what, |
444 | struct wps_data *data); | 444 | struct wps_data *data); |
445 | #ifdef SIMULATOR | 445 | |
446 | #if defined(SIMULATOR) || defined(CHECKWPS) | ||
446 | #define DEBUG_SKIN_ENGINE | 447 | #define DEBUG_SKIN_ENGINE |
447 | extern bool debug_wps; | 448 | extern bool debug_wps; |
448 | #endif | 449 | #endif |