Skip to content
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

Danish language has broken characters in web build #446

Closed
eepykami opened this issue Mar 17, 2024 · 0 comments · Fixed by #447
Closed

Danish language has broken characters in web build #446

eepykami opened this issue Mar 17, 2024 · 0 comments · Fixed by #447

Comments

@eepykami
Copy link
Contributor

eepykami commented Mar 17, 2024

As seen in this web build (https://web.skyemu.app/branch/dev/), some accented characters display as question marks.

313439212-83df11c7-c72e-4a86-b93b-f92d22767709

I believe adding Danish to the list of Unicode languages in localization.c will fix this.

SkyEmu/src/localization.c

Lines 1992 to 2006 in daef1b3

const char* se_language_string(int language_enum){
switch (language_enum){
case SE_LANG_DEFAULT: return se_localize("Default");
case SE_LANG_ENGLISH: return "English";
case SE_LANG_DUTCH: return "Nederlands";
case SE_LANG_DANISH: return "Dansk";
case SE_LANG_GERMAN: return "Deutsch";
case SE_LANG_ITALIAN: return "Italiano";
// These languages require unicode support to represent correctly
#ifdef UNICODE_GUI
case SE_LANG_CHINESE: return "中文";
case SE_LANG_ARMENIAN: return "Հայերեն";
case SE_LANG_GREEK: return "Ελληνικά";
case SE_LANG_RUSSIAN: return "Русский";
case SE_LANG_POLISH: return "Polski";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant