From c02f249888f4eb3743d416302ac5fdac00ba02cb Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Thu, 2 Jul 2009 00:30:20 +0200 Subject: [PATCH] taskmgr: Build language resource files separately. Do not include them from an other rc file. --- programs/taskmgr/Da.rc | 2 ++ programs/taskmgr/De.rc | 2 ++ programs/taskmgr/En.rc | 2 ++ programs/taskmgr/Fr.rc | 2 ++ programs/taskmgr/Ja.rc | 4 ++-- programs/taskmgr/Ko.rc | 2 ++ programs/taskmgr/Lt.rc | 4 ++-- programs/taskmgr/Makefile.in | 19 ++++++++++++++++++- programs/taskmgr/Nl.rc | 2 ++ programs/taskmgr/No.rc | 2 ++ programs/taskmgr/Pl.rc | 2 ++ programs/taskmgr/Pt.rc | 2 ++ programs/taskmgr/Ru.rc | 2 ++ programs/taskmgr/Si.rc | 4 ++-- programs/taskmgr/Sv.rc | 2 ++ programs/taskmgr/Tr.rc | 2 ++ programs/taskmgr/Zh.rc | 4 ++-- programs/taskmgr/resource.h | 5 +++++ programs/taskmgr/taskmgr.rc | 23 ----------------------- 19 files changed, 55 insertions(+), 32 deletions(-) diff --git a/programs/taskmgr/Da.rc b/programs/taskmgr/Da.rc index fb9bab07a79..fa59e938d8f 100644 --- a/programs/taskmgr/Da.rc +++ b/programs/taskmgr/Da.rc @@ -19,6 +19,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "resource.h" + LANGUAGE LANG_DANISH, SUBLANG_DEFAULT /* diff --git a/programs/taskmgr/De.rc b/programs/taskmgr/De.rc index 8b96bc2563f..e1d3b190f5f 100644 --- a/programs/taskmgr/De.rc +++ b/programs/taskmgr/De.rc @@ -21,6 +21,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "resource.h" + LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL /* diff --git a/programs/taskmgr/En.rc b/programs/taskmgr/En.rc index ce2bdf552e2..45aa9258b21 100644 --- a/programs/taskmgr/En.rc +++ b/programs/taskmgr/En.rc @@ -19,6 +19,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "resource.h" + LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT /* diff --git a/programs/taskmgr/Fr.rc b/programs/taskmgr/Fr.rc index 617a2bcf315..0c435cb718a 100644 --- a/programs/taskmgr/Fr.rc +++ b/programs/taskmgr/Fr.rc @@ -20,6 +20,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "resource.h" + LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL /* diff --git a/programs/taskmgr/Ja.rc b/programs/taskmgr/Ja.rc index e45d5779e4d..43334f2f8cc 100644 --- a/programs/taskmgr/Ja.rc +++ b/programs/taskmgr/Ja.rc @@ -20,6 +20,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "resource.h" + /* UTF-8 */ #pragma code_page(65001) @@ -488,5 +490,3 @@ BEGIN "プロセスの優先クラスを 通常以下 に設定します。" ID_PROCESS_PAGE_SETPRIORITY_LOW "プロセスの優先クラスを 低 に設定します。" END - -#pragma code_page(default) diff --git a/programs/taskmgr/Ko.rc b/programs/taskmgr/Ko.rc index 390371bb411..45e09110dd5 100644 --- a/programs/taskmgr/Ko.rc +++ b/programs/taskmgr/Ko.rc @@ -19,6 +19,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "resource.h" + LANGUAGE LANG_KOREAN, SUBLANG_DEFAULT /* diff --git a/programs/taskmgr/Lt.rc b/programs/taskmgr/Lt.rc index c58647a1efd..17cde26af72 100644 --- a/programs/taskmgr/Lt.rc +++ b/programs/taskmgr/Lt.rc @@ -19,6 +19,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "resource.h" + /* UTF-8 */ #pragma code_page(65001) @@ -560,5 +562,3 @@ BEGIN IDS_DEBUG_CHANNEL_WARN "Warn (įspėjimas)" IDS_DEBUG_CHANNEL_TRACE "Trace (pėdsakas)" END - -#pragma code_page(default) diff --git a/programs/taskmgr/Makefile.in b/programs/taskmgr/Makefile.in index 153a598af30..2f2b40ada0c 100644 --- a/programs/taskmgr/Makefile.in +++ b/programs/taskmgr/Makefile.in @@ -29,7 +29,24 @@ C_SRCS = \ taskmgr.c \ trayicon.c -RC_SRCS = taskmgr.rc +RC_SRCS = \ + Da.rc \ + De.rc \ + En.rc \ + Fr.rc \ + Ja.rc \ + Ko.rc \ + Lt.rc \ + Nl.rc \ + No.rc \ + Pl.rc \ + Pt.rc \ + Ru.rc \ + Si.rc \ + Sv.rc \ + Tr.rc \ + Zh.rc \ + taskmgr.rc @MAKE_PROG_RULES@ diff --git a/programs/taskmgr/Nl.rc b/programs/taskmgr/Nl.rc index 5d1860b9a8c..468769f73d4 100644 --- a/programs/taskmgr/Nl.rc +++ b/programs/taskmgr/Nl.rc @@ -20,6 +20,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "resource.h" + LANGUAGE LANG_DUTCH, SUBLANG_NEUTRAL /* diff --git a/programs/taskmgr/No.rc b/programs/taskmgr/No.rc index f25eadc2696..19b647241c8 100644 --- a/programs/taskmgr/No.rc +++ b/programs/taskmgr/No.rc @@ -19,6 +19,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "resource.h" + LANGUAGE LANG_NORWEGIAN, SUBLANG_NORWEGIAN_BOKMAL /* diff --git a/programs/taskmgr/Pl.rc b/programs/taskmgr/Pl.rc index 14537096c12..9a38b491aa6 100644 --- a/programs/taskmgr/Pl.rc +++ b/programs/taskmgr/Pl.rc @@ -20,6 +20,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "resource.h" + LANGUAGE LANG_POLISH, SUBLANG_DEFAULT /* diff --git a/programs/taskmgr/Pt.rc b/programs/taskmgr/Pt.rc index 42ece363052..a7926e5e921 100644 --- a/programs/taskmgr/Pt.rc +++ b/programs/taskmgr/Pt.rc @@ -20,6 +20,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "resource.h" + LANGUAGE LANG_PORTUGUESE, SUBLANG_NEUTRAL /* diff --git a/programs/taskmgr/Ru.rc b/programs/taskmgr/Ru.rc index e9d657bd23e..d709513460d 100644 --- a/programs/taskmgr/Ru.rc +++ b/programs/taskmgr/Ru.rc @@ -19,6 +19,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "resource.h" + LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT /* diff --git a/programs/taskmgr/Si.rc b/programs/taskmgr/Si.rc index 670189b4ed8..4cfe73f5ef2 100644 --- a/programs/taskmgr/Si.rc +++ b/programs/taskmgr/Si.rc @@ -19,6 +19,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "resource.h" + #pragma code_page(65001) LANGUAGE LANG_SLOVENIAN, SUBLANG_DEFAULT @@ -486,5 +488,3 @@ BEGIN "Dodeli proces v PODPOVPREČNI prioritetni razred" ID_PROCESS_PAGE_SETPRIORITY_LOW "Dodeli proces v NIZEK prioritetni razred" END - -#pragma code_page(default) diff --git a/programs/taskmgr/Sv.rc b/programs/taskmgr/Sv.rc index 4e177873410..a77eb61bc7e 100644 --- a/programs/taskmgr/Sv.rc +++ b/programs/taskmgr/Sv.rc @@ -19,6 +19,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "resource.h" + LANGUAGE LANG_SWEDISH, SUBLANG_NEUTRAL /* diff --git a/programs/taskmgr/Tr.rc b/programs/taskmgr/Tr.rc index ac22a611853..1149bb3bd6b 100644 --- a/programs/taskmgr/Tr.rc +++ b/programs/taskmgr/Tr.rc @@ -19,6 +19,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "resource.h" + LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT /* diff --git a/programs/taskmgr/Zh.rc b/programs/taskmgr/Zh.rc index cd7c0611f6a..969a404bfdb 100644 --- a/programs/taskmgr/Zh.rc +++ b/programs/taskmgr/Zh.rc @@ -19,6 +19,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "resource.h" + /* Chinese text is encoded in UTF-8 */ #pragma code_page(65001) @@ -931,5 +933,3 @@ BEGIN ID_PROCESS_PAGE_SETPRIORITY_BELOWNORMAL "將進程設為中等以下優先級" ID_PROCESS_PAGE_SETPRIORITY_LOW "將進程設為低優先級" END - -#pragma code_page(default) diff --git a/programs/taskmgr/resource.h b/programs/taskmgr/resource.h index 1b98ab0521b..b735ef4c9f8 100644 --- a/programs/taskmgr/resource.h +++ b/programs/taskmgr/resource.h @@ -4,6 +4,11 @@ * Used by taskmgr.rc * */ + +#include +#include +#include + #define IDS_APP_TITLE 103 #define IDC_TASKMGR 109 #define IDS_RUNDLG_CAPTION 110 diff --git a/programs/taskmgr/taskmgr.rc b/programs/taskmgr/taskmgr.rc index d027a1ead86..ad295f206f1 100644 --- a/programs/taskmgr/taskmgr.rc +++ b/programs/taskmgr/taskmgr.rc @@ -19,31 +19,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include -#include -#include - #include "resource.h" -/* Language resources */ - -#include "Da.rc" -#include "De.rc" -#include "En.rc" -#include "Fr.rc" -#include "Ja.rc" -#include "Ko.rc" -#include "Lt.rc" -#include "Nl.rc" -#include "No.rc" -#include "Pl.rc" -#include "Pt.rc" -#include "Ru.rc" -#include "Si.rc" -#include "Sv.rc" -#include "Tr.rc" -#include "Zh.rc" - LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL /*