Ejemplo n.º 1
0
 def _generateAlertAndDialogCount(self, obj,  **args):
     """Returns an array of strings that says how many alerts and dialogs
     are associated with the application for this object.  [[[WDW -
     I wonder if this string should be moved to settings.py.]]]
     """
     result = []
     alertAndDialogCount = \
         self._script.utilities.unfocusedAlertAndDialogCount(obj)
     if alertAndDialogCount > 0:
         # Translators: this tells the user how many unfocused
         # alert and dialog windows plus the total number of
         # windows that this application has.
         #
         result.append(ngettext("(%d dialog)",
                                "(%d dialogs)",
                                alertAndDialogCount) % alertAndDialogCount)
     return result
Ejemplo n.º 2
0
def _help(longHelp = False):

    # Translators: This message inform to the user the number of
    # messages in the list.
    msg = ngettext("%d message.\n", "%d messages.\n", int(size())) % (size())
    # Translators: This is a help message.
    msg += _("Press h for help.\n")
    if longHelp:
        # Translators: The following string instructs the user how to navigate
        # amongst the list of commands presented in list notification 
        # messages mode as well as how to exit the list.
        #
        msg += \
            _("Use Up, Down, Home or End to navigate in the list.\n"\
              "Press Escape to exit.\n"\
              "Press Space to repeat the last message read.\n"\
              "Press one digit to read a specific message.\n")

    _showMessage(msg)