Commit 5eec81b8 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

notepad: Fix a string resource so its format placeholders can be reordered.

parent 887c1c58
......@@ -8813,10 +8813,11 @@ msgid "Unicode (UTF-8)"
msgstr "يونيكود (UTF-16)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -8954,9 +8954,9 @@ msgstr ""
#: notepad.rc:99
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9286,10 +9286,11 @@ msgid "Unicode (UTF-8)"
msgstr ""
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9332,9 +9332,9 @@ msgstr ""
#: notepad.rc:99
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9403,10 +9403,11 @@ msgid "Unicode (UTF-8)"
msgstr "Unicode (UTF-16)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9273,10 +9273,11 @@ msgid "Unicode (UTF-8)"
msgstr "Unicode (UTF-8)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -8829,9 +8829,9 @@ msgstr ""
#: notepad.rc:99
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9024,9 +9024,9 @@ msgstr ""
#: notepad.rc:99
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9194,16 +9194,16 @@ msgstr "Unicode (UTF-8)"
#: notepad.rc:99
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
msgstr ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -8972,9 +8972,9 @@ msgstr ""
#: notepad.rc:99
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9574,10 +9574,11 @@ msgid "Unicode (UTF-8)"
msgstr "Unicode (UTF-16)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -8816,10 +8816,11 @@ msgid "Unicode (UTF-8)"
msgstr "یونی‌کد (UTF-16)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9059,9 +9059,9 @@ msgstr ""
#: notepad.rc:99
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9293,10 +9293,11 @@ msgid "Unicode (UTF-8)"
msgstr "Unicode (UTF-8)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9267,10 +9267,11 @@ msgid "Unicode (UTF-8)"
msgstr "יוניקוד (UTF-8)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -8699,9 +8699,9 @@ msgstr ""
#: notepad.rc:99
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9281,9 +9281,9 @@ msgstr ""
#: notepad.rc:99
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9249,10 +9249,11 @@ msgid "Unicode (UTF-8)"
msgstr "Unicode (UTF-8)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9196,10 +9196,11 @@ msgid "Unicode (UTF-8)"
msgstr "Unicode (UTF-8)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9163,10 +9163,11 @@ msgid "Unicode (UTF-8)"
msgstr "유니코드 (UTF-8)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9215,10 +9215,11 @@ msgid "Unicode (UTF-8)"
msgstr "Unikodas (UTF-8)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -8699,9 +8699,9 @@ msgstr ""
#: notepad.rc:99
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9445,10 +9445,11 @@ msgid "Unicode (UTF-8)"
msgstr "Unicode (UTF-16)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9318,10 +9318,11 @@ msgid "Unicode (UTF-8)"
msgstr "Unicode (UTF-16)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -8699,9 +8699,9 @@ msgstr ""
#: notepad.rc:99
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -8699,9 +8699,9 @@ msgstr ""
#: notepad.rc:99
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9236,10 +9236,11 @@ msgid "Unicode (UTF-8)"
msgstr "Unicode (UTF-8)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9508,10 +9508,11 @@ msgid "Unicode (UTF-8)"
msgstr "Unicode (UTF-16)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9526,10 +9526,11 @@ msgid "Unicode (UTF-8)"
msgstr "Unicode (UTF-16)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -8747,9 +8747,9 @@ msgstr ""
#: notepad.rc:99
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9755,10 +9755,11 @@ msgid "Unicode (UTF-8)"
msgstr "Unicode (UTF-16)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9216,10 +9216,11 @@ msgid "Unicode (UTF-8)"
msgstr "Юникод (UTF-8)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -8837,9 +8837,9 @@ msgstr ""
#: notepad.rc:99
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9221,10 +9221,11 @@ msgid "Unicode (UTF-8)"
msgstr "Unicode (UTF-8)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9135,10 +9135,11 @@ msgid "Unicode (UTF-8)"
msgstr "Уникод (UTF-16)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9196,10 +9196,11 @@ msgid "Unicode (UTF-8)"
msgstr "Unikod (UTF-16)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9176,10 +9176,11 @@ msgid "Unicode (UTF-8)"
msgstr "Unicode (UTF-8)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -8699,9 +8699,9 @@ msgstr ""
#: notepad.rc:99
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -8845,9 +8845,9 @@ msgstr ""
#: notepad.rc:99
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9450,9 +9450,9 @@ msgstr ""
#: notepad.rc:99
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9168,10 +9168,11 @@ msgid "Unicode (UTF-8)"
msgstr "Юнікод (UTF-8)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -8791,9 +8791,9 @@ msgstr ""
#: notepad.rc:99
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -8672,9 +8672,9 @@ msgstr ""
#: notepad.rc:99
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9101,10 +9101,11 @@ msgid "Unicode (UTF-8)"
msgstr "Unicode (UTF-16)"
#: notepad.rc:99
#, fuzzy
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -9140,9 +9140,9 @@ msgstr ""
#: notepad.rc:99
msgid ""
"%s\n"
"%1\n"
"This file contains Unicode characters which will be lost if\n"
"you save this file in the %s encoding.\n"
"you save this file in the %2 encoding.\n"
"To keep these characters, click Cancel, and then select\n"
"one of the Unicode options in the Encoding drop down list.\n"
"Continue?"
......
......@@ -153,19 +153,25 @@ static int AlertFileNotSaved(LPCWSTR szFileName)
static int AlertUnicodeCharactersLost(LPCWSTR szFileName)
{
WCHAR szCaption[MAX_STRING_LEN];
WCHAR szMsgFormat[MAX_STRING_LEN];
WCHAR szEnc[MAX_STRING_LEN];
WCHAR szMsg[ARRAY_SIZE(szMsgFormat) + MAX_PATH + ARRAY_SIZE(szEnc)];
WCHAR szCaption[MAX_STRING_LEN];
WCHAR* szMsg;
DWORD_PTR args[2];
int rc;
LoadStringW(Globals.hInstance, STRING_NOTEPAD, szCaption,
ARRAY_SIZE(szCaption));
LoadStringW(Globals.hInstance, STRING_LOSS_OF_UNICODE_CHARACTERS,
szMsgFormat, ARRAY_SIZE(szMsgFormat));
load_encoding_name(ENCODING_ANSI, szEnc, ARRAY_SIZE(szEnc));
wnsprintfW(szMsg, ARRAY_SIZE(szMsg), szMsgFormat, szFileName, szEnc);
LoadStringW(Globals.hInstance, STRING_NOTEPAD, szCaption,
ARRAY_SIZE(szCaption));
return MessageBoxW(Globals.hMainWnd, szMsg, szCaption,
MB_OKCANCEL|MB_ICONEXCLAMATION);
args[0] = (DWORD_PTR)szFileName;
args[1] = (DWORD_PTR)szEnc;
FormatMessageW(FORMAT_MESSAGE_FROM_STRING|FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_ARGUMENT_ARRAY, szMsgFormat, 0, 0, (LPWSTR)&szMsg, 0, (__ms_va_list*)args);
rc = MessageBoxW(Globals.hMainWnd, szMsg, szCaption,
MB_OKCANCEL|MB_ICONEXCLAMATION);
LocalFree(szMsg);
return rc;
}
/**
......
......@@ -91,9 +91,9 @@ STRING_UNICODE_LE, "Unicode (UTF-16)"
STRING_UNICODE_BE, "Unicode (UTF-16 big-endian)"
STRING_UTF8, "Unicode (UTF-8)"
STRING_LOSS_OF_UNICODE_CHARACTERS, "%s\n\
STRING_LOSS_OF_UNICODE_CHARACTERS, "%1\n\
This file contains Unicode characters which will be lost if\n\
you save this file in the %s encoding.\n\
you save this file in the %2 encoding.\n\
To keep these characters, click Cancel, and then select\n\
one of the Unicode options in the Encoding drop down list.\n\
Continue?"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment