From 807d75a94e378d053e9b64ea3dcbf68351067cc8 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Thu, 2 Jul 2009 00:31:26 +0200 Subject: [PATCH] winecfg: Build language resource files separately. Do not include them from an other rc file. --- programs/winecfg/Bg.rc | 2 ++ programs/winecfg/Cs.rc | 3 +++ programs/winecfg/Da.rc | 2 ++ programs/winecfg/De.rc | 2 ++ programs/winecfg/En.rc | 2 ++ programs/winecfg/Es.rc | 2 ++ programs/winecfg/Fi.rc | 2 ++ programs/winecfg/Fr.rc | 2 ++ programs/winecfg/Hu.rc | 2 ++ programs/winecfg/It.rc | 2 ++ programs/winecfg/Ja.rc | 4 ++-- programs/winecfg/Ko.rc | 2 ++ programs/winecfg/Lt.rc | 4 ++-- programs/winecfg/Makefile.in | 26 +++++++++++++++++++++++++- programs/winecfg/Nl.rc | 2 ++ programs/winecfg/No.rc | 2 ++ programs/winecfg/Pl.rc | 2 ++ programs/winecfg/Pt.rc | 2 ++ programs/winecfg/Ro.rc | 4 ++-- programs/winecfg/Ru.rc | 2 ++ programs/winecfg/Si.rc | 4 ++-- programs/winecfg/Sv.rc | 2 ++ programs/winecfg/Tr.rc | 2 ++ programs/winecfg/Zh.rc | 4 ++-- programs/winecfg/resource.h | 4 ++++ programs/winecfg/winecfg.rc | 33 --------------------------------- 26 files changed, 76 insertions(+), 44 deletions(-) diff --git a/programs/winecfg/Bg.rc b/programs/winecfg/Bg.rc index ca9b05403f5..9ddaf2c19f0 100644 --- a/programs/winecfg/Bg.rc +++ b/programs/winecfg/Bg.rc @@ -20,6 +20,8 @@ * */ +#include "resource.h" + LANGUAGE LANG_BULGARIAN, SUBLANG_DEFAULT IDR_WINECFG MENU DISCARDABLE diff --git a/programs/winecfg/Cs.rc b/programs/winecfg/Cs.rc index d9488e59187..6f5804b655b 100644 --- a/programs/winecfg/Cs.rc +++ b/programs/winecfg/Cs.rc @@ -24,6 +24,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * */ + +#include "resource.h" + /* Czech strings in CP1250 */ LANGUAGE LANG_CZECH, SUBLANG_DEFAULT diff --git a/programs/winecfg/Da.rc b/programs/winecfg/Da.rc index 58b68c409e1..b1df6f64c45 100644 --- a/programs/winecfg/Da.rc +++ b/programs/winecfg/Da.rc @@ -20,6 +20,8 @@ * */ +#include "resource.h" + LANGUAGE LANG_DANISH, SUBLANG_DEFAULT IDR_WINECFG MENU DISCARDABLE diff --git a/programs/winecfg/De.rc b/programs/winecfg/De.rc index ee49d319838..045e709f0ee 100644 --- a/programs/winecfg/De.rc +++ b/programs/winecfg/De.rc @@ -20,6 +20,8 @@ * */ +#include "resource.h" + LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL IDR_WINECFG MENU DISCARDABLE diff --git a/programs/winecfg/En.rc b/programs/winecfg/En.rc index 7389ff8195b..88a62690cf9 100644 --- a/programs/winecfg/En.rc +++ b/programs/winecfg/En.rc @@ -22,6 +22,8 @@ * */ +#include "resource.h" + LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT IDR_WINECFG MENU DISCARDABLE diff --git a/programs/winecfg/Es.rc b/programs/winecfg/Es.rc index 690b5e1ac42..e22ada42de4 100644 --- a/programs/winecfg/Es.rc +++ b/programs/winecfg/Es.rc @@ -20,6 +20,8 @@ * */ +#include "resource.h" + LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL IDR_WINECFG MENU DISCARDABLE diff --git a/programs/winecfg/Fi.rc b/programs/winecfg/Fi.rc index 087320a8972..211669eec04 100644 --- a/programs/winecfg/Fi.rc +++ b/programs/winecfg/Fi.rc @@ -21,6 +21,8 @@ * */ +#include "resource.h" + LANGUAGE LANG_FINNISH, SUBLANG_DEFAULT IDR_WINECFG MENU DISCARDABLE diff --git a/programs/winecfg/Fr.rc b/programs/winecfg/Fr.rc index 90d4fffb8c3..628e7522cc8 100644 --- a/programs/winecfg/Fr.rc +++ b/programs/winecfg/Fr.rc @@ -20,6 +20,8 @@ * */ +#include "resource.h" + LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL IDR_WINECFG MENU DISCARDABLE diff --git a/programs/winecfg/Hu.rc b/programs/winecfg/Hu.rc index ce36e6abbac..e97c7a40729 100644 --- a/programs/winecfg/Hu.rc +++ b/programs/winecfg/Hu.rc @@ -20,6 +20,8 @@ * */ +#include "resource.h" + LANGUAGE LANG_HUNGARIAN, SUBLANG_DEFAULT IDR_WINECFG MENU DISCARDABLE diff --git a/programs/winecfg/It.rc b/programs/winecfg/It.rc index 9a259b7d983..2ee50cbce5b 100644 --- a/programs/winecfg/It.rc +++ b/programs/winecfg/It.rc @@ -20,6 +20,8 @@ * */ +#include "resource.h" + LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL IDD_ABOUTCFG DIALOGEX 0, 0, 260, 270 diff --git a/programs/winecfg/Ja.rc b/programs/winecfg/Ja.rc index db82eedfd9d..eeb09875448 100644 --- a/programs/winecfg/Ja.rc +++ b/programs/winecfg/Ja.rc @@ -22,6 +22,8 @@ * */ +#include "resource.h" + /* UTF-8 */ #pragma code_page(65001) @@ -327,5 +329,3 @@ BEGIN IDC_SYSPARAMS_MENU_HILIGHT "Menu Highlight" IDC_SYSPARAMS_MENUBAR "メニュー バー" END - -#pragma code_page(default) diff --git a/programs/winecfg/Ko.rc b/programs/winecfg/Ko.rc index 4ee5e5ff65c..151375fe00f 100644 --- a/programs/winecfg/Ko.rc +++ b/programs/winecfg/Ko.rc @@ -23,6 +23,8 @@ * */ +#include "resource.h" + LANGUAGE LANG_KOREAN, SUBLANG_DEFAULT IDR_WINECFG MENU DISCARDABLE diff --git a/programs/winecfg/Lt.rc b/programs/winecfg/Lt.rc index c2531812af2..297b4111024 100644 --- a/programs/winecfg/Lt.rc +++ b/programs/winecfg/Lt.rc @@ -20,6 +20,8 @@ * */ +#include "resource.h" + /* UTF-8 */ #pragma code_page(65001) @@ -325,5 +327,3 @@ BEGIN IDC_SYSPARAMS_MENU_HILIGHT "Meniu paryškinimas" IDC_SYSPARAMS_MENUBAR "Meniu juosta" END - -#pragma code_page(default) diff --git a/programs/winecfg/Makefile.in b/programs/winecfg/Makefile.in index 823084f0b2d..787615ba80e 100644 --- a/programs/winecfg/Makefile.in +++ b/programs/winecfg/Makefile.in @@ -18,7 +18,31 @@ C_SRCS = \ winecfg.c \ x11drvdlg.c -RC_SRCS = winecfg.rc +RC_SRCS = \ + Bg.rc \ + Cs.rc \ + Da.rc \ + De.rc \ + En.rc \ + Es.rc \ + Fi.rc \ + Fr.rc \ + Hu.rc \ + It.rc \ + Ja.rc \ + Ko.rc \ + Lt.rc \ + Nl.rc \ + No.rc \ + Pl.rc \ + Pt.rc \ + Ro.rc \ + Ru.rc \ + Si.rc \ + Sv.rc \ + Tr.rc \ + Zh.rc \ + winecfg.rc @MAKE_PROG_RULES@ diff --git a/programs/winecfg/Nl.rc b/programs/winecfg/Nl.rc index af35977a590..66bd464468a 100644 --- a/programs/winecfg/Nl.rc +++ b/programs/winecfg/Nl.rc @@ -22,6 +22,8 @@ * */ +#include "resource.h" + LANGUAGE LANG_DUTCH, SUBLANG_NEUTRAL IDR_WINECFG MENU DISCARDABLE diff --git a/programs/winecfg/No.rc b/programs/winecfg/No.rc index bf4611a6f55..282567546e3 100644 --- a/programs/winecfg/No.rc +++ b/programs/winecfg/No.rc @@ -20,6 +20,8 @@ * */ +#include "resource.h" + LANGUAGE LANG_NORWEGIAN, SUBLANG_NORWEGIAN_BOKMAL IDR_WINECFG MENU DISCARDABLE diff --git a/programs/winecfg/Pl.rc b/programs/winecfg/Pl.rc index 73ca62c633c..f7fb619b3b1 100644 --- a/programs/winecfg/Pl.rc +++ b/programs/winecfg/Pl.rc @@ -23,6 +23,8 @@ * */ +#include "resource.h" + LANGUAGE LANG_POLISH, SUBLANG_DEFAULT IDR_WINECFG MENU DISCARDABLE diff --git a/programs/winecfg/Pt.rc b/programs/winecfg/Pt.rc index d96f1b65ddd..a3b021923c3 100644 --- a/programs/winecfg/Pt.rc +++ b/programs/winecfg/Pt.rc @@ -21,6 +21,8 @@ * */ +#include "resource.h" + LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE IDR_WINECFG MENU DISCARDABLE diff --git a/programs/winecfg/Ro.rc b/programs/winecfg/Ro.rc index e9fd94cde99..fb8a20badfe 100644 --- a/programs/winecfg/Ro.rc +++ b/programs/winecfg/Ro.rc @@ -20,6 +20,8 @@ * */ +#include "resource.h" + LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL #pragma code_page(65001) @@ -324,5 +326,3 @@ BEGIN IDC_SYSPARAMS_MENU_HILIGHT "Evidențiere meniu" IDC_SYSPARAMS_MENUBAR "Bară de meniu" END - -#pragma code_page(default) diff --git a/programs/winecfg/Ru.rc b/programs/winecfg/Ru.rc index e51042d2911..9656c48558b 100644 --- a/programs/winecfg/Ru.rc +++ b/programs/winecfg/Ru.rc @@ -21,6 +21,8 @@ * */ +#include "resource.h" + LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT IDR_WINECFG MENU DISCARDABLE diff --git a/programs/winecfg/Si.rc b/programs/winecfg/Si.rc index 016d9822dbb..1a8d488cd5f 100644 --- a/programs/winecfg/Si.rc +++ b/programs/winecfg/Si.rc @@ -20,6 +20,8 @@ * */ +#include "resource.h" + #pragma code_page(65001) LANGUAGE LANG_SLOVENIAN, SUBLANG_DEFAULT @@ -324,5 +326,3 @@ BEGIN IDC_SYSPARAMS_MENU_HILIGHT "Meni: osvetljen" IDC_SYSPARAMS_MENUBAR "Meni: vrstica" END - -#pragma code_page(default) diff --git a/programs/winecfg/Sv.rc b/programs/winecfg/Sv.rc index 12713b0e738..57708996dff 100644 --- a/programs/winecfg/Sv.rc +++ b/programs/winecfg/Sv.rc @@ -20,6 +20,8 @@ * */ +#include "resource.h" + LANGUAGE LANG_SWEDISH, SUBLANG_NEUTRAL IDR_WINECFG MENU DISCARDABLE diff --git a/programs/winecfg/Tr.rc b/programs/winecfg/Tr.rc index 8dff20fefb4..dbe1f2fd24c 100644 --- a/programs/winecfg/Tr.rc +++ b/programs/winecfg/Tr.rc @@ -20,6 +20,8 @@ * */ +#include "resource.h" + LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT IDR_WINECFG MENU DISCARDABLE diff --git a/programs/winecfg/Zh.rc b/programs/winecfg/Zh.rc index 7f6f36aed2b..349d1061967 100644 --- a/programs/winecfg/Zh.rc +++ b/programs/winecfg/Zh.rc @@ -21,6 +21,8 @@ * */ +#include "resource.h" + /* Chinese text is encoded in UTF-8 */ #pragma code_page(65001) @@ -594,5 +596,3 @@ BEGIN IDC_SYSPARAMS_INACTIVE_TITLE "非當前標題欄" IDC_SYSPARAMS_INACTIVE_TITLE_TEXT "非當前標題欄文字" END - -#pragma code_page(default) diff --git a/programs/winecfg/resource.h b/programs/winecfg/resource.h index a18fe7651b2..88c9e64ff41 100644 --- a/programs/winecfg/resource.h +++ b/programs/winecfg/resource.h @@ -23,6 +23,10 @@ * */ +#include +#include +#include + #define IDC_STATIC -1 #define IDS_TAB_APPLICATIONS 2 #define IDS_TAB_DLLS 3 diff --git a/programs/winecfg/winecfg.rc b/programs/winecfg/winecfg.rc index 6fdc2323a30..7f8fe804e81 100644 --- a/programs/winecfg/winecfg.rc +++ b/programs/winecfg/winecfg.rc @@ -20,41 +20,8 @@ * */ -#include "config.h" /* Needed for the PACKAGE_STRING definition */ -#include "windef.h" -#include "winbase.h" -#include "wingdi.h" -#include "winnls.h" -#include "winuser.h" -#include "commctrl.h" #include "resource.h" -#include "Bg.rc" -#include "Cs.rc" -#include "Da.rc" -#include "De.rc" -#include "En.rc" -#include "Es.rc" -#include "Fi.rc" -#include "Fr.rc" -#include "Hu.rc" -#include "It.rc" -#include "Ja.rc" -#include "Ko.rc" -#include "Lt.rc" -#include "Nl.rc" -#include "No.rc" -#include "Pl.rc" -#include "Pt.rc" -#include "Ro.rc" -#include "Ru.rc" -#include "Si.rc" -#include "Sv.rc" -#include "Tr.rc" -#include "Zh.rc" - -LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL - /* @makedep: idb_wine.bmp */ IDB_WINE BITMAP idb_wine.bmp