#include "stdafx.h"
#include "OpenDoc.h"
+#include "OpenView.h"
#include "OptionsDef.h"
#include "OptionsMgr.h"
-#include "LanguageSelect.h"
-#include "Merge.h"
+#include "MergeApp.h"
// COpenDoc
{
SetTitle(_("Select Files or Folders").c_str());
POSITION pos = GetFirstViewPosition();
- CView *pView = GetNextView(pos);
- theApp.m_pLangDlg->RetranslateDialog(pView->m_hWnd, MAKEINTRESOURCE(IDD_OPEN));
+ COpenView *pView = static_cast<COpenView *>(GetNextView(pos));
+ pView->UpdateResources();
}
BEGIN_MESSAGE_MAP(COpenDoc, CDocument)
#include "FileFilterHelper.h"
#include "Plugins.h"
#include "BCMenu.h"
+#include "LanguageSelect.h"
#ifdef _DEBUG
#define new DEBUG_NEW
return 0;
}
+/**
+ * @brief Update any resources necessary after a GUI language change
+ */
+void COpenView::UpdateResources()
+{
+ theApp.m_pLangDlg->RetranslateDialog(m_hWnd, MAKEINTRESOURCE(IDD_OPEN));
+ if (m_strUnpacker != m_infoHandler.pluginName)
+ m_strUnpacker = theApp.LoadString(IDS_OPEN_UNPACKERDISABLED);
+}
+
/**
* @brief Enable/disable components based on validity of paths.
*/
// Operations
public:
void UpdateButtonStates();
+ void UpdateResources();
// Implementation data
private: