From 6aacb090f6bad8f3109cea710cc3aab462eb97d4 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Fri, 21 Oct 2011 09:42:18 +0200 Subject: [PATCH] attrib: Use FormatMessageW() for better internationalization support. --- po/ar.po | 9 +++++++-- po/bg.po | 9 +++++++-- po/ca.po | 9 +++++++-- po/cs.po | 11 ++++++++--- po/da.po | 9 +++++++-- po/de.po | 9 +++++++-- po/el.po | 9 +++++++-- po/en.po | 10 +++++++--- po/en_US.po | 10 +++++++--- po/eo.po | 9 +++++++-- po/es.po | 9 +++++++-- po/fa.po | 9 +++++++-- po/fi.po | 9 +++++++-- po/fr.po | 9 +++++++-- po/he.po | 9 +++++++-- po/hi.po | 8 ++++++-- po/hu.po | 9 +++++++-- po/it.po | 9 +++++++-- po/ja.po | 9 +++++++-- po/ko.po | 9 +++++++-- po/lt.po | 9 +++++++-- po/ml.po | 8 ++++++-- po/nb_NO.po | 11 ++++++++--- po/nl.po | 9 +++++++-- po/or.po | 8 ++++++-- po/pa.po | 8 ++++++-- po/pl.po | 9 +++++++-- po/pt_BR.po | 9 +++++++-- po/pt_PT.po | 11 ++++++++--- po/rm.po | 8 ++++++-- po/ro.po | 9 +++++++-- po/ru.po | 9 +++++++-- po/sk.po | 9 +++++++-- po/sl.po | 9 +++++++-- po/sr_RS@cyrillic.po | 9 +++++++-- po/sr_RS@latin.po | 9 +++++++-- po/sv.po | 9 +++++++-- po/te.po | 8 ++++++-- po/th.po | 9 +++++++-- po/tr.po | 11 ++++++++--- po/uk.po | 9 +++++++-- po/wa.po | 9 +++++++-- po/wine.pot | 8 ++++++-- po/zh_CN.po | 9 +++++++-- po/zh_TW.po | 9 +++++++-- programs/attrib/attrib.c | 18 ++++++++++-------- programs/attrib/attrib.rc | 2 +- 47 files changed, 323 insertions(+), 105 deletions(-) diff --git a/po/ar.po b/po/ar.po index cae67b7a2e9..8d2019e953c 100644 --- a/po/ar.po +++ b/po/ar.po @@ -7519,9 +7519,9 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 +#: attrib.rc:28 #, fuzzy -msgid "%s: File Not Found\n" +msgid "%1: File Not Found\n" msgstr "تعذّر إيجاد '%s'." #: attrib.rc:47 @@ -7994,6 +7994,11 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +#, fuzzy +msgid "%s: File Not Found\n" +msgstr "تعذّر إيجاد '%s'." + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/bg.po b/po/bg.po index bebeeb1f397..7595e19da32 100644 --- a/po/bg.po +++ b/po/bg.po @@ -7638,9 +7638,9 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 +#: attrib.rc:28 #, fuzzy -msgid "%s: File Not Found\n" +msgid "%1: File Not Found\n" msgstr "Файлът не е намерен" #: attrib.rc:47 @@ -8112,6 +8112,11 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +#, fuzzy +msgid "%s: File Not Found\n" +msgstr "Файлът не е намерен" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/ca.po b/po/ca.po index 8769236ab38..7c9823edb39 100644 --- a/po/ca.po +++ b/po/ca.po @@ -7711,8 +7711,9 @@ msgstr "" "Encara no Implementat\n" "\n" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +#, fuzzy +msgid "%1: File Not Found\n" msgstr "%s: Fitxer No Trobat\n" #: attrib.rc:47 @@ -8411,6 +8412,10 @@ msgstr "Falta la paràmetre\n" msgid "Syntax error\n" msgstr "Error de sintaxi\n" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "%s: Fitxer No Trobat\n" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "Cap ajuda disponible per %s\n" diff --git a/po/cs.po b/po/cs.po index 7445958a75a..aeb4c69d74e 100644 --- a/po/cs.po +++ b/po/cs.po @@ -7845,9 +7845,10 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" -msgstr "" +#: attrib.rc:28 +#, fuzzy +msgid "%1: File Not Found\n" +msgstr "Soubor nebyl nalezen" #: attrib.rc:47 msgid "" @@ -8491,6 +8492,10 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/da.po b/po/da.po index 5e2d8f4fdd0..61aeb9f7f38 100644 --- a/po/da.po +++ b/po/da.po @@ -7902,8 +7902,9 @@ msgstr "" "Ikke implementeret endnu\n" "\n" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +#, fuzzy +msgid "%1: File Not Found\n" msgstr "%s : Filen ikke fundet\n" #: attrib.rc:47 @@ -8535,6 +8536,10 @@ msgstr "Argument mangler\n" msgid "Syntax error\n" msgstr "Syntaks fejl\n" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "%s : Filen ikke fundet\n" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "Ingen hjælp tilgængelig for %s\n" diff --git a/po/de.po b/po/de.po index d808d22fd12..789b008d39a 100644 --- a/po/de.po +++ b/po/de.po @@ -7724,8 +7724,9 @@ msgstr "" "Noch nicht implementiert\n" "\n" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +#, fuzzy +msgid "%1: File Not Found\n" msgstr "%s : Datei nicht gefunden\n" #: attrib.rc:47 @@ -8439,6 +8440,10 @@ msgstr "Argument fehlt\n" msgid "Syntax error\n" msgstr "Syntaxfehler\n" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "%s : Datei nicht gefunden\n" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "Hilfe für %s ist nicht verfügbar\n" diff --git a/po/el.po b/po/el.po index 3d5e6dada16..1fa901cdc29 100644 --- a/po/el.po +++ b/po/el.po @@ -7544,9 +7544,9 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 +#: attrib.rc:28 #, fuzzy -msgid "%s: File Not Found\n" +msgid "%1: File Not Found\n" msgstr "Το αρχείο δε βρέθηκε" #: attrib.rc:47 @@ -8018,6 +8018,11 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +#, fuzzy +msgid "%s: File Not Found\n" +msgstr "Το αρχείο δε βρέθηκε" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/en.po b/po/en.po index 4dfcf7b9334..1aaa5997abd 100644 --- a/po/en.po +++ b/po/en.po @@ -7574,9 +7574,9 @@ msgstr "" "Not Yet Implemented\n" "\n" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" -msgstr "%s: File Not Found\n" +#: attrib.rc:28 +msgid "%1: File Not Found\n" +msgstr "%1: File Not Found\n" #: attrib.rc:47 msgid "" @@ -8210,6 +8210,10 @@ msgstr "Argument missing\n" msgid "Syntax error\n" msgstr "Syntax error\n" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "%s: File Not Found\n" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "No help available for %s\n" diff --git a/po/en_US.po b/po/en_US.po index a7c682ec62b..f0239d59219 100644 --- a/po/en_US.po +++ b/po/en_US.po @@ -7672,9 +7672,9 @@ msgstr "" "Not Yet Implemented\n" "\n" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" -msgstr "%s: File Not Found\n" +#: attrib.rc:28 +msgid "%1: File Not Found\n" +msgstr "%1: File Not Found\n" #: attrib.rc:47 msgid "" @@ -8352,6 +8352,10 @@ msgstr "Argument missing\n" msgid "Syntax error\n" msgstr "Syntax error\n" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "%s: File Not Found\n" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "No help available for %s\n" diff --git a/po/eo.po b/po/eo.po index bd72adc69a8..813120fe018 100644 --- a/po/eo.po +++ b/po/eo.po @@ -7640,9 +7640,9 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 +#: attrib.rc:28 #, fuzzy -msgid "%s: File Not Found\n" +msgid "%1: File Not Found\n" msgstr "Dosiero ne estis trovita" #: attrib.rc:47 @@ -8120,6 +8120,11 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +#, fuzzy +msgid "%s: File Not Found\n" +msgstr "Dosiero ne estis trovita" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/es.po b/po/es.po index 8a59f400b93..32da5e172b5 100644 --- a/po/es.po +++ b/po/es.po @@ -8063,8 +8063,9 @@ msgstr "" "No implementado\n" "\n" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +#, fuzzy +msgid "%1: File Not Found\n" msgstr "%s : Archivo no encontrado\n" #: attrib.rc:47 @@ -8729,6 +8730,10 @@ msgstr "Argumento faltante\n" msgid "Syntax error\n" msgstr "Error de sintaxis\n" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "%s : Archivo no encontrado\n" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "No hay ayuda disponible para %s\n" diff --git a/po/fa.po b/po/fa.po index 852b1fcf2d5..1e3b0187f80 100644 --- a/po/fa.po +++ b/po/fa.po @@ -7521,9 +7521,9 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 +#: attrib.rc:28 #, fuzzy -msgid "%s: File Not Found\n" +msgid "%1: File Not Found\n" msgstr "'%s' پیدا نشد." #: attrib.rc:47 @@ -7996,6 +7996,11 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +#, fuzzy +msgid "%s: File Not Found\n" +msgstr "'%s' پیدا نشد." + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/fi.po b/po/fi.po index 6369e63aa50..887a6066e00 100644 --- a/po/fi.po +++ b/po/fi.po @@ -7743,9 +7743,9 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 +#: attrib.rc:28 #, fuzzy -msgid "%s: File Not Found\n" +msgid "%1: File Not Found\n" msgstr "Tiedostoa ei löydy" #: attrib.rc:47 @@ -8223,6 +8223,11 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +#, fuzzy +msgid "%s: File Not Found\n" +msgstr "Tiedostoa ei löydy" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/fr.po b/po/fr.po index 2117d87046e..f10b9dc8925 100644 --- a/po/fr.po +++ b/po/fr.po @@ -7733,8 +7733,9 @@ msgstr "" "Pas encore implémenté\n" "\n" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +#, fuzzy +msgid "%1: File Not Found\n" msgstr "%s : fichier non trouvé\n" #: attrib.rc:47 @@ -8449,6 +8450,10 @@ msgstr "Argument manquant\n" msgid "Syntax error\n" msgstr "Erreur de syntaxe\n" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "%s : fichier non trouvé\n" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "Pas d'aide disponible pour %s\n" diff --git a/po/he.po b/po/he.po index 35a3255dad1..6961a9742f5 100644 --- a/po/he.po +++ b/po/he.po @@ -7777,8 +7777,9 @@ msgstr "" "Not Yet Implemented\n" "\n" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +#, fuzzy +msgid "%1: File Not Found\n" msgstr "%s: File Not Found\n" #: attrib.rc:47 @@ -8422,6 +8423,10 @@ msgstr "Argument missing\n" msgid "Syntax error\n" msgstr "Syntax error\n" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "%s: File Not Found\n" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "No help available for %s\n" diff --git a/po/hi.po b/po/hi.po index 7042ceb553c..f3a858d923e 100644 --- a/po/hi.po +++ b/po/hi.po @@ -7431,8 +7431,8 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +msgid "%1: File Not Found\n" msgstr "" #: attrib.rc:47 @@ -7905,6 +7905,10 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/hu.po b/po/hu.po index 6d5f80fbb70..542766817a9 100644 --- a/po/hu.po +++ b/po/hu.po @@ -7939,9 +7939,9 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 +#: attrib.rc:28 #, fuzzy -msgid "%s: File Not Found\n" +msgid "%1: File Not Found\n" msgstr "Fájl nem található" #: attrib.rc:47 @@ -8419,6 +8419,11 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +#, fuzzy +msgid "%s: File Not Found\n" +msgstr "Fájl nem található" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/it.po b/po/it.po index ab257688dc8..082848c6e1e 100644 --- a/po/it.po +++ b/po/it.po @@ -7700,8 +7700,9 @@ msgstr "" "Non ancora implementato\n" "\n" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +#, fuzzy +msgid "%1: File Not Found\n" msgstr "%s : File non trovato\n" #: attrib.rc:47 @@ -8403,6 +8404,10 @@ msgstr "Manca un parametro\n" msgid "Syntax error\n" msgstr "Errore di sintassi\n" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "%s : File non trovato\n" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "Nessun aiuto disponibile per %s\n" diff --git a/po/ja.po b/po/ja.po index 3d1f2b2736f..ba313d2644c 100644 --- a/po/ja.po +++ b/po/ja.po @@ -7647,8 +7647,9 @@ msgstr "" "まだ実装されていません\n" "\n" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +#, fuzzy +msgid "%1: File Not Found\n" msgstr "%s: ファイルが見つかりません\n" #: attrib.rc:47 @@ -8336,6 +8337,10 @@ msgstr "引数がありません\n" msgid "Syntax error\n" msgstr "構文エラー\n" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "%s: ファイルが見つかりません\n" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "%s に対するヘルプはありません\n" diff --git a/po/ko.po b/po/ko.po index ffd3a2869e7..3316a4cde12 100644 --- a/po/ko.po +++ b/po/ko.po @@ -7640,8 +7640,9 @@ msgstr "" "아직 구현되지 않았습니다\n" "\n" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +#, fuzzy +msgid "%1: File Not Found\n" msgstr "%s :파일을 찾을 수 없습니다\n" #: attrib.rc:47 @@ -8319,6 +8320,10 @@ msgstr "인수가 없습니다\n" msgid "Syntax error\n" msgstr "문법 오류\n" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "%s :파일을 찾을 수 없습니다\n" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "%s를 위한 어떠한 도움말도 찾을 수 없습니다\n" diff --git a/po/lt.po b/po/lt.po index 697a7470e76..8ec0c4f13c4 100644 --- a/po/lt.po +++ b/po/lt.po @@ -7686,8 +7686,9 @@ msgstr "" "Dar nerealizuota\n" "\n" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +#, fuzzy +msgid "%1: File Not Found\n" msgstr "%s: failas nerastas\n" #: attrib.rc:47 @@ -8364,6 +8365,10 @@ msgstr "Trūksta argumento\n" msgid "Syntax error\n" msgstr "Sintaksės klaida\n" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "%s: failas nerastas\n" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "Nėra informacijos apie %s\n" diff --git a/po/ml.po b/po/ml.po index 028c28178c0..ff4afc1a5b2 100644 --- a/po/ml.po +++ b/po/ml.po @@ -7431,8 +7431,8 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +msgid "%1: File Not Found\n" msgstr "" #: attrib.rc:47 @@ -7905,6 +7905,10 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/nb_NO.po b/po/nb_NO.po index 0025a22a559..e0a1c817dde 100644 --- a/po/nb_NO.po +++ b/po/nb_NO.po @@ -7953,9 +7953,10 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" -msgstr "" +#: attrib.rc:28 +#, fuzzy +msgid "%1: File Not Found\n" +msgstr "Fant ikke filen\n" #: attrib.rc:47 msgid "" @@ -8606,6 +8607,10 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/nl.po b/po/nl.po index 3bcb95804dc..ea2429a4d7c 100644 --- a/po/nl.po +++ b/po/nl.po @@ -7811,8 +7811,9 @@ msgstr "" "Nog niet geïmplementeerd\n" "\n" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +#, fuzzy +msgid "%1: File Not Found\n" msgstr "%s : Bestand Niet Gevonden\n" #: attrib.rc:47 @@ -8465,6 +8466,10 @@ msgstr "Argument ontbreekt\n" msgid "Syntax error\n" msgstr "Fout in de syntax\n" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "%s : Bestand Niet Gevonden\n" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "Geen help beschikbaar voor %s\n" diff --git a/po/or.po b/po/or.po index 37819e2ce6c..85cc3a43c22 100644 --- a/po/or.po +++ b/po/or.po @@ -7431,8 +7431,8 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +msgid "%1: File Not Found\n" msgstr "" #: attrib.rc:47 @@ -7905,6 +7905,10 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/pa.po b/po/pa.po index b4b4680e2c1..7a59974abab 100644 --- a/po/pa.po +++ b/po/pa.po @@ -7431,8 +7431,8 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +msgid "%1: File Not Found\n" msgstr "" #: attrib.rc:47 @@ -7905,6 +7905,10 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/pl.po b/po/pl.po index 77efbc80b83..3094eea056a 100644 --- a/po/pl.po +++ b/po/pl.po @@ -7695,8 +7695,9 @@ msgstr "" "Jeszcze niezaimplementowane\n" "\n" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +#, fuzzy +msgid "%1: File Not Found\n" msgstr "%s : Plik nie znaleziony\n" #: attrib.rc:47 @@ -8338,6 +8339,10 @@ msgstr "Brakuje argumentu\n" msgid "Syntax error\n" msgstr "Błąd składni\n" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "%s : Plik nie znaleziony\n" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "Plik pomocy nie istnieje dla %s\n" diff --git a/po/pt_BR.po b/po/pt_BR.po index 55d254cb718..34dabb2ba51 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -7980,8 +7980,9 @@ msgstr "" "Ainda não implementado\n" "\n" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +#, fuzzy +msgid "%1: File Not Found\n" msgstr "%s : Arquivo Não Encontrado\n" #: attrib.rc:47 @@ -8633,6 +8634,10 @@ msgstr "Faltando argumento\n" msgid "Syntax error\n" msgstr "Erro de sintaxe\n" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "%s : Arquivo Não Encontrado\n" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "Sem ajuda disponível para %s\n" diff --git a/po/pt_PT.po b/po/pt_PT.po index 1f98f49707a..d6d4ee7c61d 100644 --- a/po/pt_PT.po +++ b/po/pt_PT.po @@ -7987,9 +7987,10 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" -msgstr "" +#: attrib.rc:28 +#, fuzzy +msgid "%1: File Not Found\n" +msgstr "Ficheiro não encontrado\n" #: attrib.rc:47 msgid "" @@ -8646,6 +8647,10 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/rm.po b/po/rm.po index c9e0b3ee21e..a8a320a4f98 100644 --- a/po/rm.po +++ b/po/rm.po @@ -7464,8 +7464,8 @@ msgid "" "\n" msgstr "Na implementa" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +msgid "%1: File Not Found\n" msgstr "" #: attrib.rc:47 @@ -7939,6 +7939,10 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/ro.po b/po/ro.po index aeb7bf73870..d2c74367897 100644 --- a/po/ro.po +++ b/po/ro.po @@ -8229,8 +8229,9 @@ msgstr "" "Încă neimplementat\n" "\n" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +#, fuzzy +msgid "%1: File Not Found\n" msgstr "%s : fișier negăsit\n" #: attrib.rc:47 @@ -8865,6 +8866,10 @@ msgstr "Argument lipsă\n" msgid "Syntax error\n" msgstr "Eroare de sintaxă\n" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "%s : fișier negăsit\n" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "Nu există ajutor pentru %s\n" diff --git a/po/ru.po b/po/ru.po index 5d88e77a87e..dc3abd74bea 100644 --- a/po/ru.po +++ b/po/ru.po @@ -7665,8 +7665,9 @@ msgstr "" "Ещё не выполнено\n" "\n" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +#, fuzzy +msgid "%1: File Not Found\n" msgstr "%s : Файл не найден\n" #: attrib.rc:47 @@ -8352,6 +8353,10 @@ msgstr "Отсутствует аргумент\n" msgid "Syntax error\n" msgstr "Синтаксическая ошибка\n" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "%s : Файл не найден\n" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "Справка для %s отсутствует\n" diff --git a/po/sk.po b/po/sk.po index df2742e6e32..3d94977b4c9 100644 --- a/po/sk.po +++ b/po/sk.po @@ -7549,9 +7549,9 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 +#: attrib.rc:28 #, fuzzy -msgid "%s: File Not Found\n" +msgid "%1: File Not Found\n" msgstr "Súbor nenájdený" #: attrib.rc:47 @@ -8024,6 +8024,11 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +#, fuzzy +msgid "%s: File Not Found\n" +msgstr "Súbor nenájdený" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/sl.po b/po/sl.po index 7946548f696..bf679bfad57 100644 --- a/po/sl.po +++ b/po/sl.po @@ -7710,9 +7710,9 @@ msgstr "" "Ni še podprto\n" "\n" -#: attrib.rc:28 cmd.rc:302 +#: attrib.rc:28 #, fuzzy -msgid "%s: File Not Found\n" +msgid "%1: File Not Found\n" msgstr "%s : datoteke ni mogoče najti\n" #: attrib.rc:47 @@ -8363,6 +8363,11 @@ msgstr "Argument manjka\n" msgid "Syntax error\n" msgstr "Skladenjska napaka\n" +#: cmd.rc:302 +#, fuzzy +msgid "%s: File Not Found\n" +msgstr "%s : datoteke ni mogoče najti\n" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "Za ukaz %s pomoč ni na voljo\n" diff --git a/po/sr_RS@cyrillic.po b/po/sr_RS@cyrillic.po index 9a1b8f0f204..b16cecba91b 100644 --- a/po/sr_RS@cyrillic.po +++ b/po/sr_RS@cyrillic.po @@ -7828,9 +7828,9 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 +#: attrib.rc:28 #, fuzzy -msgid "%s: File Not Found\n" +msgid "%1: File Not Found\n" msgstr "Датотека није пронађена" #: attrib.rc:47 @@ -8303,6 +8303,11 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +#, fuzzy +msgid "%s: File Not Found\n" +msgstr "Датотека није пронађена" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/sr_RS@latin.po b/po/sr_RS@latin.po index 4d46980559d..2edcec8189f 100644 --- a/po/sr_RS@latin.po +++ b/po/sr_RS@latin.po @@ -7876,9 +7876,9 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 +#: attrib.rc:28 #, fuzzy -msgid "%s: File Not Found\n" +msgid "%1: File Not Found\n" msgstr "Datoteka nije pronađena" #: attrib.rc:47 @@ -8351,6 +8351,11 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +#, fuzzy +msgid "%s: File Not Found\n" +msgstr "Datoteka nije pronađena" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/sv.po b/po/sv.po index 07655325ca6..05041f0f9dd 100644 --- a/po/sv.po +++ b/po/sv.po @@ -7682,8 +7682,9 @@ msgstr "" "Ännu ej implementerat\n" "\n" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +#, fuzzy +msgid "%1: File Not Found\n" msgstr "%s : kunde inte hitta filen\n" #: attrib.rc:47 @@ -8326,6 +8327,10 @@ msgstr "Argument saknas\n" msgid "Syntax error\n" msgstr "Syntaxfel\n" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "%s : kunde inte hitta filen\n" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "Ingen hjälp tillgänglig för %s\n" diff --git a/po/te.po b/po/te.po index a258621d712..bfde9aefa09 100644 --- a/po/te.po +++ b/po/te.po @@ -7431,8 +7431,8 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +msgid "%1: File Not Found\n" msgstr "" #: attrib.rc:47 @@ -7905,6 +7905,10 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/th.po b/po/th.po index 9213214cb35..1e40a382624 100644 --- a/po/th.po +++ b/po/th.po @@ -7534,9 +7534,9 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 +#: attrib.rc:28 #, fuzzy -msgid "%s: File Not Found\n" +msgid "%1: File Not Found\n" msgstr "ไม่พบแฟ้ม" #: attrib.rc:47 @@ -8014,6 +8014,11 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +#, fuzzy +msgid "%s: File Not Found\n" +msgstr "ไม่พบแฟ้ม" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/tr.po b/po/tr.po index 6b694270146..283794decf6 100644 --- a/po/tr.po +++ b/po/tr.po @@ -7960,9 +7960,10 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" -msgstr "" +#: attrib.rc:28 +#, fuzzy +msgid "%1: File Not Found\n" +msgstr "Dosya bulunamadı" #: attrib.rc:47 msgid "" @@ -8609,6 +8610,10 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/uk.po b/po/uk.po index e3964d2e458..1d10d6c8a44 100644 --- a/po/uk.po +++ b/po/uk.po @@ -7683,8 +7683,9 @@ msgstr "" "Ще не реалізовано\n" "\n" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +#, fuzzy +msgid "%1: File Not Found\n" msgstr "%s : Файл не знайдено\n" #: attrib.rc:47 @@ -8320,6 +8321,10 @@ msgstr "Відсутній аргумент\n" msgid "Syntax error\n" msgstr "Синтаксична помилка\n" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "%s : Файл не знайдено\n" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "Немає довідки для %s\n" diff --git a/po/wa.po b/po/wa.po index 7d3941fdabb..7cceb76ddb2 100644 --- a/po/wa.po +++ b/po/wa.po @@ -7493,9 +7493,9 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 +#: attrib.rc:28 #, fuzzy -msgid "%s: File Not Found\n" +msgid "%1: File Not Found\n" msgstr "'%s' pout nén esse trové." #: attrib.rc:47 @@ -7973,6 +7973,11 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +#, fuzzy +msgid "%s: File Not Found\n" +msgstr "'%s' pout nén esse trové." + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/wine.pot b/po/wine.pot index e13be6dc515..aa5e03ad8a2 100644 --- a/po/wine.pot +++ b/po/wine.pot @@ -7408,8 +7408,8 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 -msgid "%s: File Not Found\n" +#: attrib.rc:28 +msgid "%1: File Not Found\n" msgstr "" #: attrib.rc:47 @@ -7881,6 +7881,10 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +msgid "%s: File Not Found\n" +msgstr "" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/zh_CN.po b/po/zh_CN.po index 47ca60be953..c0904298a8a 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -7778,9 +7778,9 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 +#: attrib.rc:28 #, fuzzy -msgid "%s: File Not Found\n" +msgid "%1: File Not Found\n" msgstr "找不到文件\n" #: attrib.rc:47 @@ -8258,6 +8258,11 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +#, fuzzy +msgid "%s: File Not Found\n" +msgstr "找不到文件\n" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/po/zh_TW.po b/po/zh_TW.po index 8885f999524..26077b5d253 100644 --- a/po/zh_TW.po +++ b/po/zh_TW.po @@ -7819,9 +7819,9 @@ msgid "" "\n" msgstr "" -#: attrib.rc:28 cmd.rc:302 +#: attrib.rc:28 #, fuzzy -msgid "%s: File Not Found\n" +msgid "%1: File Not Found\n" msgstr "找不到檔案" #: attrib.rc:47 @@ -8299,6 +8299,11 @@ msgstr "" msgid "Syntax error\n" msgstr "" +#: cmd.rc:302 +#, fuzzy +msgid "%s: File Not Found\n" +msgstr "找不到檔案" + #: cmd.rc:303 msgid "No help available for %s\n" msgstr "" diff --git a/programs/attrib/attrib.c b/programs/attrib/attrib.c index 0ca64c319b5..1af9e73e4dd 100644 --- a/programs/attrib/attrib.c +++ b/programs/attrib/attrib.c @@ -45,7 +45,7 @@ static WCHAR *ATTRIB_LoadMessage(UINT id) { * and hence required WriteConsoleW to output it, however if file i/o is * redirected, it needs to be WriteFile'd using OEM (not ANSI) format * ========================================================================= */ -static int ATTRIB_wprintf(const WCHAR *format, ...) { +static int __cdecl ATTRIB_wprintf(const WCHAR *format, ...) { static WCHAR *output_bufW = NULL; static char *output_bufA = NULL; @@ -53,7 +53,7 @@ static int ATTRIB_wprintf(const WCHAR *format, ...) { static BOOL traceOutput = FALSE; #define MAX_WRITECONSOLE_SIZE 65535 - va_list parms; + __ms_va_list parms; DWORD nOut; int len; DWORD res = 0; @@ -71,11 +71,13 @@ static int ATTRIB_wprintf(const WCHAR *format, ...) { return 0; } - va_start(parms, format); - len = vsnprintfW(output_bufW, MAX_WRITECONSOLE_SIZE/sizeof(WCHAR), format, parms); - va_end(parms); - if (len < 0) { - WINE_FIXME("String too long.\n"); + __ms_va_start(parms, format); + SetLastError(NO_ERROR); + len = FormatMessageW(FORMAT_MESSAGE_FROM_STRING, format, 0, 0, output_bufW, + MAX_WRITECONSOLE_SIZE/sizeof(*output_bufW), &parms); + __ms_va_end(parms); + if (len == 0 && GetLastError() != NO_ERROR) { + WINE_FIXME("Could not format string: le=%u, fmt=%s\n", GetLastError(), wine_dbgstr_w(format)); return 0; } @@ -178,7 +180,7 @@ int wmain(int argc, WCHAR *argv[]) fd.dwFileAttributes |= FILE_ATTRIBUTE_NORMAL; SetFileAttributesW(name, fd.dwFileAttributes); } else { - static const WCHAR fmt[] = {'%','s',' ',' ',' ','%','s','\n','\0'}; + static const WCHAR fmt[] = {'%','1',' ',' ',' ','%','2','\n','\0'}; if (fd.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN) { flags[0] = 'H'; } diff --git a/programs/attrib/attrib.rc b/programs/attrib/attrib.rc index 858b300dae1..9e2390eb6bd 100644 --- a/programs/attrib/attrib.rc +++ b/programs/attrib/attrib.rc @@ -25,7 +25,7 @@ LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT STRINGTABLE { STRING_NYI, "Not Yet Implemented\n\n" - STRING_FILENOTFOUND, "%s: File Not Found\n" + STRING_FILENOTFOUND, "%1: File Not Found\n" STRING_HELP, "ATTRIB - Displays or changes file attributes.\n\ \n\ -- 2.11.4.GIT