We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1942660 commit eeb6762Copy full SHA for eeb6762
src/translation.cpp
@@ -58,6 +58,10 @@ void Translations::loadTranslation(const std::string &data)
58
59
while (is.good()) {
60
std::getline(is, line);
61
+ // Trim last character if file was using a \r\n line ending
62
+ if (line.length () > 0 && line[line.length() - 1] == '\r')
63
+ line.resize(line.length() - 1);
64
+
65
if (str_starts_with(line, "# textdomain:")) {
66
textdomain = utf8_to_wide(trim(str_split(line, ':')[1]));
67
}
0 commit comments