From c080065f02461e07c23ebc7ce9122e7e6334da03 Mon Sep 17 00:00:00 2001 From: redblue-pkt Date: Sun, 30 Sep 2018 22:42:49 +0200 Subject: [PATCH] lcd4linux: convert polish letters Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/271664237aa400519841583e832048fe8f59e70a Author: redblue-pkt Date: 2018-09-30 (Sun, 30 Sep 2018) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/driver/lcd4l.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/driver/lcd4l.cpp b/src/driver/lcd4l.cpp index b7f58a1f4..441c60587 100644 --- a/src/driver/lcd4l.cpp +++ b/src/driver/lcd4l.cpp @@ -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"); }