Patch for CreateMessageDlg: caption now uses correctly translated resourcestring
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
If you use the CreateMessageDlg function and use TranslateUnitResourceStrings to translate the lclstrconsts resource strings, then the resulting dialog will still have English captions ('Error','Warning' etc.)
This is because the caption is set using a constant array of resourcestrings (introduced (by me) in r18142).
This array does not get updated if one uses TranslateUnitResourceSrings (from translation unit).
I changed the static array to a function call (see attached patch).