diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-19 14:52:53 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-19 14:52:53 +0000 |
commit | 54dec7a74c313ee61437386bd667f9a7653351fd (patch) | |
tree | 81aaf9bf469838735392a81ed3edfc3b3bd7481f /plugins/Svc_vi/hooked_events.cpp | |
parent | 03dd87df0b288fd0f0f512fb0bbff29e8c00f366 (diff) |
fixes for the options page translation
git-svn-id: http://svn.miranda-ng.org/main/trunk@479 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Svc_vi/hooked_events.cpp')
-rw-r--r-- | plugins/Svc_vi/hooked_events.cpp | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/plugins/Svc_vi/hooked_events.cpp b/plugins/Svc_vi/hooked_events.cpp index 7645bf83bc..2a391a7e39 100644 --- a/plugins/Svc_vi/hooked_events.cpp +++ b/plugins/Svc_vi/hooked_events.cpp @@ -24,9 +24,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. HANDLE hModulesLoaded;
HANDLE hOptionsInitialize;
-const int nExpertOnlyControls = 10;
-UINT uiExpertOnlyControls[nExpertOnlyControls] = {0};
-
#define HOST "http://eblis.tla.ro/projects"
#define VERSIONINFO_VERSION_URL HOST "/miranda/VersionInfo/updater/VersionInfo.html"
@@ -72,26 +69,24 @@ int OnModulesLoaded(WPARAM wParam, LPARAM lParam) return 0;
}
+static UINT uiExpertOnlyControls[] = { IDC_SHOWUUIDS, IDC_SHOWINSTALLEDLANGUAGES };
+
int OnOptionsInitialise(WPARAM wParam, LPARAM lParam)
{
OPTIONSDIALOGPAGE odp = { 0 };
-
- uiExpertOnlyControls[0] = IDC_SHOWUUIDS;
- uiExpertOnlyControls[1] = IDC_SHOWINSTALLEDLANGUAGES;
-
odp.cbSize = sizeof(odp);
odp.position = 100000000;
odp.hInstance = hInst;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_VERSIONINFO);
- odp.pszTitle = Translate("Version Information");
- odp.pszGroup = Translate("Services");
+ odp.pszTitle = LPGEN("Version Information");
+ odp.pszGroup = LPGEN("Services");
odp.groupPosition = 910000000;
- odp.flags=ODPF_BOLDGROUPS;
+ odp.flags = ODPF_BOLDGROUPS;
odp.pfnDlgProc = DlgProcOpts;
odp.expertOnlyControls = uiExpertOnlyControls;
- odp.nExpertOnlyControls = 2;
+ odp.nExpertOnlyControls = SIZEOF(uiExpertOnlyControls);
- Options_AddPage(wParam,&odp);
+ Options_AddPage(wParam, &odp);
return 0;
}
\ No newline at end of file |