Closed Bug 285911 Opened 19 years ago Closed 19 years ago

XPrint hardcodes english string with literal "Mozilla"

Categories

(Core Graveyard :: Printing: Xprint, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Biesinger, Assigned: masaki.katakai)

References

Details

(Keywords: l12y)

Attachments

(3 files)

this string was added by gisburn in Bug 72087.
http://lxr.mozilla.org/seamonkey/source/gfx/src/xprint/nsXPrintContext.cpp#859
has a hardcoded english string... it should not contain a literal Mozilla, and
it should be localizable.
AFAIU the code normal users will never see the string because it just sets the
print job title as a fallback when the document title couldn't be determined
(much like the JS console gives error messages in English even on a localized
install). Changing it to full localization would probably be overkill.

So this patch just changes the appname similarly to the changes in
xpfe/bootstrap/. If I could get Xprint running I could actually test that is
does what I think it does. At least it compiles.
Ahem, sorry. This one is probably more like it...
this sucks from a GRE viewpoint... maybe it should be just "Document without title"?
Do you mean that if GRE is shipped seperately MOZ_APP_DISPLAYNAME will not be
defined? Anyway, here is the one line patch to just remove "Mozilla". Use
whichever you think is best. :-)
Flags: blocking1.8b2?
lets get this reviewed and checked-in early in the beta3 cycle.
Flags: blocking1.8b3+
Flags: blocking1.8b2?
Flags: blocking1.8b2-
Attachment #183036 - Flags: review?(roland.mainz)
Flags: blocking1.8b3+ → blocking1.8b3-
Comment on attachment 183036 [details] [diff] [review]
Just remove "Mozilla" from the string (Checked in)

No sign of roland
Attachment #183036 - Flags: superreview?(roc)
Attachment #183036 - Flags: review?(roland.mainz)
Attachment #183036 - Flags: review?(roc)
Attachment #183036 - Flags: superreview?(roc)
Attachment #183036 - Flags: superreview+
Attachment #183036 - Flags: review?(roc)
Attachment #183036 - Flags: review+
Comment on attachment 183036 [details] [diff] [review]
Just remove "Mozilla" from the string (Checked in)

approving trivial fix
Attachment #183036 - Flags: approval1.8b3+
Comment on attachment 183036 [details] [diff] [review]
Just remove "Mozilla" from the string (Checked in)

Checking in gfx/src/xprint/nsXPrintContext.cpp;
new revision: 1.52; previous revision: 1.51
done
Attachment #183036 - Attachment description: Just remove "Mozilla" from the string → Just remove "Mozilla" from the string (Checked in)
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: