Skip to content

Commit

Permalink
feat: 支持波兰语
Browse files Browse the repository at this point in the history
  • Loading branch information
Blinue committed Jun 13, 2024
1 parent fbffc2e commit d3c2e52
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Magpie.App/LocalizationService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ static std::array SUPPORTED_LANGUAGES{
L"it",
L"ja",
L"ko",
L"pl",
L"pt-br",
L"ru",
L"tr",
Expand Down
1 change: 1 addition & 0 deletions src/Magpie.App/Magpie.App.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@
<PRIResource Include="Resources.language-it.resw" />
<PRIResource Include="Resources.language-ja.resw" />
<PRIResource Include="Resources.language-ko.resw" />
<PRIResource Include="Resources.language-pl.resw" />
<PRIResource Include="Resources.language-pt-BR.resw" />
<PRIResource Include="Resources.language-ru.resw" />
<PRIResource Include="Resources.language-tr.resw" />
Expand Down
2 changes: 1 addition & 1 deletion src/Magpie.Core/OverlayDrawer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ void OverlayDrawer::_BuildFontUI(
builder.AddRanges(ImGuiHelper::ENGLISH_RANGES);
} else if (language == L"ru" || language == L"uk") {
builder.AddRanges(fontAtlas.GetGlyphRangesCyrillic());
} else if (language == L"tr" || language == L"hu") {
} else if (language == L"tr" || language == L"hu" || language == L"pl") {
builder.AddRanges(ImGuiHelper::Latin_1_Extended_A_RANGES);
} else if (language == L"vi") {
builder.AddRanges(fontAtlas.GetGlyphRangesVietnamese());
Expand Down

0 comments on commit d3c2e52

Please sign in to comment.