-
Notifications
You must be signed in to change notification settings - Fork 170
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
英語windowsでメッセージがおかしい件に対処する #534
英語windowsでメッセージがおかしい件に対処する #534
Conversation
なんか変な変更入ってる・・・ |
a2658e1
to
9e45592
Compare
・日本語リソースの言語IDを設定するように変更。
上げ直しました。 win8.1のIE11で見ると画像おかしくなってたので画像も修正しました。 |
// 言語IDを取得 | ||
TCHAR szBuf[7]; // "0x" + 4桁 + 番兵 | ||
nCount = ::LoadString( GetModuleHandle(NULL), STR_SELLANG_LANGID, szBuf, _countof(szBuf)); | ||
assert(nCount == _countof(szBuf) - 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
この assert はサイズぴったりというのを確認したいのですか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
107行目のコメントが STR_SELLANG_LANGID
に入れる文字列の仕様です。
日本語 = 0x0411
← MAKELANGID(LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN)
英語 = 0x0409
← MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US)
sakura_rc.rcを変更して違うものを入れたら起動時に落ちます。
(たとえば 0x411
にするとか。)
ユーザが勝手に変えられる内容ではないので問題ないと考えています。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…ult_langid マージします。何かあれば別PRで対応していきましょう。
表示言語が日本語以外になっているwindowsで、
サクラエディタを日本語表示しているときのメッセージがおかしい件に対処します。
(メッセージの下に出るボタン類が日本語でなくなってしまう。)
対応内容は、言語リソース構造体の初期化漏れ対策です。
日本語の言語リソースについても言語IDを設定するように修正します。