~ubuntu-branches/ubuntu/hardy/gnome-orca/hardy

« back to all changes in this revision

Viewing changes to src/orca/speechgenerator.py

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2007-07-10 21:54:54 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: james.westby@ubuntu.com-20070710215454-trky3o11pcc78qg4
Tags: 2.19.5-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
one can create a new instance and replace/extend the speech generators
24
24
as they see fit."""
25
25
 
26
 
__id__        = "$Id: speechgenerator.py 2434 2007-05-29 15:18:37Z richb $"
27
 
__version__   = "$Revision: 2434 $"
28
 
__date__      = "$Date: 2007-05-29 11:18:37 -0400 (Tue, 29 May 2007) $"
 
26
__id__        = "$Id: speechgenerator.py 2487 2007-06-19 23:10:50Z richb $"
 
27
__version__   = "$Revision: 2487 $"
 
28
__date__      = "$Date: 2007-06-19 19:10:50 -0400 (Tue, 19 Jun 2007) $"
29
29
__copyright__ = "Copyright (c) 2005-2007 Sun Microsystems Inc."
30
30
__license__   = "LGPL"
31
31
 
919
919
        Returns a list of utterances to be spoken for the object.
920
920
        """
921
921
 
 
922
        percentValue = (obj.value.currentValue / \
 
923
            (obj.value.maximumValue - obj.value.minimumValue)) * 100.0
 
924
 
922
925
        # Translators: this is the percentage value of a progress bar.
923
926
        #
924
 
        percentage = _("%d percent.") % obj.value.currentValue + " "
 
927
        percentage = _("%d percent.") % percentValue + " "
925
928
 
926
929
        utterances = []
927
930