[okular] [Bug 427652] New: Strangely worded KMessageBox

Oliver Sander bugzilla_noreply at kde.org
Tue Oct 13 19:49:37 BST 2020


https://bugs.kde.org/show_bug.cgi?id=427652

            Bug ID: 427652
           Summary: Strangely worded KMessageBox
           Product: okular
           Version: 1.11.2
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: okular-devel at kde.org
          Reporter: oliver.sander at tu-dresden.de
  Target Milestone: ---

When I open a pdf document with annotations, move one of the annotations
around, and try to quit without saving, I (rightly) get the message box

   Do you want to save your changes to [filename] or discard them?

However, the choice of buttons then is

   Ja   Nein   Abbrechen

(i.e., 'yes', 'no', 'cancel'), which doesn't really fit the question.

Strangely though, the code that produces the message box is part.cpp:1762

        const int res = KMessageBox::warningYesNoCancel(widget(), i18n("Do you
want to save your changes to \"%1\" or discard them?", url().fileName()),
i18n("Close Document"), KStandardGuiItem::save(), KStandardGuiItem::discard());

To my untrained eye, the KStandardGuiItem::save() and
KStandardGuiItem::discard() make it seem like the buttons should really say
'save' and 'discard', but they don't, at least not in my German version.  Is
this a bug in the German translation?  Or is `warningYesNoCancel` not the right
type of message box?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list