<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Improve the password-protected document unlock prompt dialog's text strings and layout"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=132007">132007</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Improve the password-protected document unlock prompt dialog's text strings and layout
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>trivial
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>UI
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>nekohayo@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
When you open a password-protected document, you are presented with a simple
GtkDialog window that has "Enter password" as the window title and this
following layout:

Enter password to open file:
file:///home/bob/path/to/the/file.ods
[ *******************                ]
( Help )             ( Cancel ) ( OK )

The "file:///full_path_blahblah" part bugs me, because it eats 90% of the space
and makes it harder to see the actual file name. The path is also irrelevant to
me because I _just_ requested to open the file, which either means I tried
opening it from my file browser application (and therefore know the path) or
that I tried opening it with LibreOffice's file open dialog (ditto) or that I
tried opening it from the "Recent Files" quick menu (in which case I clearly
don't care about the file's path, since I couldn't even be bothered to use a
file manager to dig it up).

So I would suggest that the string becomes:

'The file "%s" is password-protected. Enter the password to open it:'

Where %s is the human-readable file name. It could be without the extension
(ex: "TPS report") or with the extension (ex: "<b>TPS report</b>.ods") if
you're worried about non-technical users needing to be able to cite the file
extension along with the filename.

The "OK" button in that GtkDialog should also be "insensitive" until something
has been entered in the password field.

Actual Results:


Expected Results:



Reproducible: Always


User Profile Reset: No



Additional Info:</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>