diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index 779f6810a2..33f82ef9e1 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c @@ -49,9 +49,12 @@ #include "audio.h" #define lang_is_rtl() (false) #define DEBUGF printf +#define splashf(...) #endif /*WPSEDITOR*/ #else #include "debug.h" +#include "splash.h" +#include "lang.h" #include "language.h" #endif /*__PCTOOL__*/ @@ -2102,6 +2105,7 @@ static bool skin_load_fonts(struct wps_data *data) { if (success) { + splashf(HZ, str(LANG_FONT_LOAD_ERROR), "(no name)"); DEBUGF("font %d not specified\n", font_id); } success = false; @@ -2126,6 +2130,7 @@ static bool skin_load_fonts(struct wps_data *data) if (font->id < 0) { + splashf(HZ, str(LANG_FONT_LOAD_ERROR), font->name); DEBUGF("Unable to load font %d: '%s'\n", font_id, font->name); font->name = NULL; /* to stop trying to load it again if we fail */ success = false; diff --git a/apps/lang/english.lang b/apps/lang/english.lang index 00efef667d..1c6259cc98 100644 --- a/apps/lang/english.lang +++ b/apps/lang/english.lang @@ -16566,4 +16566,18 @@ *: "Lineout" - \ No newline at end of file + + + id: LANG_FONT_LOAD_ERROR + desc: Displayed when font loading fails + user: core + + *: "Unable to load font: (%s)" + + + *: "Unable to load font: (%s)" + + + *: "tracks saved" + +