From 6948dc1d7854ce6b637146de2d164af05eef0cf9 Mon Sep 17 00:00:00 2001 From: redblue-pkt <17146148+redblue-pkt@users.noreply.github.com> Date: Thu, 3 Jan 2019 16:12:31 +0100 Subject: [PATCH] lcd4linux: convert polish letters Signed-off-by: GetAway --- src/driver/lcd4l.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/driver/lcd4l.cpp b/src/driver/lcd4l.cpp index bf46bb398..d242b8491 100644 --- a/src/driver/lcd4l.cpp +++ b/src/driver/lcd4l.cpp @@ -1025,6 +1025,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_dpf_type == 0) strReplace(content, "ß", "\xe2\0"); strReplace(content, "é", "e"); }