print header/footer "&PT" option uses English word "of"

VERIFIED INVALID

Status

()

VERIFIED INVALID
17 years ago
17 years ago

People

(Reporter: aeoespam, Assigned: rods)

Tracking

({intl})

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

17 years ago
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);
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: intl
Reassigning to Rod.
Assignee: dcone → rods
(Assignee)

Comment 2

17 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
Last Resolved: 17 years ago
Resolution: --- → INVALID

Comment 3

17 years ago
verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.