Skip to content

Commit

Permalink
update HISTORY* and improve Spanish helps
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Feb 3, 2025
1 parent 9009f9c commit 43d5fb7
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 15 deletions.
3 changes: 2 additions & 1 deletion HISTORY-ES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@
- v.5.8.5 (21/08/2024)
- Se mejoró la usabilidad de la consola EGA.
- Función de entrada EGA abolida.
- v.5.8.6 (2025-XX-YY)
- v.5.8.6 (2025-02-04)
- Added Spanish translation.
- Fixed RES_save function for saving *.dll.
- Don't use SUBLANG_CUSTOM_DEFAULT, SUBLANG_CUSTOM_UNSPECIFIED, and SUBLANG_UI_CUSTOM_DEFAULT for backward compatibility.
3 changes: 2 additions & 1 deletion HISTORY-ID.txt
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@
- v.5.8.5 (2024-08-21)
- Improved EGA console usability.
- Abolished EGA input function.
- v.5.8.6 (2025-XX-YY)
- v.5.8.6 (2025-02-04)
- Added Spanish translation.
- Fixed RES_save function for saving *.dll.
- Don't use SUBLANG_CUSTOM_DEFAULT, SUBLANG_CUSTOM_UNSPECIFIED, and SUBLANG_UI_CUSTOM_DEFAULT for backward compatibility.
3 changes: 2 additions & 1 deletion HISTORY-ITA.txt
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@
- v.5.8.5 (21.08.2024)
- Migliorata usabilità console EGA.
- Abolita funzione input EGA.
- v.5.8.6 (2025-XX-YY)
- v.5.8.6 (2025-02-04)
- Added Spanish translation.
- Fixed RES_save function for saving *.dll.
- Don't use SUBLANG_CUSTOM_DEFAULT, SUBLANG_CUSTOM_UNSPECIFIED, and SUBLANG_UI_CUSTOM_DEFAULT for backward compatibility.
7 changes: 4 additions & 3 deletions HISTORY-JPN.txt
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,7 @@
- v.5.8.5 (2024-08-21)
- EGAコンソールの使い勝手を向上。
- EGA input関数を廃止した。
- v.5.8.6 (2025-XX-YY)
- Added Spanish translation.
- Fixed RES_save function for saving *.dll.
- v.5.8.6 (2025-02-04)
- スペイン語翻訳を追加。
- *.dllの保存用にRES_save 関数を修正。
- 下位互換性のために、SUBLANG_CUSTOM_DEFAULT、SUBLANG_CUSTOM_UNSPECIFIED、SUBLANG_UI_CUSTOM_DEFAULTを使わない。
3 changes: 2 additions & 1 deletion HISTORY-KOR.txt
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@
- v.5.8.5 (2024-08-21)
- EGA 콘솔 사용성이 향상되었습니다.
- EGA 입력 기능이 폐지되었습니다.
- v.5.8.6 (2025-XX-YY)
- v.5.8.6 (2025-02-04)
- Added Spanish translation.
- Fixed RES_save function for saving *.dll.
- Don't use SUBLANG_CUSTOM_DEFAULT, SUBLANG_CUSTOM_UNSPECIFIED, and SUBLANG_UI_CUSTOM_DEFAULT for backward compatibility.
3 changes: 2 additions & 1 deletion HISTORY-PTB.txt
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@
- v.5.8.5 (2024-08-21)
- Improved EGA console usability.
- Abolished EGA input function.
- v.5.8.6 (2025-XX-YY)
- v.5.8.6 (2025-02-04)
- Added Spanish translation.
- Fixed RES_save function for saving *.dll.
- Don't use SUBLANG_CUSTOM_DEFAULT, SUBLANG_CUSTOM_UNSPECIFIED, and SUBLANG_UI_CUSTOM_DEFAULT for backward compatibility.
3 changes: 2 additions & 1 deletion HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@
- v.5.8.5 (2024-08-21)
- Improved EGA console usability.
- Abolished EGA input function.
- v.5.8.6 (2025-XX-YY)
- v.5.8.6 (2025-02-04)
- Added Spanish translation.
- Fixed RES_save function for saving *.dll.
- Don't use SUBLANG_CUSTOM_DEFAULT, SUBLANG_CUSTOM_UNSPECIFIED, and SUBLANG_UI_CUSTOM_DEFAULT for backward compatibility.
File renamed without changes.
14 changes: 9 additions & 5 deletions src/RisohEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2929,15 +2929,13 @@ std::wstring MMainWnd::GetRisohEditorVersion() const
DWORD dwSize = GetFileVersionInfoSizeW(szFile, &dwHandle);
if (!dwSize)
{
assert(0);
return L"";
}

std::vector<BYTE> data;
data.resize(dwSize);
if (!GetFileVersionInfoW(szFile, dwHandle, dwSize, &data[0]))
{
assert(0);
return L"";
}

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

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

Expand Down Expand Up @@ -11767,6 +11763,9 @@ void MMainWnd::OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify)
case ID_OPENREADMEJP:
OnOpenLocalFile(hwnd, L"README-JPN.txt");
break;
case ID_OPENREADMEES:
OnOpenLocalFile(hwnd, L"README-ES.txt");
break;
case ID_LOADWCLIB:
OnLoadWCLib(hwnd);
break;
Expand Down Expand Up @@ -11838,6 +11837,9 @@ void MMainWnd::OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify)
case ID_OPENHISTORYKOR:
OnOpenLocalFile(hwnd, L"HISTORY-KOR.txt");
break;
case ID_OPENHISTORYES:
OnOpenLocalFile(hwnd, L"HISTORY-ES.txt");
break;
case ID_OPENHYOJUNKA:
OnOpenLocalFile(hwnd, L"HYOJUNKA.txt");
break;
Expand Down Expand Up @@ -14378,7 +14380,9 @@ BOOL MMainWnd::SaveSettings(HWND hwnd)
// always use old style
keyRisoh.SetDword(TEXT("bOldStyle"), TRUE);

keyRisoh.SetSz(TEXT("strPrevVersion"), GetRisohEditorVersion().c_str());
auto version = GetRisohEditorVersion();
if (version.size())
keyRisoh.SetSz(TEXT("strPrevVersion"), version.c_str());

keyRisoh.SetDword(TEXT("bSepFilesByLang"), g_settings.bSepFilesByLang);
keyRisoh.SetDword(TEXT("bStoreToResFolder"), TRUE);
Expand Down
2 changes: 2 additions & 0 deletions src/lang/es_ES.rc
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ IDR_MAINMENU MENU
POPUP "&Ayuda"
{
MENUITEM "Abrir &README.txt (English)", ID_OPENREADME
MENUITEM "Abrir &README-ES.txt (Española)", ID_OPENREADMEES
MENUITEM "Abrir HISTORY.txt", ID_OPENHISTORY
MENUITEM "Abrir HISTORY-ES.txt (Española)", ID_OPENHISTORYES
MENUITEM "Abrir &LICENSE.txt", ID_OPENLICENSE
MENUITEM SEPARATOR
MENUITEM "Una &guía de RisohEditor", ID_GUIDE
Expand Down
4 changes: 3 additions & 1 deletion src/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,8 @@
#define ID_OPENREADMEPTB 277
#define ID_OPENHISTORYPTB 278
#define ID_EGAFINISH 279
#define ID_OPENREADMEES 280
#define ID_OPENHISTORYES 281

#define MSGID_HELLO 101
#define MSGID_SAMPLE 102
Expand All @@ -536,7 +538,7 @@
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC 1
#define _APS_NEXT_RESOURCE_VALUE 110
#define _APS_NEXT_COMMAND_VALUE 280
#define _APS_NEXT_COMMAND_VALUE 282
#define _APS_NEXT_CONTROL_VALUE 1002
#define _APS_NEXT_SYMED_VALUE 300
#endif
Expand Down

0 comments on commit 43d5fb7

Please sign in to comment.