Miscellaneous improvements for the document properties dialog

This PR finetunes the document properties implemention from #4149. The following changes have been made:

- Implements closing the document properties dialog with the Esc key. It also fixes a bug in the password 
  prompt where it would only be closed if focus was in the text field.
- Adds an ellipsis to the document properties menu item in the l10n files. The zh-TW translation for this
  has been removed as suggested by @yurydelendik: this translation has to be provided again with localized
  ellipsis.
- Adds the improved `setFileSize` function as provided by @Rob--W including the required localization.
- Adds wrapping for property fields to fix an issue where a very long file name would exceed the dialog
  width.
- Fixes a small issue when the property text was too long, causing the view to be misaligned (as reported
  by @Rob--W).
- Fixes an issue where the add-on version would show the entire URL instead of only the file name in the
  document properties dialog.