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 /firmware | |
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 'firmware')
-rw-r--r-- | firmware/export/button.h | 2 | ||||
-rw-r--r-- | firmware/export/config.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/firmware/export/button.h b/firmware/export/button.h index 3abad2d4f0..75a72ab66e 100644 --- a/firmware/export/button.h +++ b/firmware/export/button.h | |||
@@ -24,7 +24,7 @@ | |||
24 | #include <stdbool.h> | 24 | #include <stdbool.h> |
25 | #include <inttypes.h> | 25 | #include <inttypes.h> |
26 | #include "config.h" | 26 | #include "config.h" |
27 | #ifndef __PCTOOL__ | 27 | #if defined(CHECKWPS) || !defined(__PCTOOL__) |
28 | #include "button-target.h" | 28 | #include "button-target.h" |
29 | #endif | 29 | #endif |
30 | 30 | ||
diff --git a/firmware/export/config.h b/firmware/export/config.h index 9812db9161..5ea5c71c70 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -915,7 +915,7 @@ Lyre prototype 1 */ | |||
915 | 915 | ||
916 | /* Enable the directory cache and tagcache in RAM if we have | 916 | /* Enable the directory cache and tagcache in RAM if we have |
917 | * plenty of RAM. Both features can be enabled independently. */ | 917 | * plenty of RAM. Both features can be enabled independently. */ |
918 | #if (MEMORYSIZE >= 8) && !defined(BOOTLOADER) && !defined(__PCTOOL__) \ | 918 | #if (MEMORYSIZE >= 8) && !defined(BOOTLOADER) && (defined(CHECKWPS) || !defined(__PCTOOL__)) \ |
919 | && !defined(APPLICATION) | 919 | && !defined(APPLICATION) |
920 | #ifndef SIMULATOR | 920 | #ifndef SIMULATOR |
921 | #define HAVE_DIRCACHE | 921 | #define HAVE_DIRCACHE |