Mozilla DTD format — Translate Toolkit 1.13.0 documentation

# Mozilla DTD format

Mozilla makes use of a .dtd file to store many of its translatable elements, the moz2po converter can handle these.

## References

- XML specification

## Features

- Comments – these are handled correctly and integrated with the unit
- Accelerators – if a unit has an associated access key entry then these are combined into a single unit
- Translator directive – all LOCALIZATION NOTE items such as DONT_TRANSLATE are handled and such items are discarded
- Entities – some entities such as `&amp;` or `&quot;` are expanded when reading DTD files and escaped when writing them, so that translator see and type `&` and `"` directly

## Issues

- We don’t expand some character entities like `&lt;`, `&#38;` – this doesn’t break anything but it would be nicer to see © rather than `&copy;`