Skip to content

Commit 43d5fb7

Browse files
committed
update HISTORY* and improve Spanish helps
1 parent 9009f9c commit 43d5fb7

11 files changed

+30
-15
lines changed

HISTORY-ES.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@
321321
- v.5.8.5 (21/08/2024)
322322
- Se mejoró la usabilidad de la consola EGA.
323323
- Función de entrada EGA abolida.
324-
- v.5.8.6 (2025-XX-YY)
324+
- v.5.8.6 (2025-02-04)
325325
- Added Spanish translation.
326326
- Fixed RES_save function for saving *.dll.
327+
- Don't use SUBLANG_CUSTOM_DEFAULT, SUBLANG_CUSTOM_UNSPECIFIED, and SUBLANG_UI_CUSTOM_DEFAULT for backward compatibility.

HISTORY-ID.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@
321321
- v.5.8.5 (2024-08-21)
322322
- Improved EGA console usability.
323323
- Abolished EGA input function.
324-
- v.5.8.6 (2025-XX-YY)
324+
- v.5.8.6 (2025-02-04)
325325
- Added Spanish translation.
326326
- Fixed RES_save function for saving *.dll.
327+
- Don't use SUBLANG_CUSTOM_DEFAULT, SUBLANG_CUSTOM_UNSPECIFIED, and SUBLANG_UI_CUSTOM_DEFAULT for backward compatibility.

HISTORY-ITA.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@
321321
- v.5.8.5 (21.08.2024)
322322
- Migliorata usabilità console EGA.
323323
- Abolita funzione input EGA.
324-
- v.5.8.6 (2025-XX-YY)
324+
- v.5.8.6 (2025-02-04)
325325
- Added Spanish translation.
326326
- Fixed RES_save function for saving *.dll.
327+
- Don't use SUBLANG_CUSTOM_DEFAULT, SUBLANG_CUSTOM_UNSPECIFIED, and SUBLANG_UI_CUSTOM_DEFAULT for backward compatibility.

HISTORY-JPN.txt

+4-3
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,7 @@
665665
- v.5.8.5 (2024-08-21)
666666
- EGAコンソールの使い勝手を向上。
667667
- EGA input関数を廃止した。
668-
- v.5.8.6 (2025-XX-YY)
669-
- Added Spanish translation.
670-
- Fixed RES_save function for saving *.dll.
668+
- v.5.8.6 (2025-02-04)
669+
- スペイン語翻訳を追加。
670+
- *.dllの保存用にRES_save 関数を修正。
671+
- 下位互換性のために、SUBLANG_CUSTOM_DEFAULT、SUBLANG_CUSTOM_UNSPECIFIED、SUBLANG_UI_CUSTOM_DEFAULTを使わない。

HISTORY-KOR.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@
322322
- v.5.8.5 (2024-08-21)
323323
- EGA 콘솔 사용성이 향상되었습니다.
324324
- EGA 입력 기능이 폐지되었습니다.
325-
- v.5.8.6 (2025-XX-YY)
325+
- v.5.8.6 (2025-02-04)
326326
- Added Spanish translation.
327327
- Fixed RES_save function for saving *.dll.
328+
- Don't use SUBLANG_CUSTOM_DEFAULT, SUBLANG_CUSTOM_UNSPECIFIED, and SUBLANG_UI_CUSTOM_DEFAULT for backward compatibility.

HISTORY-PTB.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@
321321
- v.5.8.5 (2024-08-21)
322322
- Improved EGA console usability.
323323
- Abolished EGA input function.
324-
- v.5.8.6 (2025-XX-YY)
324+
- v.5.8.6 (2025-02-04)
325325
- Added Spanish translation.
326326
- Fixed RES_save function for saving *.dll.
327+
- Don't use SUBLANG_CUSTOM_DEFAULT, SUBLANG_CUSTOM_UNSPECIFIED, and SUBLANG_UI_CUSTOM_DEFAULT for backward compatibility.

HISTORY.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@
321321
- v.5.8.5 (2024-08-21)
322322
- Improved EGA console usability.
323323
- Abolished EGA input function.
324-
- v.5.8.6 (2025-XX-YY)
324+
- v.5.8.6 (2025-02-04)
325325
- Added Spanish translation.
326326
- Fixed RES_save function for saving *.dll.
327+
- Don't use SUBLANG_CUSTOM_DEFAULT, SUBLANG_CUSTOM_UNSPECIFIED, and SUBLANG_UI_CUSTOM_DEFAULT for backward compatibility.

src/README-ES.txt README-ES.txt

File renamed without changes.

src/RisohEditor.cpp

+9-5
Original file line numberDiff line numberDiff line change
@@ -2929,15 +2929,13 @@ std::wstring MMainWnd::GetRisohEditorVersion() const
29292929
DWORD dwSize = GetFileVersionInfoSizeW(szFile, &dwHandle);
29302930
if (!dwSize)
29312931
{
2932-
assert(0);
29332932
return L"";
29342933
}
29352934

29362935
std::vector<BYTE> data;
29372936
data.resize(dwSize);
29382937
if (!GetFileVersionInfoW(szFile, dwHandle, dwSize, &data[0]))
29392938
{
2940-
assert(0);
29412939
return L"";
29422940
}
29432941

@@ -2947,7 +2945,6 @@ std::wstring MMainWnd::GetRisohEditorVersion() const
29472945
if (!VerQueryValueW(&data[0], L"\\VarFileInfo\\Translation",
29482946
&pValue, &uLen))
29492947
{
2950-
assert(0);
29512948
return L"";
29522949
}
29532950

@@ -2960,7 +2957,6 @@ std::wstring MMainWnd::GetRisohEditorVersion() const
29602957
key += L"\\ProductVersion";
29612958
if (!VerQueryValueW(&data[0], key.c_str(), &pValue, &uLen))
29622959
{
2963-
assert(0);
29642960
return L"";
29652961
}
29662962

@@ -11767,6 +11763,9 @@ void MMainWnd::OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify)
1176711763
case ID_OPENREADMEJP:
1176811764
OnOpenLocalFile(hwnd, L"README-JPN.txt");
1176911765
break;
11766+
case ID_OPENREADMEES:
11767+
OnOpenLocalFile(hwnd, L"README-ES.txt");
11768+
break;
1177011769
case ID_LOADWCLIB:
1177111770
OnLoadWCLib(hwnd);
1177211771
break;
@@ -11838,6 +11837,9 @@ void MMainWnd::OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify)
1183811837
case ID_OPENHISTORYKOR:
1183911838
OnOpenLocalFile(hwnd, L"HISTORY-KOR.txt");
1184011839
break;
11840+
case ID_OPENHISTORYES:
11841+
OnOpenLocalFile(hwnd, L"HISTORY-ES.txt");
11842+
break;
1184111843
case ID_OPENHYOJUNKA:
1184211844
OnOpenLocalFile(hwnd, L"HYOJUNKA.txt");
1184311845
break;
@@ -14378,7 +14380,9 @@ BOOL MMainWnd::SaveSettings(HWND hwnd)
1437814380
// always use old style
1437914381
keyRisoh.SetDword(TEXT("bOldStyle"), TRUE);
1438014382

14381-
keyRisoh.SetSz(TEXT("strPrevVersion"), GetRisohEditorVersion().c_str());
14383+
auto version = GetRisohEditorVersion();
14384+
if (version.size())
14385+
keyRisoh.SetSz(TEXT("strPrevVersion"), version.c_str());
1438214386

1438314387
keyRisoh.SetDword(TEXT("bSepFilesByLang"), g_settings.bSepFilesByLang);
1438414388
keyRisoh.SetDword(TEXT("bStoreToResFolder"), TRUE);

src/lang/es_ES.rc

+2
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ IDR_MAINMENU MENU
134134
POPUP "&Ayuda"
135135
{
136136
MENUITEM "Abrir &README.txt (English)", ID_OPENREADME
137+
MENUITEM "Abrir &README-ES.txt (Española)", ID_OPENREADMEES
137138
MENUITEM "Abrir HISTORY.txt", ID_OPENHISTORY
139+
MENUITEM "Abrir HISTORY-ES.txt (Española)", ID_OPENHISTORYES
138140
MENUITEM "Abrir &LICENSE.txt", ID_OPENLICENSE
139141
MENUITEM SEPARATOR
140142
MENUITEM "Una &guía de RisohEditor", ID_GUIDE

src/resource.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,8 @@
526526
#define ID_OPENREADMEPTB 277
527527
#define ID_OPENHISTORYPTB 278
528528
#define ID_EGAFINISH 279
529+
#define ID_OPENREADMEES 280
530+
#define ID_OPENHISTORYES 281
529531

530532
#define MSGID_HELLO 101
531533
#define MSGID_SAMPLE 102
@@ -536,7 +538,7 @@
536538
#ifndef APSTUDIO_READONLY_SYMBOLS
537539
#define _APS_NO_MFC 1
538540
#define _APS_NEXT_RESOURCE_VALUE 110
539-
#define _APS_NEXT_COMMAND_VALUE 280
541+
#define _APS_NEXT_COMMAND_VALUE 282
540542
#define _APS_NEXT_CONTROL_VALUE 1002
541543
#define _APS_NEXT_SYMED_VALUE 300
542544
#endif

0 commit comments

Comments
 (0)