Closed Bug 109086 Opened 23 years ago Closed 19 years ago

print header/footer needs 'total number of pages' not just &P and &PT

Categories

(Core :: Printing: Output, enhancement, P3)

x86
Linux
enhancement

Tracking

()

RESOLVED FIXED
Future

People

(Reporter: aeoespam, Assigned: rods)

References

Details

This is to help projects that embed mozilla, such as galeon, kmeleon, skipstone,
etc. the &PT code ( which does "x of y" where x=current page, y=total pages in
the print footer) depends on mozilla's internationalization and localization
subsystems, which have problems. A new "total number of pages" code would enable
these projects to do their own internationalization and localization on the
header/footer strings more easily, thus bypassing mozilla's internationalization.

The problems with &PT and mozilla are that it complicates the user experience
for these other projects, and furthermore it doesnt work right. Users of other
projetcs would have to go to the complicated hassle of finding and download not
only the mozilla libraries but the mozilla language packs. however these packs
are outdated for many languages. For example, as of nov 2001 there is not even a
french pack for mozilla 0.9.5. Furthermore, these packs dont work. For example,
i tried out the italian pack on 2001102304 and the &PT code produces a '1$d' or
something on the printed page.

The new code (perhaps &TNOP for total number of pages) would enable an embedding
browser to use its own localization and internationalization subsystem. For
example, on galeon the gettext() stuff could be used something like so:

g_sprintf( str,  gettext("%s of %s"), "&P", "&TNOP" ) ;  
mozPrintOptions.setFooterStrLeft( str );
galeonWrapper->print( mozPrintOptions , etc, etc);
I would make a patch for mozilla to provide this new code, but it takes mozilla
8 hours to compile on my computer and its thus rather impossible to test any
modifications as well as they should be tested, and i am not even sure you would
accept the patch.
cc: rods
Confirming. Enhancement request.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Blocks: 157675
-->
Assignee: dcone → rods
Priority: -- → P3
Target Milestone: --- → Future
It appears this bug might fix the locale issue Bug 157497
On reviewing the patch for bug 272386, I see it contains the feature requested
here. The code is "&L", for "last page" I suppose.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.