Closed Bug 348657 Opened 18 years ago Closed 18 years ago

brand.dtd is not a well-formed DTD file because of an #expand macro

Categories

(Thunderbird :: General, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird2.0

People

(Reporter: rpmdisguise-nave, Assigned: mscott)

References

()

Details

(Keywords: fixed1.8.1)

Attachments

(1 file)

Line #1 of mozilla1.8/source/other-licenses/branding/thunderbird/locales/en-US/brand.dtd

is

#expand <!ENTITY  lang.version          "__MOZILLA_LOCALE_VERSION__">

which I don't think is valid syntax in a DTD file. Maybe it is a preprocessor instruction? Perhaps it should be SGML-commented so the file remains a valid DTD file.

Being a non-valid DTD file affects L10n tools like MozillaTranslator, which uses a SAX Parser to load DTD files.

The problem also affects trunk; however, I haven't found the same construction in Firefox or Thunderbird equivalent files.
Summary: brand.dtd is not a well-formed DTD file because a .properties-like comment → brand.dtd is not a well-formed DTD file because of an #expand macro
As I wrote in .l10n, the lang.version entity doesn't seem to be used outside the
/extensions/content-packs/resources/content/pref-contentpacks.xul
file, which is doesn't use Thunderbird's dtd and is only used by SeaMonkey.

It should be safe to remove the whole lang.version entity from brand.dtd.
This patch removes the lang.version entity from both brand.dtd's used by Thunderbird.
Attachment #233765 - Flags: review?
Attachment #233765 - Flags: review? → review?(mscott)
Comment on attachment 233765 [details] [diff] [review]
Remove lang.version from brand.dtd

benjamin might remember if there's a reason for us to define lang.version here.
Attachment #233765 - Flags: superreview?(benjamin)
Attachment #233765 - Flags: review?(mscott)
Attachment #233765 - Flags: review+
Comment on attachment 233765 [details] [diff] [review]
Remove lang.version from brand.dtd

No, that's a leftover from the seamonkey chrome registry I hope.
Attachment #233765 - Flags: superreview?(benjamin) → superreview+
Marek, I landed this patch on the trunk and the branch for you. Thanks again for the fix!
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: