dxdiag: Display a usage message box when unknown options are requested.
diff --git a/configure b/configure
index 70d0202..2456624 100755
--- a/configure
+++ b/configure
@@ -15470,7 +15470,7 @@
wine_fn_config_test programs/cmd/tests cmd.exe_test
wine_fn_config_program cmdlgtst enable_cmdlgtst
wine_fn_config_program control enable_control install
-wine_fn_config_program dxdiag enable_dxdiag install
+wine_fn_config_program dxdiag enable_dxdiag install,po
wine_fn_config_program eject enable_eject install
wine_fn_config_program expand enable_expand install
wine_fn_config_program explorer enable_explorer install
diff --git a/configure.ac b/configure.ac
index ba36dda..2ae64f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2943,7 +2943,7 @@
WINE_CONFIG_TEST(programs/cmd/tests)
WINE_CONFIG_PROGRAM(cmdlgtst)
WINE_CONFIG_PROGRAM(control,,[install])
-WINE_CONFIG_PROGRAM(dxdiag,,[install])
+WINE_CONFIG_PROGRAM(dxdiag,,[install,po])
WINE_CONFIG_PROGRAM(eject,,[install])
WINE_CONFIG_PROGRAM(expand,,[install])
WINE_CONFIG_PROGRAM(explorer,,[install])
diff --git a/po/ar.po b/po/ar.po
index d41fffb..9d781ae 100644
--- a/po/ar.po
+++ b/po/ar.po
@@ -8077,6 +8077,14 @@
msgid "The input line is too long.\n"
msgstr ""
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/bg.po b/po/bg.po
index 5fa0ba1..64e4ef2 100644
--- a/po/bg.po
+++ b/po/bg.po
@@ -8252,6 +8252,14 @@
msgid "The input line is too long.\n"
msgstr ""
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/ca.po b/po/ca.po
index 3b3ca51..af38917 100644
--- a/po/ca.po
+++ b/po/ca.po
@@ -8000,6 +8000,14 @@
msgid "The input line is too long.\n"
msgstr ""
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/cs.po b/po/cs.po
index 4592293..58be3c4 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -8631,6 +8631,14 @@
msgid "The input line is too long.\n"
msgstr "The input line is too long.\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/da.po b/po/da.po
index a5ba93d..699e13b 100644
--- a/po/da.po
+++ b/po/da.po
@@ -8655,6 +8655,14 @@
msgid "The input line is too long.\n"
msgstr "The input line is too long.\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/de.po b/po/de.po
index 73c83ca..f162544 100644
--- a/po/de.po
+++ b/po/de.po
@@ -8644,6 +8644,14 @@
msgid "The input line is too long.\n"
msgstr "Die Eingabezeile ist zu lang.\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/el.po b/po/el.po
index da4aade..8f4f16d 100644
--- a/po/el.po
+++ b/po/el.po
@@ -8124,6 +8124,14 @@
msgid "The input line is too long.\n"
msgstr ""
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/en.po b/po/en.po
index 33a8b48..b4982ae 100644
--- a/po/en.po
+++ b/po/en.po
@@ -8301,6 +8301,14 @@
msgid "The input line is too long.\n"
msgstr "The input line is too long.\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/en_US.po b/po/en_US.po
index 65b2cd9..67d66da 100644
--- a/po/en_US.po
+++ b/po/en_US.po
@@ -8393,6 +8393,14 @@
msgid "The input line is too long.\n"
msgstr "The input line is too long.\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr "DirectX Diagnostic Tool"
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr "Usage: hostname\n"
diff --git a/po/eo.po b/po/eo.po
index 1ff49c3..1e81b72 100644
--- a/po/eo.po
+++ b/po/eo.po
@@ -8243,6 +8243,14 @@
msgid "The input line is too long.\n"
msgstr ""
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/es.po b/po/es.po
index 81002d8..29c3767 100644
--- a/po/es.po
+++ b/po/es.po
@@ -8833,6 +8833,14 @@
msgid "The input line is too long.\n"
msgstr "La línea de entrada es demasiado larga.\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/fa.po b/po/fa.po
index be659cc..e997dc9 100644
--- a/po/fa.po
+++ b/po/fa.po
@@ -8079,6 +8079,14 @@
msgid "The input line is too long.\n"
msgstr ""
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/fi.po b/po/fi.po
index 557fac0..a26e5ca 100644
--- a/po/fi.po
+++ b/po/fi.po
@@ -8324,6 +8324,14 @@
msgid "The input line is too long.\n"
msgstr ""
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/fr.po b/po/fr.po
index 12cd668..9060caa 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -8474,6 +8474,14 @@
msgid "The input line is too long.\n"
msgstr "La ligne d'entrée est trop longue.\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr "Usage : hostname\n"
diff --git a/po/he.po b/po/he.po
index bbb7b65..82e33e0 100644
--- a/po/he.po
+++ b/po/he.po
@@ -8493,6 +8493,14 @@
msgid "The input line is too long.\n"
msgstr "The input line is too long.\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/hi.po b/po/hi.po
index 75fa2cb..cddfa02 100644
--- a/po/hi.po
+++ b/po/hi.po
@@ -7997,6 +7997,14 @@
msgid "The input line is too long.\n"
msgstr ""
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/hu.po b/po/hu.po
index f82decf..2eab850 100644
--- a/po/hu.po
+++ b/po/hu.po
@@ -8518,6 +8518,14 @@
msgid "The input line is too long.\n"
msgstr ""
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/it.po b/po/it.po
index 975c1cb..854aeab 100644
--- a/po/it.po
+++ b/po/it.po
@@ -8738,6 +8738,14 @@
msgid "The input line is too long.\n"
msgstr "La linea di input è troppo lunga.\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/ja.po b/po/ja.po
index 12b988f..aec022f 100644
--- a/po/ja.po
+++ b/po/ja.po
@@ -8390,6 +8390,14 @@
msgid "The input line is too long.\n"
msgstr "入力行が長すぎます。\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr "使い方: hostname\n"
diff --git a/po/ko.po b/po/ko.po
index 92b4130..a406dfd 100644
--- a/po/ko.po
+++ b/po/ko.po
@@ -8362,6 +8362,14 @@
msgid "The input line is too long.\n"
msgstr "이 출력 줄은 너무 깁니다.\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr "사용법:hostname\n"
diff --git a/po/lt.po b/po/lt.po
index a7fe3a1..a22c6da 100644
--- a/po/lt.po
+++ b/po/lt.po
@@ -8412,6 +8412,14 @@
msgid "The input line is too long.\n"
msgstr "Įvedimo eilutė per ilga.\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr "Naudojimas: hostname\n"
diff --git a/po/ml.po b/po/ml.po
index 967e8fd..78782a9 100644
--- a/po/ml.po
+++ b/po/ml.po
@@ -7997,6 +7997,14 @@
msgid "The input line is too long.\n"
msgstr ""
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/nb_NO.po b/po/nb_NO.po
index f1433a4..4ad19d6 100644
--- a/po/nb_NO.po
+++ b/po/nb_NO.po
@@ -8660,6 +8660,14 @@
msgid "The input line is too long.\n"
msgstr "The input line is too long.\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/nl.po b/po/nl.po
index 4e6ed19..6eb8653 100644
--- a/po/nl.po
+++ b/po/nl.po
@@ -8546,6 +8546,14 @@
msgid "The input line is too long.\n"
msgstr "De invoerregel is te lang.\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/or.po b/po/or.po
index 6eb2e2be..d0f2b13 100644
--- a/po/or.po
+++ b/po/or.po
@@ -7997,6 +7997,14 @@
msgid "The input line is too long.\n"
msgstr ""
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/pa.po b/po/pa.po
index 79cf605..afb980c 100644
--- a/po/pa.po
+++ b/po/pa.po
@@ -7997,6 +7997,14 @@
msgid "The input line is too long.\n"
msgstr ""
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/pl.po b/po/pl.po
index 6e00f9a..bebbda3 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -8410,6 +8410,14 @@
msgid "The input line is too long.\n"
msgstr "Wpisany tekst jest zbyt długi.\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/pt_BR.po b/po/pt_BR.po
index 39510ce..9590761 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -8685,6 +8685,14 @@
msgid "The input line is too long.\n"
msgstr "A linha de entrada é muito longa.\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/pt_PT.po b/po/pt_PT.po
index 946d501..94c802a 100644
--- a/po/pt_PT.po
+++ b/po/pt_PT.po
@@ -8738,6 +8738,14 @@
msgid "The input line is too long.\n"
msgstr "The input line is too long.\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/rm.po b/po/rm.po
index 22f4f31..2991cb6 100644
--- a/po/rm.po
+++ b/po/rm.po
@@ -8047,6 +8047,14 @@
msgid "The input line is too long.\n"
msgstr ""
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/ro.po b/po/ro.po
index 00d906d..e61cc8e 100644
--- a/po/ro.po
+++ b/po/ro.po
@@ -8971,6 +8971,14 @@
msgid "The input line is too long.\n"
msgstr "Șirul introdus este prea lung.\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/ru.po b/po/ru.po
index d460f55..da8a1f0 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -8407,6 +8407,14 @@
msgid "The input line is too long.\n"
msgstr "Введённая команда слишком длинная.\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/sk.po b/po/sk.po
index d391b00..dfc6afd 100644
--- a/po/sk.po
+++ b/po/sk.po
@@ -8279,6 +8279,14 @@
msgid "The input line is too long.\n"
msgstr ""
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/sl.po b/po/sl.po
index a8e5499..43a8d9b 100644
--- a/po/sl.po
+++ b/po/sl.po
@@ -8440,6 +8440,14 @@
msgid "The input line is too long.\n"
msgstr "Vrstica vhoda je predolga.\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/sr_RS@cyrillic.po b/po/sr_RS@cyrillic.po
index c9c8190..4f6dc71 100644
--- a/po/sr_RS@cyrillic.po
+++ b/po/sr_RS@cyrillic.po
@@ -8385,6 +8385,14 @@
msgid "The input line is too long.\n"
msgstr ""
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/sr_RS@latin.po b/po/sr_RS@latin.po
index 27e7b4d..4e4ee45 100644
--- a/po/sr_RS@latin.po
+++ b/po/sr_RS@latin.po
@@ -8439,6 +8439,14 @@
msgid "The input line is too long.\n"
msgstr ""
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/sv.po b/po/sv.po
index f80fb8d..f5957af 100644
--- a/po/sv.po
+++ b/po/sv.po
@@ -8408,6 +8408,14 @@
msgid "The input line is too long.\n"
msgstr "Inmatningen är för lång.\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/te.po b/po/te.po
index 22d38ff..9daa1d9 100644
--- a/po/te.po
+++ b/po/te.po
@@ -7997,6 +7997,14 @@
msgid "The input line is too long.\n"
msgstr ""
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/th.po b/po/th.po
index e934740..d26d74e 100644
--- a/po/th.po
+++ b/po/th.po
@@ -8133,6 +8133,14 @@
msgid "The input line is too long.\n"
msgstr ""
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/tr.po b/po/tr.po
index 311bf70..dd77b54 100644
--- a/po/tr.po
+++ b/po/tr.po
@@ -8779,6 +8779,14 @@
msgid "The input line is too long.\n"
msgstr "The input line is too long.\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/uk.po b/po/uk.po
index 15f8950..617deb7 100644
--- a/po/uk.po
+++ b/po/uk.po
@@ -8417,6 +8417,14 @@
msgid "The input line is too long.\n"
msgstr "Введений рядок задовгий.\n"
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/wa.po b/po/wa.po
index 1d8c86e..1b374bd 100644
--- a/po/wa.po
+++ b/po/wa.po
@@ -8095,6 +8095,14 @@
msgid "The input line is too long.\n"
msgstr ""
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/wine.pot b/po/wine.pot
index 39fb95c..70b4142 100644
--- a/po/wine.pot
+++ b/po/wine.pot
@@ -7973,6 +7973,14 @@
msgid "The input line is too long.\n"
msgstr ""
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/zh_CN.po b/po/zh_CN.po
index 3936121..0084080 100644
--- a/po/zh_CN.po
+++ b/po/zh_CN.po
@@ -8372,6 +8372,14 @@
msgid "The input line is too long.\n"
msgstr ""
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/po/zh_TW.po b/po/zh_TW.po
index ce40af4..aae1a08 100644
--- a/po/zh_TW.po
+++ b/po/zh_TW.po
@@ -8427,6 +8427,14 @@
msgid "The input line is too long.\n"
msgstr ""
+#: dxdiag.rc:27
+msgid "DirectX Diagnostic Tool"
+msgstr ""
+
+#: dxdiag.rc:28
+msgid "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+msgstr ""
+
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
diff --git a/programs/dxdiag/Makefile.in b/programs/dxdiag/Makefile.in
index 608790a..6a43982 100644
--- a/programs/dxdiag/Makefile.in
+++ b/programs/dxdiag/Makefile.in
@@ -1,9 +1,13 @@
EXTRADEFS = -DWINE_NO_UNICODE_MACROS
MODULE = dxdiag.exe
APPMODE = -mwindows -municode
+IMPORTS = user32
C_SRCS = \
main.c \
output.c
+RC_SRCS = dxdiag.rc
+PO_SRCS = dxdiag.rc
+
@MAKE_PROG_RULES@
diff --git a/programs/dxdiag/dxdiag.rc b/programs/dxdiag/dxdiag.rc
new file mode 100644
index 0000000..5506494
--- /dev/null
+++ b/programs/dxdiag/dxdiag.rc
@@ -0,0 +1,29 @@
+/*
+ * Resources for the DirectX Diagnostic Tool
+ *
+ * Copyright 2011 Andrew Nguyen
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "dxdiag_private.h"
+
+LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
+
+STRINGTABLE
+{
+ STRING_DXDIAG_TOOL, "DirectX Diagnostic Tool"
+ STRING_USAGE, "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
+}
diff --git a/programs/dxdiag/dxdiag_private.h b/programs/dxdiag/dxdiag_private.h
index 48b4c4d..6026a9d 100644
--- a/programs/dxdiag/dxdiag_private.h
+++ b/programs/dxdiag/dxdiag_private.h
@@ -18,6 +18,14 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#include <windef.h>
+
+/* Resource definitions. */
+#define MAX_STRING_LEN 1024
+
+#define STRING_DXDIAG_TOOL 101
+#define STRING_USAGE 102
+
/* Output backend definitions. */
enum output_type
{
diff --git a/programs/dxdiag/main.c b/programs/dxdiag/main.c
index 6e4042c..5380548 100644
--- a/programs/dxdiag/main.c
+++ b/programs/dxdiag/main.c
@@ -27,6 +27,8 @@
WINE_DEFAULT_DEBUG_CHANNEL(dxdiag);
+HINSTANCE hInstance;
+
struct command_line_info
{
WCHAR outfile[MAX_PATH];
@@ -36,7 +38,14 @@
static void usage(void)
{
- WINE_FIXME("Usage message box is not implemented\n");
+ WCHAR title[MAX_STRING_LEN];
+ WCHAR usage[MAX_STRING_LEN];
+
+ LoadStringW(hInstance, STRING_DXDIAG_TOOL, title, sizeof(title)/sizeof(WCHAR));
+ LoadStringW(hInstance, STRING_USAGE, usage, sizeof(usage)/sizeof(WCHAR));
+
+ MessageBoxW(NULL, usage, title, MB_OK | MB_ICONWARNING);
+
ExitProcess(0);
}
@@ -166,6 +175,8 @@
{
struct command_line_info info;
+ hInstance = hInst;
+
if (!process_command_line(cmdline, &info))
usage();