New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addons: Date shows sign for german umlauts #6450
Comments
Mirrored from Codeberg Interesting, it works for me in Low German:
On my previous system, where I had Low German as primary and German as secondary language, it didn't work at all and showed up in English. std::string time_string(const std::time_t& time) {
std::ostringstream oss("");
try {
oss.imbue(std::locale(i18n::get_locale()));
} catch (...) {
// silently ignore
}
oss << std::put_time(std::localtime(&time), "%c");
return oss.str();
} |
Mirrored from Codeberg Don't know why but i had set the language to "Deutsch" in the widelands options. If i set it to "Try System language" all is fine. The difference is probably the UTF-8 encoding: With language set to "Deutsch" and restart widelands:
With setting language to System language and restarting widelands:
According to the output the encoding with UTF-8 is missing when using "Language=Deutsch" |
Mirrored from Codeberg What is the behaviour with #6411? In master I get the date in correct Low German with locale Try System Language, in English with locale Low German, and in correct German with locale German. In #6411 I get the date in correct Low German with locale Try System Language, and in English with both locale Low German and locale German. None of these cases show the bug. |
Mirrored from Codeberg
With this all is shown correct, regardless if i use "Deutsch" or "Try System language" :-) |
Mirrored from Codeberg
Created on Thu May 09 10:49:54 CEST 2024 by frankystone
The month name of the date shows a sign for german umlauts:
The description shows the umlauts correct, e.g. in "Lagerhäusern" or "unterstützt".
To reproduce
Expected behavior
Show the umlaut. I guess it should show "März" instead of "M?r".
Version:
For reference:
The text was updated successfully, but these errors were encountered: