Skip to content

Commit

Permalink
Merge pull request #1350 from sakura-editor/feature/add_convert_lang_…
Browse files Browse the repository at this point in the history
…at_first_time

英語OSでの初回起動時に設定値を変換する処理を挿入する
  • Loading branch information
berryzplus authored Jul 26, 2020
2 parents 27475cd + ceb478f commit 5b936dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sakura_core/env/CShareData_IO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ bool CShareData_IO::ShareData_IO_2( bool bRead )
DLLSHAREDATA* pShareData = &GetDllShareData();
wcscpy(pShareData->m_Common.m_sWindow.m_szLanguageDll, L"sakura_lang_en_US.dll");
cProfile.IOProfileData( L"Common", L"szLanguageDll", MakeStringBufferW( pShareData->m_Common.m_sWindow.m_szLanguageDll ) );
std::vector<std::wstring> values;
pcShare->ConvertLangValues( values, true );
CSelectLang::ChangeLang( pShareData->m_Common.m_sWindow.m_szLanguageDll );
pcShare->ConvertLangValues( values, false );
pcShare->RefreshString();
}
return false;
Expand Down

0 comments on commit 5b936dd

Please sign in to comment.