summaryrefslogtreecommitdiff
path: root/tools/checkwps/checkwps.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-05-23 21:36:54 -0400
committerSolomon Peachy <pizza@shaftnet.org>2024-05-24 21:37:54 -0400
commit8b8c0c7c2ac40cd729a9eeb39189c184978b6d57 (patch)
tree09ab71d2b8f13ae47960d5508a5afd3ac135e588 /tools/checkwps/checkwps.c
parentac20f8a73c9898ab66e176ab66f3ef89bb76692d (diff)
downloadrockbox-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 'tools/checkwps/checkwps.c')
-rw-r--r--tools/checkwps/checkwps.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/checkwps/checkwps.c b/tools/checkwps/checkwps.c
index 932dc3884c..dd2115d5ef 100644
--- a/tools/checkwps/checkwps.c
+++ b/tools/checkwps/checkwps.c
@@ -35,7 +35,7 @@
35#include "file.h" 35#include "file.h"
36#include "font.h" 36#include "font.h"
37 37
38bool debug_wps = true; 38bool debug_wps = false;
39int wps_verbose_level = 0; 39int wps_verbose_level = 0;
40char *skin_buffer; 40char *skin_buffer;
41 41
@@ -167,9 +167,9 @@ int remote_getwidth(void) { return LCD_REMOTE_WIDTH; }
167int remote_getheight(void) { return LCD_REMOTE_HEIGHT; } 167int remote_getheight(void) { return LCD_REMOTE_HEIGHT; }
168#endif 168#endif
169 169
170static inline bool backdrop_load(const char *filename, char* backdrop_buffer) 170static inline bool backdrop_load(const char *filename, char* backdrop_buffer)
171{ 171{
172 (void)filename; (void)backdrop_buffer; return true; 172 (void)filename; (void)backdrop_buffer; return true;
173} 173}
174 174
175struct screen screens[NB_SCREENS] = 175struct screen screens[NB_SCREENS] =
@@ -282,6 +282,7 @@ int main(int argc, char **argv)
282 while (argv[1][i] && argv[1][i] == 'v') { 282 while (argv[1][i] && argv[1][i] == 'v') {
283 i++; 283 i++;
284 wps_verbose_level++; 284 wps_verbose_level++;
285 debug_wps = true;
285 } 286 }
286 } 287 }
287 skin_buffer = malloc(SKIN_BUFFER_SIZE); 288 skin_buffer = malloc(SKIN_BUFFER_SIZE);