"Image corrupt or truncated" in Error Console is hardcoded (not l10n-friendly)

NEW
Unassigned

Status

()

Core
ImageLib
6 years ago
5 years ago

People

(Reporter: dholbert, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
While trying to reproduce bug 763593, I ran across a few instances of "Error: Image corrupt or truncated" in my Error Console.

That's currently a hardcoded non-localized string, defined in C++ here:
> 105       nsAutoString msg(NS_LITERAL_STRING("Image corrupt or truncated: ") +
> 106                        NS_ConvertASCIItoUTF16(mImage.GetURIString()));
https://mxr.mozilla.org/mozilla-central/source/image/src/Decoder.cpp#105

We want that string to be localizeable, I imagine.
You need to log in before you can comment on or make changes to this bug.