lcd4linux: convert polish letters

Origin commit data
------------------
Commit: 271664237a
Author: redblue.pkt <redblue.pkt@orange.pl>
Date: 2018-09-30 (Sun, 30 Sep 2018)
This commit is contained in:
redblue.pkt
2018-09-30 22:42:49 +02:00
committed by vanhofen
parent 36e5664137
commit 80b28da0bf

View File

@@ -937,6 +937,26 @@ bool CLCD4l::WriteFile(const char *file, std::string content, bool convert)
strReplace(content, "Ä", "\xc4\0");
strReplace(content, "Ö", "\xd6\0");
strReplace(content, "Ü", "\xdc\0");
strReplace(content, "Ą", "\x41\0");
strReplace(content, "ą", "\x61\0");
strReplace(content, "Ć", "\x43\0");
strReplace(content, "ć", "\x63\0");
strReplace(content, "Ę", "\x45\0");
strReplace(content, "ę", "\x65\0");
strReplace(content, "Ł", "\x4c\0");
strReplace(content, "ł", "\x6c\0");
strReplace(content, "Ń", "\x4e\0");
strReplace(content, "ń", "\x6e\0");
strReplace(content, "Ó", "\x4f\0");
strReplace(content, "ó", "\x6f\0");
strReplace(content, "Ś", "\x53\0");
strReplace(content, "ś", "\x73\0");
strReplace(content, "Ź", "\x5a\0");
strReplace(content, "ź", "\x7a\0");
strReplace(content, "Ź", "\x5a\0");
strReplace(content, "ż", "\x7a\0");
if (g_settings.lcd4l_display_type == PEARL) strReplace(content, "ß", "\xe2\0");
strReplace(content, "é", "e");
}