mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Correct punctuation in CSS error reports. b=315250 r+sr=bzbarsky.
This commit is contained in:
parent
babcd89246
commit
84f0a10ddc
@ -37,7 +37,7 @@
|
||||
MimeNotCss=The stylesheet %1$S was not loaded because its MIME type, "%2$S", is not "text/css".
|
||||
MimeNotCssWarn=The stylesheet %1$S was loaded as CSS even though its MIME type, "%2$S", is not "text/css".
|
||||
|
||||
PEUnexpEOF=Unexpected end of file while searching for %1$S.
|
||||
PEUnexpEOF2=Unexpected end of file while searching for %1$S.
|
||||
PEParseRuleWSOnly=Whitespace-only string given to be parsed as rule.
|
||||
PEDeclDropped=Declaration dropped.
|
||||
PEDeclSkipped=Skipped to next declaration.
|
||||
@ -122,7 +122,7 @@ PEEndOfDeclEOF=end of declaration
|
||||
PEImportantEOF=important
|
||||
PEExpectedImportant=Expected 'important' but found '%1$S'.
|
||||
PEBadDeclEnd=Expected ';' to terminate declaration but found '%1$S'.
|
||||
PEBadDeclOrRuleEnd=Expected ';' or '}' to terminate declaration but found '%1$S'.
|
||||
PEInaccessibleProperty=Attempt to use inaccessible property
|
||||
PEBadDeclOrRuleEnd2=Expected ';' or '}' to terminate declaration but found '%1$S'.
|
||||
PEInaccessibleProperty2=Cannot specify value for internal property.
|
||||
PECommentEOF=end of comment
|
||||
SEUnterminatedString=Found unclosed string '%1$S'.
|
||||
|
@ -3329,7 +3329,7 @@ CSSParserImpl::ParseDeclaration(nsresult& aErrorCode,
|
||||
}
|
||||
}
|
||||
if (aCheckForBraces)
|
||||
REPORT_UNEXPECTED_TOKEN(PEBadDeclOrRuleEnd);
|
||||
REPORT_UNEXPECTED_TOKEN(PEBadDeclOrRuleEnd2);
|
||||
else
|
||||
REPORT_UNEXPECTED_TOKEN(PEBadDeclEnd);
|
||||
REPORT_UNEXPECTED(PEDeclDropped);
|
||||
@ -4311,7 +4311,7 @@ PRBool CSSParserImpl::ParseProperty(nsresult& aErrorCode,
|
||||
case eCSSProperty_padding_right_ltr_source:
|
||||
case eCSSProperty_padding_right_rtl_source:
|
||||
// The user can't use these
|
||||
REPORT_UNEXPECTED(PEInaccessibleProperty);
|
||||
REPORT_UNEXPECTED(PEInaccessibleProperty2);
|
||||
return PR_FALSE;
|
||||
|
||||
default: // must be single property
|
||||
|
@ -409,7 +409,7 @@ void nsCSSScanner::ReportUnexpectedEOF(const char* aLookingFor)
|
||||
innerStr.get()
|
||||
};
|
||||
nsXPIDLString str;
|
||||
gStringBundle->FormatStringFromName(NS_LITERAL_STRING("PEUnexpEOF").get(),
|
||||
gStringBundle->FormatStringFromName(NS_LITERAL_STRING("PEUnexpEOF2").get(),
|
||||
params, NS_ARRAY_LENGTH(params),
|
||||
getter_Copies(str));
|
||||
AddToError(str);
|
||||
|
Loading…
Reference in New Issue
Block a user