Closed
Bug 108109
Opened 23 years ago
Closed 23 years ago
print header/footer "&PT" option uses English word "of"
Categories
(Core :: Printing: Output, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: aeoespam, Assigned: rods)
Details
(Keywords: intl)
This is useless for people who don't speak english. The problem, i believe, is here: mozilla/layout/html/base/src/nsSimplePageSequence.cpp 737 // Doing this here so we only have to go get these formats once 738 SetPageNumberFormat("pagenumber", "%1$d", PR_TRUE); 739 SetPageNumberFormat("pageofpages", "%1$d of %2$d", PR_FALSE);
Updated•23 years ago
|
Assignee | ||
Comment 2•23 years ago
|
||
Please that these are merely default values if localiztion is found. Look at the method itself where the strings are localized: // Helper Function void nsSimplePageSequenceFrame::SetPageNumberFormat(const char* aPropName, const char* aDefPropVal, PRBool aPageNumOnly) { // Doing this here so we only have to go get these formats once nsAutoString pageNumberFormat; // Now go get the Localized Page Formating String nsAutoString propName; propName.AssignWithConversion(aPropName); PRUnichar* uPropName = ToNewUnicode(propName); if (uPropName != nsnull) { nsresult rv = nsFormControlHelper::GetLocalizedString(PRINTING_PROPERTIES, uPropName, pageNumberFormat); if (NS_FAILED(rv)) { // back stop formatting pageNumberFormat.AssignWithConversion(aDefPropVal); } nsMemory::Free(uPropName); } // Sets the format into a static data memeber which will own the memory and free it PRUnichar* uStr = ToNewUnicode(pageNumberFormat); if (uStr != nsnull) { SetPageNumberFormat(uStr, aPageNumOnly); // nsPageFrame will own the memory } } This bug is invalid
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•