diff --git a/HISTORY-ID.txt b/HISTORY-ID.txt index 4b0ed810..995bb1bf 100644 --- a/HISTORY-ID.txt +++ b/HISTORY-ID.txt @@ -309,3 +309,4 @@ - Added ES_AUTOHSCROLL style to some text boxes. - Fixed loading failure of Win2k3 ieframe.dll BITMAP 214. - Centering "Edit Dialog" window. + - Supported exporting RES file. diff --git a/HISTORY-ITA.txt b/HISTORY-ITA.txt index e5580eda..0dcb785f 100644 --- a/HISTORY-ITA.txt +++ b/HISTORY-ITA.txt @@ -309,3 +309,4 @@ - Aggiunto lo stile ES_AUTOHSCROLL ad alcune caselle di testo. - Fixed loading failure of Win2k3 ieframe.dll BITMAP 214. - Centering "Edit Dialog" window. + - Supported exporting RES file. diff --git a/HISTORY-JPN.txt b/HISTORY-JPN.txt index 16b4540d..d7d7f14e 100644 --- a/HISTORY-JPN.txt +++ b/HISTORY-JPN.txt @@ -653,3 +653,4 @@ - Added ES_AUTOHSCROLL style to some text boxes. - Fixed loading failure of Win2k3 ieframe.dll BITMAP 214. - Centering "Edit Dialog" window. + - Supported exporting RES file. diff --git a/HISTORY-KOR.txt b/HISTORY-KOR.txt index 838d65c6..dfdb7723 100644 --- a/HISTORY-KOR.txt +++ b/HISTORY-KOR.txt @@ -310,3 +310,4 @@ - Added ES_AUTOHSCROLL style to some text boxes. - Fixed loading failure of Win2k3 ieframe.dll BITMAP 214. - Centering "Edit Dialog" window. + - Supported exporting RES file. diff --git a/HISTORY-PTB.txt b/HISTORY-PTB.txt index 48763263..45840d1c 100644 --- a/HISTORY-PTB.txt +++ b/HISTORY-PTB.txt @@ -309,3 +309,4 @@ - Added ES_AUTOHSCROLL style to some text boxes. - Fixed loading failure of Win2k3 ieframe.dll BITMAP 214. - Centering "Edit Dialog" window. + - Supported exporting RES file. diff --git a/HISTORY.txt b/HISTORY.txt index be38016f..35daa600 100644 --- a/HISTORY.txt +++ b/HISTORY.txt @@ -309,3 +309,4 @@ - Added ES_AUTOHSCROLL style to some text boxes. - Fixed loading failure of Win2k3 ieframe.dll BITMAP 214. - Centering "Edit Dialog" window. + - Supported exporting RES file. diff --git a/src/RisohEditor.cpp b/src/RisohEditor.cpp index d01a9fef..02262a2f 100644 --- a/src/RisohEditor.cpp +++ b/src/RisohEditor.cpp @@ -2370,8 +2370,9 @@ class MMainWnd : public MWindowBase BOOL DoLoadFile(HWND hwnd, LPCWSTR pszFileName, DWORD nFilterIndex = 0, BOOL bForceDecompress = FALSE); BOOL DoLoadRC(HWND hwnd, LPCWSTR szRCFile, EntrySet& res); BOOL DoExtract(const EntryBase *entry, BOOL bExporting); - BOOL DoExport(LPCWSTR pszRCFile, LPWSTR pszResHFile = NULL); - BOOL DoExport(LPCWSTR pszRCFile, LPWSTR pszResHFile, const EntrySet& found); + BOOL DoExportRC(LPCWSTR pszRCFile, LPWSTR pszResHFile = NULL); + BOOL DoExportRC(LPCWSTR pszRCFile, LPWSTR pszResHFile, const EntrySet& found); + BOOL DoExportRes(LPCWSTR pszResFile); void DoIDStat(UINT anValues[5]); BOOL DoBackupFile(LPCWSTR pszFileName, UINT nCount = 0); BOOL DoBackupFolder(LPCWSTR pszFileName, UINT nCount = 0); @@ -3207,7 +3208,7 @@ void MMainWnd::OnExtractRC(HWND hwnd) if (dialog.DialogBoxDx(hwnd) != IDOK) return; - if (!DoExport(szFile, NULL, found)) + if (!DoExportRC(szFile, NULL, found)) { ErrorBoxDx(IDS_CANTEXPORT); } @@ -3466,7 +3467,7 @@ void MMainWnd::OnExport(HWND hwnd) // initialize OPENFILENAME structure WCHAR file[MAX_PATH] = TEXT(""); OPENFILENAMEW ofn = { OPENFILENAME_SIZE_VERSION_400W, hwnd }; - ofn.lpstrFilter = MakeFilterDx(LoadStringDx(IDS_RCFILTER)); + ofn.lpstrFilter = MakeFilterDx(LoadStringDx(IDS_EXPORTFILTER)); ofn.lpstrFile = file; ofn.nMaxFile = _countof(file); ofn.lpstrTitle = LoadStringDx(IDS_EXPORT); @@ -3477,15 +3478,25 @@ void MMainWnd::OnExport(HWND hwnd) // let the user choose the path if (GetSaveFileNameW(&ofn)) { - // show the "export options" dialog - MExportOptionsDlg dialog; - if (dialog.DialogBoxDx(hwnd) != IDOK) - return; - // do export! - if (!DoExport(file)) + if (ofn.nFilterIndex == 2) // .res { - ErrorBoxDx(IDS_CANTEXPORT); + if (!DoExportRes(file)) + { + ErrorBoxDx(IDS_CANTEXPORT); + } + } + else // .rc + { + // show the "export options" dialog + MExportOptionsDlg dialog; + if (dialog.DialogBoxDx(hwnd) != IDOK) + return; + + if (!DoExportRC(file)) + { + ErrorBoxDx(IDS_CANTEXPORT); + } } } } @@ -3822,7 +3833,7 @@ BOOL MMainWnd::OnSaveAs(HWND hwnd) // export WCHAR szResH[MAX_PATH] = L""; - if (DoExport(szFile, szResH)) // succeeded + if (DoExportRC(szFile, szResH)) // succeeded { // save the resource.h path StringCchCopyW(m_szResourceH, _countof(m_szResourceH), szResH); @@ -3981,7 +3992,7 @@ BOOL MMainWnd::OnSave(HWND hwnd) // export WCHAR szResH[MAX_PATH] = L""; - if (DoExport(m_szFile, szResH)) // succeeded + if (DoExportRC(m_szFile, szResH)) // succeeded { // save the resource.h path StringCchCopyW(m_szResourceH, _countof(m_szResourceH), szResH); @@ -9273,17 +9284,33 @@ inline BOOL MMainWnd::DoExtract(const EntryBase *entry, BOOL bExporting) } // do export the resource data to an RC file and related files -BOOL MMainWnd::DoExport(LPCWSTR pszRCFile, LPWSTR pszResHFile) +BOOL MMainWnd::DoExportRC(LPCWSTR pszRCFile, LPWSTR pszResHFile) { // search the language entries EntrySet found; g_res.search(found, ET_LANG); - return DoExport(pszRCFile, pszResHFile, found); + return DoExportRC(pszRCFile, pszResHFile, found); +} + +BOOL MMainWnd::DoExportRes(LPCWSTR pszResFile) +{ + // search the language entries + EntrySet found; + g_res.search(found, ET_LANG); + + if (found.empty()) + { + // unable to export the empty data + ErrorBoxDx(IDS_DATAISEMPTY); + return FALSE; + } + + return g_res.extract_res(pszResFile, g_res); } // do export the resource data to an RC file and related files -BOOL MMainWnd::DoExport(LPCWSTR pszRCFile, LPWSTR pszResHFile, const EntrySet& found) +BOOL MMainWnd::DoExportRC(LPCWSTR pszRCFile, LPWSTR pszResHFile, const EntrySet& found) { if (found.empty()) { @@ -9415,7 +9442,7 @@ BOOL MMainWnd::DoSaveFile(HWND hwnd, LPCWSTR pszFile) if (lstrcmpiW(pchDotExt, L".exe") == 0) return DoSaveExeAs(pszFile); if (lstrcmpiW(pchDotExt, L".rc") == 0) - return DoExport(pszFile, NULL); + return DoExportRC(pszFile, NULL); if (lstrcmpiW(pchDotExt, L".res") == 0) return DoSaveResAs(pszFile); if (*pchDotExt == 0) @@ -9423,7 +9450,7 @@ BOOL MMainWnd::DoSaveFile(HWND hwnd, LPCWSTR pszFile) WCHAR szPath[MAX_PATH]; StringCbCopyW(szPath, sizeof(szPath), pszFile); PathAddExtensionW(szPath, L".rc"); - return DoExport(szPath, NULL); + return DoExportRC(szPath, NULL); } return FALSE; } diff --git a/src/lang/de_DE.rc b/src/lang/de_DE.rc index dc15d7d5..2a6f8f75 100644 --- a/src/lang/de_DE.rc +++ b/src/lang/de_DE.rc @@ -1632,10 +1632,11 @@ STRINGTABLE IDS_CODEPAGE65001, "65001 (UTF-8)" IDS_EXTRACTTLB, "Extract TYPELIB data" IDS_CANTEXTRACTTLB, "Unable to extract the TYPELIB data." - IDS_TLBRESBINFILTER, "TYPELIB data (*.tlb)|*.tlb|Binary Resources (*.res)|*.res|Text Files (*.txt)|*.txt|MIDL Files (*.idl)|*.idl|All Files (*.*)|*.*|" + IDS_TLBRESBINFILTER, "TYPELIB data (*.tlb)|*.tlb|Binäre Ressourcen (*.res)|*.res|Textdateien (*.txt)|*.txt|MIDL Files (*.idl)|*.idl|Alle Dateien (*.*)|*.*|" IDS_USAGE, "Usage: RisohEditor [options | ""file""]\n\nOptions:\n--help Show this message.\n--version Show version info.\n--load ""your-file.rc"" Load the file (without GUI)\n--save ""your-file.res"" Save the file (without GUI)\n--log-file ""log-file.txt"" Specify the log file.\n--load-options OPTIONS Set load options.\n--save-options OPTIONS Set save options.\n\nLoad options: (no-load-res-h)\nSave options: (idc-static)(compress)(sep-lang)(no-res-folder)(lang-macro)(less-comments)(wrap-manifest)(begin-end)(utf-16)(backup)(ms-msgtbl)" IDS_NOSELECTION, "Es gibt keine Auswahl." IDS_TRANSLATORS, "[Translators]\r\nEnglish: Katayama Hirofumi MZ\r\nFinnish: Veikko Muurikainen\r\nIndonesian: Mas Ahmad Muhammad\r\nItalian: R.B.\r\nJapanese: Katayama Hirofumi MZ\r\nKorean: VenusGirl (비너스걸)\r\nPolish: Piotr Hetnarowicz\r\nPortuguese: JNylson\r\nRussian: Dmitry Yerokhin\r\nSimplified Chinese: 林鸿湘\r\n" + IDS_EXPORTFILTER, "RC-Dateien (*.rc)|*.rc|Binäre Ressourcen (*.res)|*.res|" } ////////////////////////////////////////////////////////////////////////////// diff --git a/src/lang/en_US.rc b/src/lang/en_US.rc index 071f615d..728ecf60 100644 --- a/src/lang/en_US.rc +++ b/src/lang/en_US.rc @@ -1637,6 +1637,7 @@ STRINGTABLE IDS_USAGE, "Usage: RisohEditor [options | ""file""]\n\nOptions:\n--help Show this message.\n--version Show version info.\n--load ""your-file.rc"" Load the file (without GUI)\n--save ""your-file.res"" Save the file (without GUI)\n--log-file ""log-file.txt"" Specify the log file.\n--load-options OPTIONS Set load options.\n--save-options OPTIONS Set save options.\n\nLoad options: (no-load-res-h)\nSave options: (idc-static)(compress)(sep-lang)(no-res-folder)(lang-macro)(less-comments)(wrap-manifest)(begin-end)(utf-16)(backup)(ms-msgtbl)" IDS_NOSELECTION, "There is no selection." IDS_TRANSLATORS, "[Translators]\r\nEnglish: Katayama Hirofumi MZ\r\nFinnish: Veikko Muurikainen\r\nIndonesian: Mas Ahmad Muhammad\r\nItalian: R.B.\r\nJapanese: Katayama Hirofumi MZ\r\nKorean: VenusGirl (비너스걸)\r\nPolish: Piotr Hetnarowicz\r\nPortuguese: JNylson\r\nRussian: Dmitry Yerokhin\r\nSimplified Chinese: 林鸿湘\r\n" + IDS_EXPORTFILTER, "RC Files (*.rc)|*.rc|Binary Resources (*.res)|*.res|" } ////////////////////////////////////////////////////////////////////////////// diff --git a/src/lang/fi_FI.rc b/src/lang/fi_FI.rc index cf142d57..d56ca262 100644 --- a/src/lang/fi_FI.rc +++ b/src/lang/fi_FI.rc @@ -1636,6 +1636,7 @@ STRINGTABLE IDS_USAGE, "Usage: RisohEditor [options | ""file""]\n\nOptions:\n--help Show this message.\n--version Show version info.\n--load ""your-file.rc"" Load the file (without GUI)\n--save ""your-file.res"" Save the file (without GUI)\n--log-file ""log-file.txt"" Specify the log file.\n--load-options OPTIONS Set load options.\n--save-options OPTIONS Set save options.\n\nLoad options: (no-load-res-h)\nSave options: (idc-static)(compress)(sep-lang)(no-res-folder)(lang-macro)(less-comments)(wrap-manifest)(begin-end)(utf-16)(backup)(ms-msgtbl)" IDS_NOSELECTION, "Ei ole valintaa." IDS_TRANSLATORS, "[Translators]\r\nEnglish: Katayama Hirofumi MZ\r\nFinnish: Veikko Muurikainen\r\nIndonesian: Mas Ahmad Muhammad\r\nItalian: R.B.\r\nJapanese: Katayama Hirofumi MZ\r\nKorean: VenusGirl (비너스걸)\r\nPolish: Piotr Hetnarowicz\r\nPortuguese: JNylson\r\nRussian: Dmitry Yerokhin\r\nSimplified Chinese: 林鸿湘\r\n" + IDS_EXPORTFILTER, "RC Files (*.rc)|*.rc|Binary Resources (*.res)|*.res|" } ////////////////////////////////////////////////////////////////////////////// diff --git a/src/lang/fr_FR.rc b/src/lang/fr_FR.rc index 882c5470..ed91d70a 100644 --- a/src/lang/fr_FR.rc +++ b/src/lang/fr_FR.rc @@ -1632,10 +1632,11 @@ STRINGTABLE IDS_CODEPAGE65001, "65001 (UTF-8)" IDS_EXTRACTTLB, "Extract TYPELIB data" IDS_CANTEXTRACTTLB, "Unable to extract the TYPELIB data." - IDS_TLBRESBINFILTER, "TYPELIB data (*.tlb)|*.tlb|Binary Resources (*.res)|*.res|Text Files (*.txt)|*.txt|MIDL Files (*.idl)|*.idl|All Files (*.*)|*.*|" + IDS_TLBRESBINFILTER, "TYPELIB data (*.tlb)|*.tlb|Ressources binaires (*.res)|*.res|Fichiers texte (*.txt)|*.txt|MIDL Files (*.idl)|*.idl|All Files (*.*)|*.*|" IDS_USAGE, "Usage: RisohEditor [options | ""file""]\n\nOptions:\n--help Show this message.\n--version Show version info.\n--load ""your-file.rc"" Load the file (without GUI)\n--save ""your-file.res"" Save the file (without GUI)\n--log-file ""log-file.txt"" Specify the log file.\n--load-options OPTIONS Set load options.\n--save-options OPTIONS Set save options.\n\nLoad options: (no-load-res-h)\nSave options: (idc-static)(compress)(sep-lang)(no-res-folder)(lang-macro)(less-comments)(wrap-manifest)(begin-end)(utf-16)(backup)(ms-msgtbl)" IDS_NOSELECTION, "Il n'y a pas de sélection." IDS_TRANSLATORS, "[Translators]\r\nEnglish: Katayama Hirofumi MZ\r\nFinnish: Veikko Muurikainen\r\nIndonesian: Mas Ahmad Muhammad\r\nItalian: R.B.\r\nJapanese: Katayama Hirofumi MZ\r\nKorean: VenusGirl (비너스걸)\r\nPolish: Piotr Hetnarowicz\r\nPortuguese: JNylson\r\nRussian: Dmitry Yerokhin\r\nSimplified Chinese: 林鸿湘\r\n" + IDS_EXPORTFILTER, "Fichiers RC (*.rc)|*.rc|Ressources binaires (*.res)|*.res|" } ////////////////////////////////////////////////////////////////////////////// diff --git a/src/lang/id_ID.rc b/src/lang/id_ID.rc index 012b6653..d6d42fde 100644 --- a/src/lang/id_ID.rc +++ b/src/lang/id_ID.rc @@ -1639,6 +1639,7 @@ STRINGTABLE IDS_USAGE, "Penggunaan: RisohEditor [pilihan | ""file""]\n\nOptions:\n--help Show this message.\n--version Show version info.\n--load ""your-file.rc"" Load the file (without GUI)\n--save ""your-file.res"" Save the file (without GUI)\n--log-file ""log-file.txt"" Specify the log file.\n--load-options OPTIONS Set load options.\n--save-options OPTIONS Set save options.\n\nLoad options: (no-load-res-h)\nSave options: (idc-static)(compress)(sep-lang)(no-res-folder)(lang-macro)(less-comments)(wrap-manifest)(begin-end)(utf-16)(backup)(ms-msgtbl)" IDS_NOSELECTION, "Tidak ada pilihan." IDS_TRANSLATORS, "[Translators]\r\nEnglish: Katayama Hirofumi MZ\r\nFinnish: Veikko Muurikainen\r\nIndonesian: Mas Ahmad Muhammad\r\nItalian: R.B.\r\nJapanese: Katayama Hirofumi MZ\r\nKorean: VenusGirl (비너스걸)\r\nPolish: Piotr Hetnarowicz\r\nPortuguese: JNylson\r\nRussian: Dmitry Yerokhin\r\nSimplified Chinese: 林鸿湘\r\n" + IDS_EXPORTFILTER, "Berkas RC (*.rc)|*.rc|Sumber Daya Binary (*.res)|*.res|" } ////////////////////////////////////////////////////////////////////////////// diff --git a/src/lang/it_IT.rc b/src/lang/it_IT.rc index 863e7dcc..788af929 100644 --- a/src/lang/it_IT.rc +++ b/src/lang/it_IT.rc @@ -1637,6 +1637,7 @@ STRINGTABLE IDS_USAGE, "Uso: RisohEditor [opzioni | ""file""]\n\nOpzioni:\n--help visualizza questo messaggio.\n--version visualizza informazioni sulla versione.\n--load ""your-file.rc"" Carica il file (senza GUI)\n--save ""your-file.res"" Salva il file (senza GUI)\n--log-file ""log-file.txt"" specifica il file registro.\n--load-options OPZIONI imposta le opzioni di caricamento.\n--save-options OPZIONI imposta le opzioni di salvataggio.\n\nOpzioni caricamento: (no-load-res-h)\nOpzioni salvataggio: (idc-static)(compress)(sep-lang)(no-res-folder)(lang-macro)(less-comments)(wrap-manifest)(begin-end)(utf-16)(backup)(ms-msgtbl)" IDS_NOSELECTION, "Non c'è selezione." IDS_TRANSLATORS, "[Translators]\r\nCinese semplificato: 林鸿湘\r\nCoreano: VenusGirl (비너스걸)\r\nGiapponese: Katayama Hirofumi MZ\r\nInglese: Katayama Hirofumi MZ\r\nFinlandese: Veikko Muurikainen\r\nIndonesiano: Mas Ahmad Muhammad\r\nItaliano: R.B.\r\nPolacco: Piotr Hetnarowicz\r\nPortoghese: JNylson\r\nRusso: Dmitry Yerokhin\r\n" + IDS_EXPORTFILTER, "File RC (*.rc)|*.rc|File risorse binarie (*.res)|*.res|" } ////////////////////////////////////////////////////////////////////////////// diff --git a/src/lang/ja_JP.rc b/src/lang/ja_JP.rc index f16401dd..b4714c1a 100644 --- a/src/lang/ja_JP.rc +++ b/src/lang/ja_JP.rc @@ -1404,7 +1404,7 @@ STRINGTABLE IDS_ENTERLANG, "リソースの言語を入力して下さい。" IDS_FILENOTFOUND, "ファイルが見つかりません。" IDS_CANNOTREPLACE, "リソースの置き換えができませんでした。" - IDS_EXERESFILTER, "実行可能ファイル (*.exe;*.dll;*.ocx;*.cpl;*.scr;*.mui)|*.exe;*.dll;*.ocx;*.cpl;*.scr;*.mui|RCファイル (*.rc)|*.rc|バイナリ リソース (*.res)|*.res|すべてのファイル (*.*)|*.*|" + IDS_EXERESFILTER, "実行可能ファイル (*.exe;*.dll;*.ocx;*.cpl;*.scr;*.mui)|*.exe;*.dll;*.ocx;*.cpl;*.scr;*.mui|RC ファイル (*.rc)|*.rc|バイナリ リソース (*.res)|*.res|すべてのファイル (*.*)|*.*|" IDS_SAVEAS, "名前を付けて保存" IDS_CANNOTADDICON, "アイコンの追加ができませんでした。" IDS_ADDICON, "アイコンの追加" @@ -1640,6 +1640,7 @@ STRINGTABLE IDS_USAGE, "Usage: RisohEditor [options | ""file""]\n\nOptions:\n--help Show this message.\n--version Show version info.\n--load ""your-file.rc"" Load the file (without GUI)\n--save ""your-file.res"" Save the file (without GUI)\n--log-file ""log-file.txt"" Specify the log file.\n--load-options OPTIONS Set load options.\n--save-options OPTIONS Set save options.\n\nLoad options: (no-load-res-h)\nSave options: (idc-static)(compress)(sep-lang)(no-res-folder)(lang-macro)(less-comments)(wrap-manifest)(begin-end)(utf-16)(backup)(ms-msgtbl)" IDS_NOSELECTION, "選択がありません。" IDS_TRANSLATORS, "[翻訳者]\r\n英語: 片山博文MZ\r\nフィンランド語: Veikko Muurikainen\r\nインドネシア語: Mas Ahmad Muhammad\r\nイタリア語: R.B.\r\n日本語: 片山博文MZ\r\n韓国語: VenusGirl (비너스걸)\r\nポーランド語: Piotr Hetnarowicz\r\nポルトガル語: JNylson\r\nロシア語: Dmitry Yerokhin\r\n中国語(簡体字): 林鸿湘\r\n" + IDS_EXPORTFILTER, "RC ファイル (*.rc)|*.rc|バイナリー リソース (*.res)|*.res|" } ////////////////////////////////////////////////////////////////////////////// diff --git a/src/lang/ko_KR.rc b/src/lang/ko_KR.rc index c1c114f4..1eb4f8dc 100644 --- a/src/lang/ko_KR.rc +++ b/src/lang/ko_KR.rc @@ -1403,7 +1403,7 @@ STRINGTABLE IDS_ENTERLANG, "리소스 언어를 입력하십시오." IDS_FILENOTFOUND, "파일을 찾을 수 없습니다." IDS_CANNOTREPLACE, "교체할 수 없습니다." - IDS_EXERESFILTER, "실행 파일 (*.exe;*.dll;*.ocx;*.cpl;*.scr;*.mui)|*.exe;*.dll;*.ocx;*.cpl;*.scr;*.mui|RC Files (*.rc)|*.rc|바이러리 리소스 (*.res)|*.res|모든 파일 (*.*)|*.*|" + IDS_EXERESFILTER, "실행 파일 (*.exe;*.dll;*.ocx;*.cpl;*.scr;*.mui)|*.exe;*.dll;*.ocx;*.cpl;*.scr;*.mui|리소스 파일 (*.rc)|*.rc|바이러리 리소스 (*.res)|*.res|모든 파일 (*.*)|*.*|" IDS_SAVEAS, "다른 이름으로 저장" IDS_CANNOTADDICON, "아이콘을 추가할 수 없습니다." IDS_ADDICON, "아이콘 추가" @@ -1639,6 +1639,7 @@ STRINGTABLE IDS_USAGE, "사용법: RisohEditor [options | ""파일""]\n\nOptions:\n--help 이 메시지를 표시합니다.\n--version 버전 정보를 표시합니다.\n--load ""your-file.rc"" 파일을 로드합니다 (GUI 없이)\n--save ""your-file.res"" 파일을 저장합니다 (GUI 없이)\n--log-file ""log-file.txt"" 로그 파일을 지정합니다.\n--load-options OPTIONS 로드 옵션을 설정합니다.\n--save-options OPTIONS 저장 옵션을 설정합니다.\n\nLoad options: (no-load-res-h)\nSave options: (idc-static)(compress)(sep-lang)(no-res-folder)(lang-macro)(less-comments)(wrap-manifest)(begin-end)(utf-16)(backup)(ms-msgtbl)" IDS_NOSELECTION, "선택 항목이 없습니다." IDS_TRANSLATORS, "[번역]\r\n한국어: VenusGirl-비너스걸❤\r\nEnglish: Katayama Hirofumi MZ\r\nFinnish: Veikko Muurikainen\r\nIndonesian: Mas Ahmad Muhammad\r\nItalian: R.B.\r\nJapanese: Katayama Hirofumi MZ\\r\nPolish: Piotr Hetnarowicz\r\nPortuguese: JNylson\r\nRussian: Dmitry Yerokhin\r\nSimplified Chinese: 林鸿湘\r\n" + IDS_EXPORTFILTER, "리소스 파일 (*.rc)|*.rc|바이너리 리소스 (*.res)|*.res|" } ////////////////////////////////////////////////////////////////////////////// diff --git a/src/lang/pl_PL.rc b/src/lang/pl_PL.rc index f0dccf6e..3267b00a 100644 --- a/src/lang/pl_PL.rc +++ b/src/lang/pl_PL.rc @@ -1400,7 +1400,7 @@ STRINGTABLE IDS_ENTERLANG, "Wprowadź język zasobu." IDS_FILENOTFOUND, "Nie można odnaleźć pliku." IDS_CANNOTREPLACE, "Nie można zamienić." - IDS_EXERESFILTER, "Wykonywalne (*.exe;*.dll;*.ocx;*.cpl;*.scr;*.mui)|*.exe;*.dll;*.ocx;*.cpl;*.scr;*.mui|RC Files (*.rc)|*.rc|Binary Resources (*.res)|*.res|Wszystkie pliki (*.*)|*.*|" + IDS_EXERESFILTER, "Wykonywalne (*.exe;*.dll;*.ocx;*.cpl;*.scr;*.mui)|*.exe;*.dll;*.ocx;*.cpl;*.scr;*.mui|Pliki zasobów (*.rc)|*.rc|Binary Resources (*.res)|*.res|Wszystkie pliki (*.*)|*.*|" IDS_SAVEAS, "Zapisz jako" IDS_CANNOTADDICON, "Nie można dodać ikony." IDS_ADDICON, "Dodaj ikonę" @@ -1636,6 +1636,7 @@ STRINGTABLE IDS_USAGE, "Usage: RisohEditor [options | ""file""]\n\nOptions:\n--help Show this message.\n--version Show version info.\n--load ""your-file.rc"" Load the file (without GUI)\n--save ""your-file.res"" Save the file (without GUI)\n--log-file ""log-file.txt"" Specify the log file.\n--load-options OPTIONS Set load options.\n--save-options OPTIONS Set save options.\n\nLoad options: (no-load-res-h)\nSave options: (idc-static)(compress)(sep-lang)(no-res-folder)(lang-macro)(less-comments)(wrap-manifest)(begin-end)(utf-16)(backup)(ms-msgtbl)" IDS_NOSELECTION, "Nie ma wyboru." IDS_TRANSLATORS, "[Translators]\r\nEnglish: Katayama Hirofumi MZ\r\nFinnish: Veikko Muurikainen\r\nIndonesian: Mas Ahmad Muhammad\r\nItalian: R.B.\r\nJapanese: Katayama Hirofumi MZ\r\nKorean: VenusGirl (비너스걸)\r\nPolish: Piotr Hetnarowicz\r\nPortuguese: JNylson\r\nRussian: Dmitry Yerokhin\r\nSimplified Chinese: 林鸿湘\r\n" + IDS_EXPORTFILTER, "Pliki RC (*.rc)|*.rc|Zasoby binarne (*.res)|*.res|" } ////////////////////////////////////////////////////////////////////////////// diff --git a/src/lang/pt_BR.rc b/src/lang/pt_BR.rc index 03769b3a..ecd53965 100644 --- a/src/lang/pt_BR.rc +++ b/src/lang/pt_BR.rc @@ -1639,6 +1639,7 @@ STRINGTABLE IDS_USAGE, "Use: RisohEditor [opções | ""arquivo""]\n\nOpções:\n--help Mostra esta mensagem.\n--version Mostra informações da versão.\n--load ""seu-arquivo.rc"" Carrega o arquivo (sem GUI)\n--save ""seu-arquivo.res"" Salva o arquivo (sem GUI)\n--log-file ""arquivo-log.txt"" Especifica o arquivo de log.\n--load-options OPÇÕES Define opções de carregamento.\n--save-options OPÇÕES Define opções de salvamento.\n\nOpções de carregamento: (no-load-res-h)\nOpções de salvamento: (idc-static)(compress)(sep-lang)(no-res-folder)(lang-macro)(less-comments)(wrap-manifest)(begin-end)(utf-16)(backup)(ms-msgtbl)" IDS_NOSELECTION, "Não há seleção." IDS_TRANSLATORS, "[Translators]\r\nEnglish: Katayama Hirofumi MZ\r\nFinnish: Veikko Muurikainen\r\nIndonesian: Mas Ahmad Muhammad\r\nItalian: R.B.\r\nJapanese: Katayama Hirofumi MZ\r\nKorean: VenusGirl (비너스걸)\r\nPolish: Piotr Hetnarowicz\r\nPortuguese: JNylson\r\nRussian: Dmitry Yerokhin\r\nSimplified Chinese: 林鸿湘\r\n" + IDS_EXPORTFILTER, "Arquivos RC (*.rc)|*.rc|Recursos Binários (*.res)|*.res|" } ////////////////////////////////////////////////////////////////////////////// diff --git a/src/lang/ru_RU.rc b/src/lang/ru_RU.rc index c9d204aa..96608aec 100644 --- a/src/lang/ru_RU.rc +++ b/src/lang/ru_RU.rc @@ -1636,6 +1636,7 @@ STRINGTABLE IDS_USAGE, "Usage: RisohEditor [options | ""file""]\n\nOptions:\n--help Show this message.\n--version Show version info.\n--load ""your-file.rc"" Load the file (without GUI)\n--save ""your-file.res"" Save the file (without GUI)\n--log-file ""log-file.txt"" Specify the log file.\n--load-options OPTIONS Set load options.\n--save-options OPTIONS Set save options.\n\nLoad options: (no-load-res-h)\nSave options: (idc-static)(compress)(sep-lang)(no-res-folder)(lang-macro)(less-comments)(wrap-manifest)(begin-end)(utf-16)(backup)(ms-msgtbl)" IDS_NOSELECTION, "Нет выбора." IDS_TRANSLATORS, "[Translators]\r\nEnglish: Katayama Hirofumi MZ\r\nFinnish: Veikko Muurikainen\r\nIndonesian: Mas Ahmad Muhammad\r\nItalian: R.B.\r\nJapanese: Katayama Hirofumi MZ\r\nKorean: VenusGirl (비너스걸)\r\nPolish: Piotr Hetnarowicz\r\nPortuguese: JNylson\r\nRussian: Dmitry Yerokhin\r\nSimplified Chinese: 林鸿湘\r\n" + IDS_EXPORTFILTER, "RC-файлы (*.rc)|*.rc|Двоичные ресурсы (*.res)|*.res|" } ////////////////////////////////////////////////////////////////////////////// diff --git a/src/lang/zh_CN.rc b/src/lang/zh_CN.rc index b9491d86..0ed7b501 100644 --- a/src/lang/zh_CN.rc +++ b/src/lang/zh_CN.rc @@ -1399,7 +1399,7 @@ STRINGTABLE IDS_ENTERLANG, "请输入资源语言类型。" IDS_FILENOTFOUND, "未找到文件。" IDS_CANNOTREPLACE, "替换失败。" - IDS_EXERESFILTER, "资源配置文件 (*.exe;*.dll;*.ocx;*.cpl;*.scr;*.mui)|*.exe;*.dll;*.ocx;*.cpl;*.scr;*.mui|RC文件 (*.rc)|*.rc|二进制资源文件 (*.res)|*.res|全部文件 (*.*)|*.*|" + IDS_EXERESFILTER, "资源配置文件 (*.exe;*.dll;*.ocx;*.cpl;*.scr;*.mui)|*.exe;*.dll;*.ocx;*.cpl;*.scr;*.mui|RC 文件 (*.rc)|*.rc|二进制资源文件 (*.res)|*.res|全部文件 (*.*)|*.*|" IDS_SAVEAS, "另存为" IDS_CANNOTADDICON, "加载图标失败。" IDS_ADDICON, "加图标" @@ -1635,6 +1635,7 @@ STRINGTABLE IDS_USAGE, "Usage: RisohEditor [options | ""file""]\n\nOptions:\n--help Show this message.\n--version Show version info.\n--load ""your-file.rc"" Load the file (without GUI)\n--save ""your-file.res"" Save the file (without GUI)\n--log-file ""log-file.txt"" Specify the log file.\n--load-options OPTIONS Set load options.\n--save-options OPTIONS Set save options.\n\nLoad options: (no-load-res-h)\nSave options: (idc-static)(compress)(sep-lang)(no-res-folder)(lang-macro)(less-comments)(wrap-manifest)(begin-end)(utf-16)(backup)(ms-msgtbl)" IDS_NOSELECTION, "没有选择。" IDS_TRANSLATORS, "[Translators]\r\nEnglish: Katayama Hirofumi MZ\r\nFinnish: Veikko Muurikainen\r\nIndonesian: Mas Ahmad Muhammad\r\nItalian: R.B.\r\nJapanese: Katayama Hirofumi MZ\r\nKorean: VenusGirl (비너스걸)\r\nPolish: Piotr Hetnarowicz\r\nPortuguese: JNylson\r\nRussian: Dmitry Yerokhin\r\nSimplified Chinese: 林鸿湘\r\n" + IDS_EXPORTFILTER, "RC 文件 (*.rc)|*.rc|二进制资源文件 (*.res)|*.res|" } ////////////////////////////////////////////////////////////////////////////// diff --git a/src/lang/zh_TW.rc b/src/lang/zh_TW.rc index 02313eff..c03950ad 100644 --- a/src/lang/zh_TW.rc +++ b/src/lang/zh_TW.rc @@ -1398,7 +1398,7 @@ STRINGTABLE IDS_ENTERLANG, "請輸入資源語言類型。" IDS_FILENOTFOUND, "未找到文件。" IDS_CANNOTREPLACE, "替換失敗。" - IDS_EXERESFILTER, "資源配置文件 (*.exe;*.dll;*.ocx;*.cpl;*.scr;*.mui)|*.exe;*.dll;*.ocx;*.cpl;*.scr;*.mui|RC文件 (*.rc)|*.rc|二進位制資源文件 (*.res)|*.res|全部文件 (*.*)|*.*|" + IDS_EXERESFILTER, "資源配置文件 (*.exe;*.dll;*.ocx;*.cpl;*.scr;*.mui)|*.exe;*.dll;*.ocx;*.cpl;*.scr;*.mui|RC 文件 (*.rc)|*.rc|二進位制資源文件 (*.res)|*.res|全部文件 (*.*)|*.*|" IDS_SAVEAS, "另存為" IDS_CANNOTADDICON, "載入圖示失敗。" IDS_ADDICON, "加圖示" @@ -1634,6 +1634,7 @@ STRINGTABLE IDS_USAGE, "Usage: RisohEditor [options | ""file""]\n\nOptions:\n--help Show this message.\n--version Show version info.\n--load ""your-file.rc"" Load the file (without GUI)\n--save ""your-file.res"" Save the file (without GUI)\n--log-file ""log-file.txt"" Specify the log file.\n--load-options OPTIONS Set load options.\n--save-options OPTIONS Set save options.\n\nLoad options: (no-load-res-h)\nSave options: (idc-static)(compress)(sep-lang)(no-res-folder)(lang-macro)(less-comments)(wrap-manifest)(begin-end)(utf-16)(backup)(ms-msgtbl)" IDS_NOSELECTION, "沒有選擇。" IDS_TRANSLATORS, "[Translators]\r\nEnglish: Katayama Hirofumi MZ\r\nFinnish: Veikko Muurikainen\r\nIndonesian: Mas Ahmad Muhammad\r\nItalian: R.B.\r\nJapanese: Katayama Hirofumi MZ\r\nKorean: VenusGirl (비너스걸)\r\nPolish: Piotr Hetnarowicz\r\nPortuguese: JNylson\r\nRussian: Dmitry Yerokhin\r\nSimplified Chinese: 林鴻湘\r\n" + IDS_EXPORTFILTER, "RC 文件 (*.rc)|*.rc|二進位制資源文件 (*.res)|*.res|" } ////////////////////////////////////////////////////////////////////////////// diff --git a/src/resource.h b/src/resource.h index 5f15f035..f4929223 100644 --- a/src/resource.h +++ b/src/resource.h @@ -348,6 +348,7 @@ #define IDS_USAGE 347 #define IDS_NOSELECTION 348 #define IDS_TRANSLATORS 349 +#define IDS_EXPORTFILTER 350 #define ID_NEW 100 #define ID_OPEN 101