Add some more messages in dialog boxes to be translatable

This commit is contained in:
maron2000 2025-04-28 22:59:26 +09:00
parent 6aea02c6af
commit dac5dcac27
10 changed files with 119 additions and 12 deletions

View File

@ -4459,3 +4459,47 @@ Are you sure to use the language file for this system type?
:LANG_CHANGE_CP
The specified language file uses code page %d. Do you want to change to this code page accordingly?.
.
:SCALER_LOAD_WARN
This scaler may not work properly or have undesired effect:
%s
Do you want to force load the scaler?
.
:PIXEL_SHADER_WARN
This pixel shader may be unneeded or have undesired effect:
%s
Do you want to load the pixel shader anyway?
(You may append 'forced' to the pixelshader setting to force load the pixel shader without this message)
.
:PIXEL_SHADER_LOADED
Loaded pixel shader - %s
.
:MAPPEREDITOR_NOT_AVAILABLE
Mapper Editor is not currently available.
.
:OPL_REC_COMPLETED
Saved Raw OPL output to the file:
%s
.
:OPL_CAPTURE_FAILED
Cannot capture Raw OPL output because ESFM native mode is being used by the current application, which is not supported by the Raw OPL format.
.
:TTF_DBCS_ONLY
This function is only available for the Chinese/Japanese/Korean code pages.
.
:SAVE_FAILED
Failed to save the current state.
.
:SAVE_CORRUPTED
Save state corrupted! Program may not work.
.
:SAVE_SCREENSHOT
Saved screenshot to the file:
%s
.

View File

@ -4477,4 +4477,48 @@ DOSBox-X を終了してよろしいですか?
指定した言語ファイルはコードページ %d を使用します。
このコードページへ変更しますか?
.
:SCALER_LOAD_WARN
このスケーラは正しく動作しないか意図しない動作をするかもしれません:
%s
このスケーラを強制的に適用しますか?
.
:PIXEL_SHADER_WARN
このピクセルシェーダは正しく動作しないか意図しない動作をするかもしれません:
%s
このピクセルシェーダを強制的に適用しますか?
(ピクセルシェーダのオプションに 'forced' を追加すると、このメッセージを表示せずに強制的に適用します)
.
:PIXEL_SHADER_LOADED
適用したピクセルシェーダ - %s
.
:MAPPEREDITOR_NOT_AVAILABLE
マッパー・エディタは現在使用できません。
.
:OPL_REC_COMPLETED
Raw OPL 出力をファイルに保存しました:
%s
.
:OPL_CAPTURE_FAILED
現在のアプリケーションが Raw OPL フォーマットに対応していない ESFM ネイティブモードを使用しているため、Raw OPL 出力をキャプチャできません。
.
:TTF_DBCS_ONLY
この機能は中国語 / 日本語 / 韓国語 のコードページで使います。
.
:SAVE_FAILED
現在のステートを保存できませんでした。
.
:SAVE_CORRUPTED
セーブ・ステートは壊れています! プログラムは動作しないかもしれません。
.
:SAVE_SCREENSHOT
スクリーンショットを以下のファイルに保存しました:
%s
.

View File

@ -10460,7 +10460,21 @@ void DOS_SetupPrograms(void) {
"because one or more files are currently open.\nAre you sure to quit anyway now?");
MSG_Add("QUIT_PROGRAM_DISABLED","You cannot quit DOSBox-X while running a program or game.");
MSG_Add("QUIT_PROGRAM_CONFIRM","You are currently running a program or game.\nAre you sure to quit anyway now?");
MSG_Add("SCALER_LOAD_WARN","This scaler may not work properly or have undesired effect:\n\n%s\n\n"
"Do you want to force load the scaler?");
MSG_Add("PIXEL_SHADER_WARN","This pixel shader may be unneeded or have undesired effect:\n\n%s\n\n"
"Do you want to load the pixel shader anyway?\n\n"
"(You may append 'forced' to the pixelshader setting to force load the pixel shader without this message)");
MSG_Add("PIXEL_SHADER_LOADED", "Loaded pixel shader - %s");
MSG_Add("MAPPEREDITOR_NOT_AVAILABLE","Mapper Editor is not currently available.");
MSG_Add("OPL_REC_COMPLETED","Saved Raw OPL output to the file:\n\n%s");
MSG_Add("OPL_CAPTURE_FAILED","Cannot capture Raw OPL output because ESFM native mode is being used by the current "
"application, which is not supported by the Raw OPL format.");
MSG_Add("TTF_DBCS_ONLY","This function is only available for the Chinese/Japanese/Korean code pages.");
MSG_Add("SAVE_FAILED","Failed to save the current state.");
MSG_Add("SAVE_CORRUPTED","Save state corrupted! Program may not work.");
MSG_Add("SAVE_SCREENSHOT","Saved screenshot to the file:\n\n%s");
const Section_prop * dos_section=static_cast<Section_prop *>(control->GetSection("dos"));
hidefiles = dos_section->Get_string("drive z hide files");

View File

@ -511,7 +511,7 @@ void RENDER_Reset( void ) {
goto forcenormal;
if(render.scale.prompt && (!dblh || !dblw) && !((dblh || dblw) && !render.scale.hardware) && scalerOpTV != render.scale.op && scaler != "none" && strncasecmp(scaler.c_str(), "normal", 6) && !render.scale.forced && sdl.desktop.want_type != SCREEN_TTF) {
std::string message = "This scaler may not work properly or have undesired effect:\n\n"+scaler+"\n\nDo you want to force load the scaler?";
std::string message = formatString(MSG_Get("SCALER_LOAD_WARN"), scaler.c_str());
render.scale.forced = systemmessagebox("Loading scaler", message.c_str(), "yesno","question", 1);
render.scale.prompt = false;
}

View File

@ -5336,7 +5336,7 @@ void MAPPER_RunInternal() {
/* Sorry, the MAPPER screws up 3Dfx OpenGL emulation.
* Remove this block when fixed. */
if (GFX_GetPreventFullscreen()) {
systemmessagebox("Mapper Editor","Mapper Editor is not currently available.","ok", "info", 1);
systemmessagebox("Mapper Editor", MSG_Get("MAPPEREDITOR_NOT_AVAILABLE"),"ok", "info", 1);
LOG_MSG("Mapper Editor is not available while 3Dfx OpenGL emulation is running");
return;
}

View File

@ -1337,16 +1337,20 @@ void OPL_SaveRawEvent(bool pressed) {
// SaveRad();return;
/* Check for previously opened wave file */
if ( module->capture ) {
std::string message;
if ( module->capture ) {
delete module->capture;
module->capture = nullptr;
LOG_MSG("Stopped Raw OPL capturing.");
if (show_recorded_filename && pathopl.size()) systemmessagebox("Recording completed",("Saved Raw OPL output to the file:\n\n"+pathopl).c_str(),"ok", "info", 1);
if(show_recorded_filename && pathopl.size()) {
message = formatString(MSG_Get("OPL_REC_COMPLETED"), pathopl.c_str());
systemmessagebox("Recording completed", message.c_str(), "ok", "info", 1);
}
} else {
if (module->oplmode == OPL_esfm && module->esfm_nativemode) {
LOG_MSG("ERROR: Cannot capture Raw OPL output because ESFM native mode is being used by the current application, which is not supported by the Raw OPL format.");
if (show_recorded_filename) {
systemmessagebox("Error", "Cannot capture Raw OPL output because ESFM native mode is being used by the current application, which is not supported by the Raw OPL format.", "ok", "error", 1);
systemmessagebox("Error",MSG_Get("OPL_CAPTURE_FAILED"), "ok", "error", 1);
}
} else {
LOG_MSG("Preparing to capture Raw OPL, will start with first note played.");

View File

@ -5642,6 +5642,7 @@ void WriteARawImage(rawscreenshot &rawimg,rawscreenshot &rawpal,const char *ext)
png_destroy_write_struct(&png_ptr, &info_ptr);
/*close file*/
fclose(fp);
std::string message = formatString(MSG_Get("SAVE_SCREENSHOT"), pathscr.c_str());
if (show_recorded_filename && pathscr.size()) systemmessagebox("Recording completed",("Saved screenshot to the file:\n\n"+pathscr).c_str(),"ok", "info", 1);
}
#endif

View File

@ -573,14 +573,14 @@ done:
if (!dos_kernel_disabled) flagged_backup((char *)save.c_str());
if (save_err)
notifyError("Failed to save the current state.");
notifyError(MSG_Get("SAVE_FAILED"));
else
LOG_MSG("[%s]: Saved. (Slot %d)", getTime().c_str(), (int)slot+1);
}
void savestatecorrupt(const char* part) {
LOG_MSG("Save state corrupted! Program in inconsistent state! - %s", part);
systemmessagebox("Error","Save state corrupted! Program may not work.","ok","error", 1);
systemmessagebox("Error", MSG_Get("SAVE_CORRUPTED"),"ok","error", 1);
}
bool confres=false;

View File

@ -1035,9 +1035,9 @@ HRESULT CDirect3D::LoadPixelShader(const char * shader, double scalex, double sc
// Compare optimal scaling factor
bool dblgfx=((scalex < scaley ? scalex : scaley) >= psEffect->getScale());
std::string message = "This pixel shader may be unneeded or have undesired effect:\n\n"+std::string(shader)+"\n\nDo you want to load the pixel shader anyway?\n\n(You may append 'forced' to the pixelshader setting to force load the pixel shader without this message)";
std::string message = formatString(MSG_Get("PIXEL_SHADER_WARN"), shader);
if(dblgfx || forced || systemmessagebox("Direct3D shader", message.c_str(), "yesno","question", 1)) {
message = "Loaded pixel shader - "+std::string(shader);
message = formatString(MSG_Get("PIXEL_SHADER_LOADED"), shader);
if (informd3d) systemmessagebox("Direct3D shader", message.c_str(), "ok","info", 1);
LOG_MSG("D3D:Pixel shader %s active", shader);
RENDER_SetForceUpdate(psEffect->getForceUpdate());

View File

@ -1345,7 +1345,7 @@ void TTF_DecreaseSize(bool pressed) {
void DBCSSBCS_mapper_shortcut(bool pressed) {
if (!pressed) return;
if (!isDBCSCP()) {
systemmessagebox("Warning", "This function is only available for the Chinese/Japanese/Korean code pages.", "ok","warning", 1);
systemmessagebox("Warning", MSG_Get("TTF_DBCS_ONLY"), "ok","warning", 1);
return;
}
dbcs_sbcs=!dbcs_sbcs;
@ -1357,7 +1357,7 @@ void DBCSSBCS_mapper_shortcut(bool pressed) {
void AutoBoxDraw_mapper_shortcut(bool pressed) {
if (!pressed) return;
if (!isDBCSCP()) {
systemmessagebox("Warning", "This function is only available for the Chinese/Japanese/Korean code pages.", "ok","warning", 1);
systemmessagebox("Warning", MSG_Get("TTF_DBCS_ONLY"), "ok","warning", 1);
return;
}
autoboxdraw=!autoboxdraw;