Skip to content

Commit

Permalink
fallback new sublang names
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Feb 3, 2025
1 parent f2528db commit 9009f9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/RisohEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16154,9 +16154,10 @@ MString GetLanguageStatement(WORD langid, BOOL bOldStyle)
case SUBLANG_NEUTRAL: strSub = TEXT("SUBLANG_NEUTRAL"); break;
case SUBLANG_DEFAULT: strSub = TEXT("SUBLANG_DEFAULT"); break;
case SUBLANG_SYS_DEFAULT: strSub = TEXT("SUBLANG_SYS_DEFAULT"); break;
case SUBLANG_CUSTOM_DEFAULT: strSub = TEXT("SUBLANG_CUSTOM_DEFAULT"); break;
case SUBLANG_CUSTOM_UNSPECIFIED: strSub = TEXT("SUBLANG_CUSTOM_UNSPECIFIED"); break;
case SUBLANG_UI_CUSTOM_DEFAULT: strSub = TEXT("SUBLANG_UI_CUSTOM_DEFAULT"); break;
// NOTE: RosBE <winnt.rh> doesn't support the following names: SUBLANG_CUSTOM_DEFAULT, SUBLANG_CUSTOM_UNSPECIFIED, and SUBLANG_UI_CUSTOM_DEFAULT.
//case SUBLANG_CUSTOM_DEFAULT: strSub = TEXT("SUBLANG_CUSTOM_DEFAULT"); break;
//case SUBLANG_CUSTOM_UNSPECIFIED: strSub = TEXT("SUBLANG_CUSTOM_UNSPECIFIED"); break;
//case SUBLANG_UI_CUSTOM_DEFAULT: strSub = TEXT("SUBLANG_UI_CUSTOM_DEFAULT"); break;
default:
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lang/es_ES.rc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#pragma code_page(65001) // UTF-8

LANGUAGE LANG_SPANISH, SUBLANG_CUSTOM_DEFAULT
LANGUAGE LANG_SPANISH, 0x0003

//////////////////////////////////////////////////////////////////////////////
// RT_MENU
Expand Down

0 comments on commit 9009f9c

Please sign in to comment.