Bug 559819 - Change the string id for the isindex prompt. r=l10n.

--HG--
extra : rebase_source : 34212e52674deb7e3c20ef3dab91785d3f70bdf4
This commit is contained in:
Henri Sivonen 2010-04-20 17:19:30 +03:00
parent e8a8915f17
commit 6f32ee7603
3 changed files with 7 additions and 3 deletions

View File

@ -38,7 +38,11 @@ Reset=Reset
Submit=Submit Query
Browse=Browse…
FileUpload=File Upload
IsIndexPrompt=This is a searchable index. Enter search keywords:\u0020
# LOCALIZATION NOTE (IsIndexPromptWithSpace): The last character of the string
# should be a space (U+0020) in most locales. The prompt is followed by an
# input field. The space needs be escaped in the property file to avoid
# trimming.
IsIndexPromptWithSpace=This is a searchable index. Enter search keywords:\u0020
ForgotPostWarning=Form contains enctype=%S, but does not contain method=post. Submitting normally with method=GET and no enctype instead.
ForgotFileEnctypeWarning=Form contains a file input, but is missing method=POST and enctype=multipart/form-data on the form. The file will not be sent.
# LOCALIZATION NOTE (DefaultFormSubject): %S will be replaced with brandShortName

View File

@ -135,7 +135,7 @@ nsIsIndexFrame::UpdatePromptLabel(PRBool aNotify)
// it might not be the string "This is a searchable index. Enter search keywords: "
result =
nsContentUtils::GetLocalizedString(nsContentUtils::eFORMS_PROPERTIES,
"IsIndexPrompt", prompt);
"IsIndexPromptWithSpace", prompt);
}
mTextContent->SetText(prompt, aNotify);

View File

@ -186,7 +186,7 @@ nsHtml5Portability::isIndexPrompt()
nsXPIDLString prompt;
nsresult rv =
nsContentUtils::GetLocalizedString(nsContentUtils::eFORMS_PROPERTIES,
"IsIndexPrompt", prompt);
"IsIndexPromptWithSpace", prompt);
PRUint32 len = prompt.Length();
if (NS_FAILED(rv) || !len) {
// jArray doesn't support dynamically-allocated zero-length arrays