(eMule using numbers in the localization of prefs-dlg tree items)
and i changed the code in my mod...
old code:
Quote
...
pTree->SetItemText(GetPageTreeItem(0), RemoveAmbersand(GetResString(IDS_PW_GENERAL)));
...
pTree->SetItemText(GetPageTreeItem(10), RemoveAmbersand(GetResString(IDS_SECURITY)));
...
pTree->SetItemText(GetPageTreeItem(0), RemoveAmbersand(GetResString(IDS_PW_GENERAL)));
...
pTree->SetItemText(GetPageTreeItem(10), RemoveAmbersand(GetResString(IDS_SECURITY)));
...
new code:
Quote
...
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndGeneral)), RemoveAmbersand(GetResString(IDS_PW_GENERAL)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndDisplay)), RemoveAmbersand(GetResString(IDS_PW_DISPLAY)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndConnection)), RemoveAmbersand(GetResString(IDS_PW_CONNECTION)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndProxy)), RemoveAmbersand(GetResString(IDS_PW_PROXY)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndServer)), RemoveAmbersand(GetResString(IDS_PW_SERVER)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndDirectories)), RemoveAmbersand(GetResString(IDS_PW_DIR)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndFiles)), RemoveAmbersand(GetResString(IDS_PW_FILES)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndNotify)), RemoveAmbersand(GetResString(IDS_PW_EKDEV_OPTIONS)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndStats)), RemoveAmbersand(GetResString(IDS_STATSSETUPINFO)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndIRC)), RemoveAmbersand(GetResString(IDS_IRC)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndSecurity)), RemoveAmbersand(GetResString(IDS_SECURITY)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndScheduler)), RemoveAmbersand(GetResString(IDS_SCHEDULER)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndWebServer)), RemoveAmbersand(GetResString(IDS_PW_WS)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndTweaks)), RemoveAmbersand(GetResString(IDS_PW_TWEAK)));
#if defined(_DEBUG) || defined(USE_DEBUG_DEVICE)
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndDebug)), _T("Debug"));
#endif
...
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndGeneral)), RemoveAmbersand(GetResString(IDS_PW_GENERAL)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndDisplay)), RemoveAmbersand(GetResString(IDS_PW_DISPLAY)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndConnection)), RemoveAmbersand(GetResString(IDS_PW_CONNECTION)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndProxy)), RemoveAmbersand(GetResString(IDS_PW_PROXY)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndServer)), RemoveAmbersand(GetResString(IDS_PW_SERVER)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndDirectories)), RemoveAmbersand(GetResString(IDS_PW_DIR)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndFiles)), RemoveAmbersand(GetResString(IDS_PW_FILES)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndNotify)), RemoveAmbersand(GetResString(IDS_PW_EKDEV_OPTIONS)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndStats)), RemoveAmbersand(GetResString(IDS_STATSSETUPINFO)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndIRC)), RemoveAmbersand(GetResString(IDS_IRC)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndSecurity)), RemoveAmbersand(GetResString(IDS_SECURITY)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndScheduler)), RemoveAmbersand(GetResString(IDS_SCHEDULER)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndWebServer)), RemoveAmbersand(GetResString(IDS_PW_WS)));
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndTweaks)), RemoveAmbersand(GetResString(IDS_PW_TWEAK)));
#if defined(_DEBUG) || defined(USE_DEBUG_DEVICE)
pTree->SetItemText(GetPageTreeItem(GetPageIndex(&m_wndDebug)), _T("Debug"));
#endif
...
i didn't compile the code yet, but it should work fine
(since GetPageIndex() is a member of CPropertySheet class)
Avi3k