From b859c13907787620a5c88d117599e4e5c63d2e12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Zalewski?= Date: Mon, 10 Mar 2008 22:07:19 +0100 Subject: [PATCH] regedit: Remove windows class names (they shouldn't be localized) and unused IDC_REGEDIT menu from resources. --- programs/regedit/Bg.rc | 2 -- programs/regedit/Cs.rc | 13 ------------- programs/regedit/De.rc | 13 ------------- programs/regedit/En.rc | 14 -------------- programs/regedit/Es.rc | 14 -------------- programs/regedit/Fr.rc | 14 -------------- programs/regedit/Hu.rc | 2 -- programs/regedit/It.rc | 14 -------------- programs/regedit/Ja.rc | 14 -------------- programs/regedit/Ko.rc | 14 -------------- programs/regedit/Nl.rc | 14 -------------- programs/regedit/No.rc | 14 -------------- programs/regedit/Pl.rc | 14 -------------- programs/regedit/Pt.rc | 31 ------------------------------- programs/regedit/Ru.rc | 14 -------------- programs/regedit/Si.rc | 14 -------------- programs/regedit/Tr.rc | 14 -------------- programs/regedit/main.c | 6 ++---- programs/regedit/main.h | 4 ++-- 19 files changed, 4 insertions(+), 235 deletions(-) diff --git a/programs/regedit/Bg.rc b/programs/regedit/Bg.rc index 0c61fa22ea2..be03c6a2c5b 100644 --- a/programs/regedit/Bg.rc +++ b/programs/regedit/Bg.rc @@ -212,8 +212,6 @@ END STRINGTABLE DISCARDABLE BEGIN IDS_APP_TITLE " " - IDC_REGEDIT "REGEDIT" - IDC_REGEDIT_FRAME "REGEDIT_FRAME" END STRINGTABLE DISCARDABLE diff --git a/programs/regedit/Cs.rc b/programs/regedit/Cs.rc index 77c47adc737..1a8e9cbe60a 100644 --- a/programs/regedit/Cs.rc +++ b/programs/regedit/Cs.rc @@ -28,17 +28,6 @@ LANGUAGE LANG_CZECH, SUBLANG_DEFAULT * Menu */ -IDC_REGEDIT MENU DISCARDABLE -BEGIN - POPUP "&Soubor" - BEGIN - MENUITEM "&Konec", ID_REGISTRY_EXIT - END - POPUP "&Npovda" - BEGIN - MENUITEM "&O aplikaci ...", ID_HELP_ABOUT - END -END IDR_REGEDIT_MENU MENU DISCARDABLE BEGIN @@ -174,8 +163,6 @@ END STRINGTABLE DISCARDABLE BEGIN IDS_APP_TITLE "Editor registru" - IDC_REGEDIT "REGEDIT" - IDC_REGEDIT_FRAME "REGEDIT_FRAME" END STRINGTABLE DISCARDABLE diff --git a/programs/regedit/De.rc b/programs/regedit/De.rc index 41775e94924..48cb5e87085 100644 --- a/programs/regedit/De.rc +++ b/programs/regedit/De.rc @@ -24,17 +24,6 @@ LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL * Menu */ -IDC_REGEDIT MENU DISCARDABLE -BEGIN - POPUP "&Datei" - BEGIN - MENUITEM "&Beenden", ID_REGISTRY_EXIT - END - POPUP "&Hilfe" - BEGIN - MENUITEM "&ber ...", ID_HELP_ABOUT - END -END IDR_REGEDIT_MENU MENU DISCARDABLE BEGIN @@ -238,8 +227,6 @@ END STRINGTABLE DISCARDABLE BEGIN IDS_APP_TITLE "Registry Editor" - IDC_REGEDIT "REGEDIT" - IDC_REGEDIT_FRAME "REGEDIT_FRAME" END STRINGTABLE DISCARDABLE diff --git a/programs/regedit/En.rc b/programs/regedit/En.rc index fad29132d44..307ffcc3c3c 100644 --- a/programs/regedit/En.rc +++ b/programs/regedit/En.rc @@ -93,18 +93,6 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US * Menu */ -IDC_REGEDIT MENU DISCARDABLE -BEGIN - POPUP "&File" - BEGIN - MENUITEM "E&xit", ID_REGISTRY_EXIT - END - POPUP "&Help" - BEGIN - MENUITEM "&About ...", ID_HELP_ABOUT - END -END - IDR_REGEDIT_MENU MENU DISCARDABLE BEGIN POPUP "&Registry" @@ -316,8 +304,6 @@ END STRINGTABLE DISCARDABLE BEGIN IDS_APP_TITLE "Registry Editor" - IDC_REGEDIT "REGEDIT" - IDC_REGEDIT_FRAME "REGEDIT_FRAME" END STRINGTABLE DISCARDABLE diff --git a/programs/regedit/Es.rc b/programs/regedit/Es.rc index 0e5f144e3b1..1ada38de397 100644 --- a/programs/regedit/Es.rc +++ b/programs/regedit/Es.rc @@ -24,18 +24,6 @@ LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL * Menu */ -IDC_REGEDIT MENU DISCARDABLE -BEGIN - POPUP "&Archivo" - BEGIN - MENUITEM "&Salir", ID_REGISTRY_EXIT - END - POPUP "A&yuda" - BEGIN - MENUITEM "&Acerca de...", ID_HELP_ABOUT - END -END - IDR_REGEDIT_MENU MENU DISCARDABLE BEGIN POPUP "&Registro" @@ -249,8 +237,6 @@ END STRINGTABLE DISCARDABLE BEGIN IDS_APP_TITLE "Editor del registro" - IDC_REGEDIT "REGEDIT" - IDC_REGEDIT_FRAME "REGEDIT_FRAME" END STRINGTABLE DISCARDABLE diff --git a/programs/regedit/Fr.rc b/programs/regedit/Fr.rc index 0b309ff8066..5a1de67c6ed 100644 --- a/programs/regedit/Fr.rc +++ b/programs/regedit/Fr.rc @@ -26,18 +26,6 @@ LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL * Menu */ -IDC_REGEDIT MENU DISCARDABLE -BEGIN - POPUP "&Fichier" - BEGIN - MENUITEM "&Quitter", ID_REGISTRY_EXIT - END - POPUP "Aid&e" - BEGIN - MENUITEM " &propos", ID_HELP_ABOUT - END -END - IDR_REGEDIT_MENU MENU DISCARDABLE BEGIN POPUP "&Registres" @@ -249,8 +237,6 @@ END STRINGTABLE DISCARDABLE BEGIN IDS_APP_TITLE "diteur de registres" - IDC_REGEDIT "REGEDIT" - IDC_REGEDIT_FRAME "REGEDIT_FRAME" END STRINGTABLE DISCARDABLE diff --git a/programs/regedit/Hu.rc b/programs/regedit/Hu.rc index 3bd440a44e9..2b24ac19b89 100644 --- a/programs/regedit/Hu.rc +++ b/programs/regedit/Hu.rc @@ -176,8 +176,6 @@ END STRINGTABLE DISCARDABLE BEGIN IDS_APP_TITLE "Regisztrcis adatbzis szerkeszt" - IDC_REGEDIT "REGEDIT" - IDC_REGEDIT_FRAME "REGEDIT_FRAME" END STRINGTABLE DISCARDABLE diff --git a/programs/regedit/It.rc b/programs/regedit/It.rc index ff8017e01b1..f0ec1b415c7 100644 --- a/programs/regedit/It.rc +++ b/programs/regedit/It.rc @@ -26,18 +26,6 @@ LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL * Menu */ -IDC_REGEDIT MENU DISCARDABLE -BEGIN - POPUP "&File" - BEGIN - MENUITEM "E&sci", ID_REGISTRY_EXIT - END - POPUP "&Aiuto" - BEGIN - MENUITEM "&Informazioni sull'editor del Registro", ID_HELP_ABOUT - END -END - IDR_REGEDIT_MENU MENU DISCARDABLE BEGIN POPUP "&Registro" @@ -222,8 +210,6 @@ END STRINGTABLE DISCARDABLE BEGIN IDS_APP_TITLE "Editor del Registro" - IDC_REGEDIT "REGEDIT" - IDC_REGEDIT_FRAME "REGEDIT_FRAME" END STRINGTABLE DISCARDABLE diff --git a/programs/regedit/Ja.rc b/programs/regedit/Ja.rc index aea9bb6a9e6..129bebf082a 100644 --- a/programs/regedit/Ja.rc +++ b/programs/regedit/Ja.rc @@ -24,18 +24,6 @@ LANGUAGE LANG_JAPANESE, SUBLANG_DEFAULT * Menu */ -IDC_REGEDIT MENU DISCARDABLE -BEGIN - POPUP "t@C(&F)" - BEGIN - MENUITEM "I(&x)", ID_REGISTRY_EXIT - END - POPUP "&Help" - BEGIN - MENUITEM "o[W(&A)...", ID_HELP_ABOUT - END -END - IDR_REGEDIT_MENU MENU DISCARDABLE BEGIN POPUP "WXg(&R)" @@ -170,8 +158,6 @@ END STRINGTABLE DISCARDABLE BEGIN IDS_APP_TITLE "WXgGfB^" - IDC_REGEDIT "REGEDIT" - IDC_REGEDIT_FRAME "REGEDIT_FRAME" END STRINGTABLE DISCARDABLE diff --git a/programs/regedit/Ko.rc b/programs/regedit/Ko.rc index 5bbaa7b13a1..b26ee4ffc0f 100644 --- a/programs/regedit/Ko.rc +++ b/programs/regedit/Ko.rc @@ -28,18 +28,6 @@ LANGUAGE LANG_KOREAN, SUBLANG_NEUTRAL * Menu */ -IDC_REGEDIT MENU DISCARDABLE -BEGIN - POPUP "(&F)" - BEGIN - MENUITEM "(&X)", ID_REGISTRY_EXIT - END - POPUP "(&H)" - BEGIN - MENUITEM "Ͽ(&A) ...", ID_HELP_ABOUT - END -END - IDR_REGEDIT_MENU MENU DISCARDABLE BEGIN POPUP "Ʈ(&R)" @@ -251,8 +239,6 @@ END STRINGTABLE DISCARDABLE BEGIN IDS_APP_TITLE "Ʈ " - IDC_REGEDIT "REGEDIT" - IDC_REGEDIT_FRAME "REGEDIT_FRAME" END STRINGTABLE DISCARDABLE diff --git a/programs/regedit/Nl.rc b/programs/regedit/Nl.rc index 8d135a10cb6..ffccd874949 100644 --- a/programs/regedit/Nl.rc +++ b/programs/regedit/Nl.rc @@ -25,18 +25,6 @@ LANGUAGE LANG_DUTCH, SUBLANG_NEUTRAL * Menu */ -IDC_REGEDIT MENU DISCARDABLE -BEGIN - POPUP "&Bestand" - BEGIN - MENUITEM "&Afsluiten", ID_REGISTRY_EXIT - END - POPUP "&Help" - BEGIN - MENUITEM "&Info ...", ID_HELP_ABOUT - END -END - IDR_REGEDIT_MENU MENU DISCARDABLE BEGIN POPUP "&Registerbestand" @@ -248,8 +236,6 @@ END STRINGTABLE DISCARDABLE BEGIN IDS_APP_TITLE "Register-editor" - IDC_REGEDIT "REGEDIT" - IDC_REGEDIT_FRAME "REGEDIT_FRAME" END STRINGTABLE DISCARDABLE diff --git a/programs/regedit/No.rc b/programs/regedit/No.rc index 53265a80528..3a4e6d6809c 100644 --- a/programs/regedit/No.rc +++ b/programs/regedit/No.rc @@ -24,18 +24,6 @@ LANGUAGE LANG_NORWEGIAN, SUBLANG_NORWEGIAN_BOKMAL * Menu */ -IDC_REGEDIT MENU DISCARDABLE -BEGIN - POPUP "&Fil" - BEGIN - MENUITEM "&Avslutt", ID_REGISTRY_EXIT - END - POPUP "&Hjelp" - BEGIN - MENUITEM "&Om . . .", ID_HELP_ABOUT - END -END - IDR_REGEDIT_MENU MENU DISCARDABLE BEGIN POPUP "&Register" @@ -247,8 +235,6 @@ END STRINGTABLE DISCARDABLE BEGIN IDS_APP_TITLE "Registerredigering" - IDC_REGEDIT "REGEDIT" - IDC_REGEDIT_FRAME "REGEDIT_FRAME" END STRINGTABLE DISCARDABLE diff --git a/programs/regedit/Pl.rc b/programs/regedit/Pl.rc index 006784b8526..098e158b6d7 100644 --- a/programs/regedit/Pl.rc +++ b/programs/regedit/Pl.rc @@ -24,18 +24,6 @@ LANGUAGE LANG_POLISH, SUBLANG_DEFAULT * Menu */ -IDC_REGEDIT MENU DISCARDABLE -BEGIN - POPUP "&Plik" - BEGIN - MENUITEM "Za&kocz", ID_REGISTRY_EXIT - END - POPUP "&Pomoc" - BEGIN - MENUITEM "&O programie...", ID_HELP_ABOUT - END -END - IDR_REGEDIT_MENU MENU DISCARDABLE BEGIN POPUP "&Rejestr" @@ -247,8 +235,6 @@ END STRINGTABLE DISCARDABLE BEGIN IDS_APP_TITLE "Edytor rejestru" - IDC_REGEDIT "REGEDIT" - IDC_REGEDIT_FRAME "REGEDIT_FRAME" END STRINGTABLE DISCARDABLE diff --git a/programs/regedit/Pt.rc b/programs/regedit/Pt.rc index c87b99d4b98..016f68c07b8 100644 --- a/programs/regedit/Pt.rc +++ b/programs/regedit/Pt.rc @@ -23,35 +23,6 @@ * Menu */ -LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN - -IDC_REGEDIT MENU DISCARDABLE -BEGIN - POPUP "&Arquivo" - BEGIN - MENUITEM "Sai&r", ID_REGISTRY_EXIT - END - POPUP "Aj&uda" - BEGIN - MENUITEM "&Sobre...", ID_HELP_ABOUT - END -END - -LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE - -IDC_REGEDIT MENU DISCARDABLE -BEGIN - POPUP "&Ficheiro" - BEGIN - MENUITEM "Sai&r", ID_REGISTRY_EXIT - END - POPUP "Aj&uda" - BEGIN - MENUITEM "&Sobre...", ID_HELP_ABOUT - END -END - - LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN IDR_REGEDIT_MENU MENU DISCARDABLE @@ -260,8 +231,6 @@ LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN STRINGTABLE DISCARDABLE BEGIN IDS_APP_TITLE "Editor do Registro" - IDC_REGEDIT "REGEDIT" - IDC_REGEDIT_FRAME "REGEDIT_FRAME" END LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE diff --git a/programs/regedit/Ru.rc b/programs/regedit/Ru.rc index 23085167337..1952eb86f77 100644 --- a/programs/regedit/Ru.rc +++ b/programs/regedit/Ru.rc @@ -24,18 +24,6 @@ LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT * Menu */ -IDC_REGEDIT MENU DISCARDABLE -BEGIN - POPUP "&" - BEGIN - MENUITEM "&", ID_REGISTRY_EXIT - END - POPUP "&" - BEGIN - MENUITEM "& ", ID_HELP_ABOUT - END -END - IDR_REGEDIT_MENU MENU DISCARDABLE BEGIN POPUP "&" @@ -111,8 +99,6 @@ END STRINGTABLE DISCARDABLE BEGIN IDS_APP_TITLE " " - IDC_REGEDIT "REGEDIT" - IDC_REGEDIT_FRAME "REGEDIT_FRAME" END STRINGTABLE DISCARDABLE diff --git a/programs/regedit/Si.rc b/programs/regedit/Si.rc index 0467044b73c..7dd0ac4c175 100644 --- a/programs/regedit/Si.rc +++ b/programs/regedit/Si.rc @@ -24,18 +24,6 @@ LANGUAGE LANG_SLOVENIAN, SUBLANG_NEUTRAL * Menu */ -IDC_REGEDIT MENU DISCARDABLE -BEGIN - POPUP "&Datoteka" - BEGIN - MENUITEM "Iz&hod", ID_REGISTRY_EXIT - END - POPUP "&Pomo" - BEGIN - MENUITEM "&O ...", ID_HELP_ABOUT - END -END - IDR_REGEDIT_MENU MENU DISCARDABLE BEGIN POPUP "&Register" @@ -111,8 +99,6 @@ END STRINGTABLE DISCARDABLE BEGIN IDS_APP_TITLE "Urejevalnik registra" - IDC_REGEDIT "REGEDIT" - IDC_REGEDIT_FRAME "REGEDIT_FRAME" END STRINGTABLE DISCARDABLE diff --git a/programs/regedit/Tr.rc b/programs/regedit/Tr.rc index 2f4bc9b9fd4..d7661317e54 100644 --- a/programs/regedit/Tr.rc +++ b/programs/regedit/Tr.rc @@ -24,18 +24,6 @@ LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT * Menu */ -IDC_REGEDIT MENU DISCARDABLE -BEGIN - POPUP "&Dosya" - BEGIN - MENUITEM "&k", ID_REGISTRY_EXIT - END - POPUP "&Yardm" - BEGIN - MENUITEM "&Hakknda...", ID_HELP_ABOUT - END -END - IDR_REGEDIT_MENU MENU DISCARDABLE BEGIN POPUP "&Kayt" @@ -221,8 +209,6 @@ END STRINGTABLE DISCARDABLE BEGIN IDS_APP_TITLE "Kayt Dzenleyici" - IDC_REGEDIT "REGEDIT" - IDC_REGEDIT_FRAME "REGEDIT_FRAME" END STRINGTABLE DISCARDABLE diff --git a/programs/regedit/main.c b/programs/regedit/main.c index 50939f5067d..4a6b0ce0e36 100644 --- a/programs/regedit/main.c +++ b/programs/regedit/main.c @@ -49,8 +49,8 @@ LPCTSTR strClipboardFormat = _T("TODO: SET CORRECT FORMAT"); #define MAX_LOADSTRING 100 TCHAR szTitle[MAX_LOADSTRING]; -TCHAR szFrameClass[MAX_LOADSTRING]; -TCHAR szChildClass[MAX_LOADSTRING]; +const TCHAR szFrameClass[] = {'R','E','G','E','D','I','T','_','F','R','A','M','E',0}; +const TCHAR szChildClass[] = {'R','E','G','E','D','I','T',0}; /******************************************************************************* @@ -170,8 +170,6 @@ int APIENTRY WinMain(HINSTANCE hInstance, /* Initialize global strings */ LoadString(hInstance, IDS_APP_TITLE, szTitle, COUNT_OF(szTitle)); - LoadString(hInstance, IDC_REGEDIT_FRAME, szFrameClass, COUNT_OF(szFrameClass)); - LoadString(hInstance, IDC_REGEDIT, szChildClass, COUNT_OF(szChildClass)); LoadString(hInstance, IDS_REGISTRY_DEFAULT_VALUE, g_pszDefaultValueName, COUNT_OF(g_pszDefaultValueName)); /* Store instance handle in our global variable */ diff --git a/programs/regedit/main.h b/programs/regedit/main.h index 3d0f129847b..a2a3c19bc5f 100644 --- a/programs/regedit/main.h +++ b/programs/regedit/main.h @@ -88,8 +88,8 @@ extern HFONT hFont; extern enum OPTION_FLAGS Options; extern TCHAR szTitle[]; -extern TCHAR szFrameClass[]; -extern TCHAR szChildClass[]; +extern const TCHAR szFrameClass[]; +extern const TCHAR szChildClass[]; extern TCHAR g_pszDefaultValueName[]; /* about.c */