diff options
author | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2010-04-06 00:55:48 +0000 |
---|---|---|
committer | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2010-04-06 00:55:48 +0000 |
commit | 03e3e4ebe0fee7bbe8014014b77a21d22cc090a8 (patch) | |
tree | 59eb86b2a5252bd336398594b21ff8a6c4252c00 /updater/options.cpp | |
parent | 92f7a736e44f3d5199e48459daa78b89a0c9f46d (diff) |
Fixed translation issue
Removed unneeded/duplicated code (thus shaved few more kb from the dll)
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@496 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'updater/options.cpp')
-rw-r--r-- | updater/options.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/updater/options.cpp b/updater/options.cpp index 847a66f..f753997 100644 --- a/updater/options.cpp +++ b/updater/options.cpp @@ -17,7 +17,7 @@ void add_restart_menu_item() { menu.flags = CMIM_ALL;
menu.hIcon = LoadIconEx(I_RSTRT);
- menu.pszName = Translate("Restart");
+ menu.pszName = "Restart";
menu.pszService= MS_UPDATE_MENURESTART;
menu.position = 2000099900;
hMainMenuItemRestart = (HANDLE)CallService(MS_CLIST_ADDMAINMENUITEM,0,(LPARAM)&menu);
@@ -31,7 +31,7 @@ void add_update_and_exit_menu_item() { menu.flags = CMIM_ALL;
menu.hIcon = LoadIconEx(I_CHKUPDEXT);
- menu.pszName = Translate("Update and Exit");
+ menu.pszName = "Update and Exit";
menu.pszService= MS_UPDATE_MENUUPDATEANDEXIT;
menu.position = 2000099901;
hMainMenuItemUpdateAndExit = (HANDLE)CallService(MS_CLIST_ADDMAINMENUITEM,0,(LPARAM)&menu);
@@ -62,9 +62,9 @@ static int EnumerateFuncFillList(char *szComponentName, UpdateOptions *update_op lvI.lParam = (update_options->enabled ? 1 : 0) + (update_options->use_beta ? 2 : 0) + (update_options->fixed ? 4 : 0);
lvI.iSubItem = 0;
- lvI.pszText = TranslateTS(temp_str = GetTString(szComponentName));
+ lvI.pszText = (temp_str = GetTString(szComponentName));
lvI.iItem = ListView_InsertItem(GetDlgItem(hwndDlg, IDC_LST_REGISTERED), &lvI);
- free(temp_str);
+ mir_free(temp_str);
lvI.mask = LVIF_TEXT;
lvI.iSubItem = 1;
|