~ubuntu-branches/ubuntu/utopic/dogtail/utopic

« back to all changes in this revision

Viewing changes to examples/i18n-test.py

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2006-12-21 13:33:47 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20061221133347-xo9jg11afp5plcka
Tags: upstream-0.6.1
ImportĀ upstreamĀ versionĀ 0.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
import dogtail.distro
11
11
 
12
12
def translateAllStrings(appName):
13
 
        """
14
 
        Test of the translation functions.
15
 
        
16
 
        Take all user-visible strings in an app that's running in the default locale
17
 
        and try translating them all into the locale that this script is running in.
18
 
        """
19
 
        for string in root.application(appName).getUserVisibleStrings():
20
 
                print "User-visible string: %s"%string
21
 
                print "Translation is:%s"%dogtail.i18n.translate(string)
 
13
    """
 
14
    Test of the translation functions.
 
15
 
 
16
    Take all user-visible strings in an app that's running in the default locale
 
17
    and try translating them all into the locale that this script is running in.
 
18
    """
 
19
    for string in root.application(appName).getUserVisibleStrings():
 
20
        print "User-visible string: %s"%string
 
21
        print "Translation is:%s"%dogtail.i18n.translate(string)
22
22
 
23
23
print "Package dependencies: %s"%dogtail.distro.packageDb.getDependencies('evolution')
24
24
#print dogtail.i18n.getMoFilesForPackage('evolution', True)