From 4b27ced0ac73b0eb4b0c22ecd073dda0038b63b5 Mon Sep 17 00:00:00 2001 From: Isira Seneviratne Date: Thu, 7 Feb 2019 18:36:08 +0530 Subject: [PATCH] view: Move open dialog filter string to resource file and add extensions. Signed-off-by: Isira Seneviratne Signed-off-by: Alexandre Julliard --- po/ar.po | 4 ++++ po/bg.po | 4 ++++ po/ca.po | 4 ++++ po/cs.po | 4 ++++ po/da.po | 4 ++++ po/de.po | 4 ++++ po/el.po | 4 ++++ po/en.po | 4 ++++ po/en_US.po | 4 ++++ po/eo.po | 4 ++++ po/es.po | 4 ++++ po/fa.po | 4 ++++ po/fi.po | 4 ++++ po/fr.po | 4 ++++ po/he.po | 4 ++++ po/hi.po | 4 ++++ po/hr.po | 4 ++++ po/hu.po | 4 ++++ po/it.po | 4 ++++ po/ja.po | 4 ++++ po/ko.po | 4 ++++ po/lt.po | 4 ++++ po/ml.po | 4 ++++ po/nb_NO.po | 4 ++++ po/nl.po | 4 ++++ po/or.po | 4 ++++ po/pa.po | 4 ++++ po/pl.po | 4 ++++ po/pt_BR.po | 4 ++++ po/pt_PT.po | 4 ++++ po/rm.po | 4 ++++ po/ro.po | 4 ++++ po/ru.po | 4 ++++ po/si.po | 4 ++++ po/sk.po | 4 ++++ po/sl.po | 4 ++++ po/sr_RS@cyrillic.po | 4 ++++ po/sr_RS@latin.po | 4 ++++ po/sv.po | 4 ++++ po/te.po | 4 ++++ po/th.po | 4 ++++ po/tr.po | 4 ++++ po/uk.po | 4 ++++ po/wa.po | 4 ++++ po/wine.pot | 4 ++++ po/zh_CN.po | 4 ++++ po/zh_TW.po | 4 ++++ programs/view/resource.h | 1 + programs/view/view.c | 12 +++++++++--- programs/view/view.rc | 1 + 50 files changed, 199 insertions(+), 3 deletions(-) diff --git a/po/ar.po b/po/ar.po index e34fcc3a917..216508c5c55 100644 --- a/po/ar.po +++ b/po/ar.po @@ -15215,6 +15215,10 @@ msgstr "الي&مين" msgid "Regular Metafile Viewer" msgstr "عارض طبيعي لملفات الميتا" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "يجري انتظار برنامج" diff --git a/po/bg.po b/po/bg.po index 87257a48867..e328734cae7 100644 --- a/po/bg.po +++ b/po/bg.po @@ -14684,6 +14684,10 @@ msgstr "Най-вдясно" msgid "Regular Metafile Viewer" msgstr "" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "" diff --git a/po/ca.po b/po/ca.po index 703755b1960..4a9a96333dc 100644 --- a/po/ca.po +++ b/po/ca.po @@ -14893,6 +14893,10 @@ msgstr "A la &dreta" msgid "Regular Metafile Viewer" msgstr "Visualitzador de Metafitxers Regular" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "S'està esperant el programa" diff --git a/po/cs.po b/po/cs.po index bc089cb0a85..50f636dc3dc 100644 --- a/po/cs.po +++ b/po/cs.po @@ -14698,6 +14698,10 @@ msgstr "Vp&ravo" msgid "Regular Metafile Viewer" msgstr "Obyčejný prohlížeč metasouborů" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Čeká se na program" diff --git a/po/da.po b/po/da.po index f727a7ec057..db61ed1bb06 100644 --- a/po/da.po +++ b/po/da.po @@ -15182,6 +15182,10 @@ msgstr "Høj&re" msgid "Regular Metafile Viewer" msgstr "Normal metafil-fremviser" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Venter på program" diff --git a/po/de.po b/po/de.po index 7f2618b60d5..db9eaf5590c 100644 --- a/po/de.po +++ b/po/de.po @@ -14871,6 +14871,10 @@ msgstr "&Rechts" msgid "Regular Metafile Viewer" msgstr "Regulärer Metafile-Betrachter" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Warten auf Programm" diff --git a/po/el.po b/po/el.po index 524d581791d..a9cfc28b255 100644 --- a/po/el.po +++ b/po/el.po @@ -14363,6 +14363,10 @@ msgstr "" msgid "Regular Metafile Viewer" msgstr "" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "" diff --git a/po/en.po b/po/en.po index 15caa6ec848..fcd3d9cf1c2 100644 --- a/po/en.po +++ b/po/en.po @@ -14772,6 +14772,10 @@ msgstr "&Right" msgid "Regular Metafile Viewer" msgstr "Regular Metafile Viewer" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "Metafiles (*.wmf, *.emf)" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Waiting for Program" diff --git a/po/en_US.po b/po/en_US.po index bb1eaa2d9b9..380e04cc789 100644 --- a/po/en_US.po +++ b/po/en_US.po @@ -14772,6 +14772,10 @@ msgstr "&Right" msgid "Regular Metafile Viewer" msgstr "Regular Metafile Viewer" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "Metafiles (*.wmf, *.emf)" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Waiting for Program" diff --git a/po/eo.po b/po/eo.po index bc93cf0afc5..86eaa192cd9 100644 --- a/po/eo.po +++ b/po/eo.po @@ -14395,6 +14395,10 @@ msgstr "&Dekstre" msgid "Regular Metafile Viewer" msgstr "Legilo de Regulaj Metadosieroj" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "" diff --git a/po/es.po b/po/es.po index 9b38f9f4f36..32a75307430 100644 --- a/po/es.po +++ b/po/es.po @@ -15272,6 +15272,10 @@ msgstr "&Derecha" msgid "Regular Metafile Viewer" msgstr "Visor de Metaficheros Regular" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Esperando al programa" diff --git a/po/fa.po b/po/fa.po index 0140b50c8ef..61dcd3a3561 100644 --- a/po/fa.po +++ b/po/fa.po @@ -14364,6 +14364,10 @@ msgstr "" msgid "Regular Metafile Viewer" msgstr "" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "" diff --git a/po/fi.po b/po/fi.po index fbfad9ceb71..d714e00da92 100644 --- a/po/fi.po +++ b/po/fi.po @@ -14744,6 +14744,10 @@ msgstr "&Oikea" msgid "Regular Metafile Viewer" msgstr "Tavallisten metatiedostojen katselin" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Odottaa ohjelmaa" diff --git a/po/fr.po b/po/fr.po index e7281af54f5..00f619212a3 100644 --- a/po/fr.po +++ b/po/fr.po @@ -15230,6 +15230,10 @@ msgstr "&Droite" msgid "Regular Metafile Viewer" msgstr "Visionneuse de fichiers Metafile réguliers" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Attente du programme" diff --git a/po/he.po b/po/he.po index 8572f845078..bec2037f457 100644 --- a/po/he.po +++ b/po/he.po @@ -14898,6 +14898,10 @@ msgstr "&ימינה" msgid "Regular Metafile Viewer" msgstr "מציג קובצי על רגיל" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "בהמתנה לתכנה" diff --git a/po/hi.po b/po/hi.po index bbda02503ac..6185bad5c82 100644 --- a/po/hi.po +++ b/po/hi.po @@ -14121,6 +14121,10 @@ msgstr "" msgid "Regular Metafile Viewer" msgstr "" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "" diff --git a/po/hr.po b/po/hr.po index c1430d87e02..775d0ec65f3 100644 --- a/po/hr.po +++ b/po/hr.po @@ -14642,6 +14642,10 @@ msgstr "&Desno" msgid "Regular Metafile Viewer" msgstr "" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Čekanje programa" diff --git a/po/hu.po b/po/hu.po index 865db0e17be..6d9ff2e6928 100644 --- a/po/hu.po +++ b/po/hu.po @@ -15177,6 +15177,10 @@ msgstr "&Jobb széle" msgid "Regular Metafile Viewer" msgstr "Helyi megafájl nézegető" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Várakozás a programra" diff --git a/po/it.po b/po/it.po index 5adecb0f243..e9e4c3c2424 100644 --- a/po/it.po +++ b/po/it.po @@ -15273,6 +15273,10 @@ msgstr "&Destra" msgid "Regular Metafile Viewer" msgstr "Visualizzatore di Metafile Regolari" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "In attesa del programma" diff --git a/po/ja.po b/po/ja.po index 1fe47125d5a..aa5b7e39730 100644 --- a/po/ja.po +++ b/po/ja.po @@ -14760,6 +14760,10 @@ msgstr "右(&R)" msgid "Regular Metafile Viewer" msgstr "標準メタファイル ビュアー" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "待機中" diff --git a/po/ko.po b/po/ko.po index f6c2df59ce1..628d252307f 100644 --- a/po/ko.po +++ b/po/ko.po @@ -14714,6 +14714,10 @@ msgstr "오른쪽(&R)" msgid "Regular Metafile Viewer" msgstr "정규 메타파일 보기" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "프로그램 대기중" diff --git a/po/lt.po b/po/lt.po index 50c74531875..9a683f3fbc2 100644 --- a/po/lt.po +++ b/po/lt.po @@ -14781,6 +14781,10 @@ msgstr "&Dešinėn" msgid "Regular Metafile Viewer" msgstr "Įprastinė metafailų žiūryklė" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Laukiama programos" diff --git a/po/ml.po b/po/ml.po index 647e75bcec9..7a8545c18bb 100644 --- a/po/ml.po +++ b/po/ml.po @@ -14123,6 +14123,10 @@ msgstr "" msgid "Regular Metafile Viewer" msgstr "" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "" diff --git a/po/nb_NO.po b/po/nb_NO.po index 3a71c013525..577bb0e10a4 100644 --- a/po/nb_NO.po +++ b/po/nb_NO.po @@ -14791,6 +14791,10 @@ msgstr "Høy&re" msgid "Regular Metafile Viewer" msgstr "Vanlig metafil-framviser" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Venter på program" diff --git a/po/nl.po b/po/nl.po index 32c42e744c7..1e42e0dea03 100644 --- a/po/nl.po +++ b/po/nl.po @@ -15196,6 +15196,10 @@ msgstr "&Rechts" msgid "Regular Metafile Viewer" msgstr "Algemene Metafile weergave" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Wachtend op Programma" diff --git a/po/or.po b/po/or.po index 0a73c18b79b..1c2967bd647 100644 --- a/po/or.po +++ b/po/or.po @@ -14121,6 +14121,10 @@ msgstr "" msgid "Regular Metafile Viewer" msgstr "" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "" diff --git a/po/pa.po b/po/pa.po index 3e827d9b668..628d843c559 100644 --- a/po/pa.po +++ b/po/pa.po @@ -14121,6 +14121,10 @@ msgstr "" msgid "Regular Metafile Viewer" msgstr "" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "" diff --git a/po/pl.po b/po/pl.po index 9c9be91f4ec..74244ead306 100644 --- a/po/pl.po +++ b/po/pl.po @@ -14888,6 +14888,10 @@ msgstr "Przesuń w &prawo" msgid "Regular Metafile Viewer" msgstr "Przeglądarka zwykłych metaplików" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Czekanie na program" diff --git a/po/pt_BR.po b/po/pt_BR.po index 448ea1fe39e..81ef63bf0eb 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -14849,6 +14849,10 @@ msgstr "&Direita" msgid "Regular Metafile Viewer" msgstr "Visualizador de Metafiles Regulares" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Esperando o programa" diff --git a/po/pt_PT.po b/po/pt_PT.po index 520d5e3b745..e9da7001781 100644 --- a/po/pt_PT.po +++ b/po/pt_PT.po @@ -14851,6 +14851,10 @@ msgstr "&Direita" msgid "Regular Metafile Viewer" msgstr "Visualizador Regular de Ficheiros Meta" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "À espera do programa" diff --git a/po/rm.po b/po/rm.po index 316f39d2a6e..b643d543bc6 100644 --- a/po/rm.po +++ b/po/rm.po @@ -14233,6 +14233,10 @@ msgstr "" msgid "Regular Metafile Viewer" msgstr "" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "" diff --git a/po/ro.po b/po/ro.po index e104f337aeb..6a660cc318a 100644 --- a/po/ro.po +++ b/po/ro.po @@ -14974,6 +14974,10 @@ msgstr "D&reapta" msgid "Regular Metafile Viewer" msgstr "Vizualizator de fișiere metafile normale" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Așteptare program" diff --git a/po/ru.po b/po/ru.po index c69e338e896..85710312d88 100644 --- a/po/ru.po +++ b/po/ru.po @@ -14788,6 +14788,10 @@ msgstr "В&право" msgid "Regular Metafile Viewer" msgstr "Просмотрщик обычных метафайлов" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Ожидание программы" diff --git a/po/si.po b/po/si.po index 346f2979d51..a19d2aae579 100644 --- a/po/si.po +++ b/po/si.po @@ -14082,6 +14082,10 @@ msgstr "දකුණ (&R)" msgid "Regular Metafile Viewer" msgstr "සාමාන්‍ය මෙටාගොනුව දක්වනය" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "" diff --git a/po/sk.po b/po/sk.po index 284872f7849..e47d8882b87 100644 --- a/po/sk.po +++ b/po/sk.po @@ -14562,6 +14562,10 @@ msgstr "" msgid "Regular Metafile Viewer" msgstr "" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "" diff --git a/po/sl.po b/po/sl.po index 5e535b06b0d..53c30bfcf1d 100644 --- a/po/sl.po +++ b/po/sl.po @@ -15204,6 +15204,10 @@ msgstr "D&esno" msgid "Regular Metafile Viewer" msgstr "Običajni pregledovalnik datotek meta" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Čakanje na program" diff --git a/po/sr_RS@cyrillic.po b/po/sr_RS@cyrillic.po index e0e6614b724..d468316139c 100644 --- a/po/sr_RS@cyrillic.po +++ b/po/sr_RS@cyrillic.po @@ -14962,6 +14962,10 @@ msgstr "Десна ивица" msgid "Regular Metafile Viewer" msgstr "" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Чекање програма" diff --git a/po/sr_RS@latin.po b/po/sr_RS@latin.po index e872d12f03a..18fd379b2ae 100644 --- a/po/sr_RS@latin.po +++ b/po/sr_RS@latin.po @@ -15136,6 +15136,10 @@ msgstr "Desna ivica" msgid "Regular Metafile Viewer" msgstr "" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Čekanje programa" diff --git a/po/sv.po b/po/sv.po index 2349afa7c10..de0ac02e657 100644 --- a/po/sv.po +++ b/po/sv.po @@ -14842,6 +14842,10 @@ msgstr "&Höger" msgid "Regular Metafile Viewer" msgstr "Vanlig metafilvisare" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Väntar på program" diff --git a/po/te.po b/po/te.po index 9e72aaab439..9179aa7ba87 100644 --- a/po/te.po +++ b/po/te.po @@ -14121,6 +14121,10 @@ msgstr "" msgid "Regular Metafile Viewer" msgstr "" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "" diff --git a/po/th.po b/po/th.po index 499a3192540..1d02c2f34d1 100644 --- a/po/th.po +++ b/po/th.po @@ -14423,6 +14423,10 @@ msgstr "" msgid "Regular Metafile Viewer" msgstr "" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "" diff --git a/po/tr.po b/po/tr.po index 855e61a0dbd..9feb1827813 100644 --- a/po/tr.po +++ b/po/tr.po @@ -14788,6 +14788,10 @@ msgstr "S&ağ" msgid "Regular Metafile Viewer" msgstr "Genel Meta Dosya Görüntüleyicisi" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Program Bekleniyor" diff --git a/po/uk.po b/po/uk.po index 35ac6259258..dc764986bfe 100644 --- a/po/uk.po +++ b/po/uk.po @@ -14879,6 +14879,10 @@ msgstr "В&право" msgid "Regular Metafile Viewer" msgstr "Переглядач звичайних метафайлів" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "Очікування програми" diff --git a/po/wa.po b/po/wa.po index 58588b51de1..9cf530e4705 100644 --- a/po/wa.po +++ b/po/wa.po @@ -14314,6 +14314,10 @@ msgstr "" msgid "Regular Metafile Viewer" msgstr "" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "" diff --git a/po/wine.pot b/po/wine.pot index 9abe04e62ae..8ce0245a908 100644 --- a/po/wine.pot +++ b/po/wine.pot @@ -14043,6 +14043,10 @@ msgstr "" msgid "Regular Metafile Viewer" msgstr "" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "" diff --git a/po/zh_CN.po b/po/zh_CN.po index 68186403798..55bbf1faf43 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -14529,6 +14529,10 @@ msgstr "右(&R)" msgid "Regular Metafile Viewer" msgstr "普通 Metafile 阅读器" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "正在等待程序" diff --git a/po/zh_TW.po b/po/zh_TW.po index 9fb2619a828..d29d994dc10 100644 --- a/po/zh_TW.po +++ b/po/zh_TW.po @@ -15121,6 +15121,10 @@ msgstr "右(&R)" msgid "Regular Metafile Viewer" msgstr "普通 Metafile 閱讀器" +#: view.rc:50 +msgid "Metafiles (*.wmf, *.emf)" +msgstr "" + #: wineboot.rc:31 msgid "Waiting for Program" msgstr "等候程式" diff --git a/programs/view/resource.h b/programs/view/resource.h index 79326879fdc..1cfaf5fca11 100644 --- a/programs/view/resource.h +++ b/programs/view/resource.h @@ -19,6 +19,7 @@ #include #define IDS_DESCRIPTION 2 +#define IDS_OPEN_META_STRING 3 #define IDI_APPICON 101 #define IDM_EXIT 1000 #define IDM_OPEN 502 diff --git a/programs/view/view.c b/programs/view/view.c index 319152957e7..b944237dd62 100644 --- a/programs/view/view.c +++ b/programs/view/view.c @@ -18,10 +18,11 @@ #include #include -#include "resource.h" - #include +#include "resource.h" +#include "wine/unicode.h" + static HINSTANCE hInst; static HWND hMainWnd; static WCHAR szAppName[5] = {'V','i','e','w',0}; @@ -51,11 +52,16 @@ typedef struct static BOOL FileOpen(HWND hWnd, WCHAR *fn, int fnsz) { - static const WCHAR filter[] = {'M','e','t','a','f','i','l','e','s','\0','*','.','w','m','f',';','*','.','e','m','f','\0',0}; + WCHAR filter[120], metafileFilter[100]; + static const WCHAR filterW[] = {'%','s','%','c','*','.','w','m','f',';','*','.','e','m','f','%','c',0}; OPENFILENAMEW ofn = { sizeof(OPENFILENAMEW), 0, 0, NULL, NULL, 0, 0, NULL, fnsz, NULL, 0, NULL, NULL, OFN_SHOWHELP, 0, 0, NULL, 0, NULL }; + + LoadStringW( hInst, IDS_OPEN_META_STRING, metafileFilter, ARRAY_SIZE(metafileFilter) ); + snprintfW( filter, ARRAY_SIZE(filter), filterW, metafileFilter, 0, 0 ); + ofn.lpstrFilter = filter; ofn.hwndOwner = hWnd; ofn.lpstrFile = fn; diff --git a/programs/view/view.rc b/programs/view/view.rc index 478bc018685..39971dd555f 100644 --- a/programs/view/view.rc +++ b/programs/view/view.rc @@ -46,4 +46,5 @@ END STRINGTABLE BEGIN IDS_DESCRIPTION "Regular Metafile Viewer" + IDS_OPEN_META_STRING "Metafiles (*.wmf, *.emf)" END