~lp-l10n-th/ubiquity-slideshow-ubuntu/ubiquity-slideshow-ubuntu-l10n-th

« back to all changes in this revision

Viewing changes to Slideshow.py

  • Committer: ศิระ นกยูงทอง
  • Date: 2010-04-05 07:39:53 UTC
  • mfrom: (249.1.16 main)
  • Revision ID: gumara@gumara-desktop-20100405073953-sth278jneqh9xxix
merge from trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
                        parameters += "?controls"
39
39
                if self.locale != 'c': #slideshow will use default automatically
40
40
                        parameters += '?locale=' + self.locale
41
 
                        if rtl:
42
 
                                parameters += '?rtl'
 
41
                if rtl:
 
42
                        parameters += '?rtl'
43
43
                
44
44
                webkit.WebView.__init__(self)
45
45
                self.open(slideshow_main+'#'+parameters)
128
128
default_path = os.path.join( os.path.abspath(os.path.dirname(sys.argv[0])) , 'build', 'ubuntu' )
129
129
 
130
130
default_locale = locale.getlocale()[0]
131
 
default_rtl = False
132
131
 
133
132
parser = OptionParser(usage="usage: %prog [options] [slideshow]")
134
133
parser.add_option("-l", "--locale", help="LOCALE to use for the slideshow", metavar="LOCALE", default=default_locale)
135
 
parser.add_option("-r", "--rtl", action="store_true", help="use output in right-to-left format", default=default_rtl)
136
 
parser.add_option("-c", "--controls", help="True or False to enable controls in the slideshow (you may need to resize the window)", default=True)
 
134
parser.add_option("-r", "--rtl", action="store_true", help="use output in right-to-left format")
 
135
parser.add_option("-c", "--controls", action="store_true", help="Enable controls in the slideshow (you may need to resize the window)")
137
136
parser.add_option("-p", "--path", help="path to the SLIDESHOW which will be presented", metavar="SLIDESHOW", default=default_path)
138
137
 
139
138
(options, args) = parser.parse_args()