[LDTP-Dev] usage of bindtext
Ning Fu
ning.fu at gmail.com
Tue Sep 22 22:07:58 PDT 2009
Hi, there:
I'd like to try running ldtp scripts in different locales, but I'm
confused about the usage of bindtext.
The document says little about it. Below are the error messages I got
on Ubuntu Linux.
Can anyone show me the correct way to call it and run a same set of
ldtp scripts in different locales?
Thanks!
Ning Fu
test at Ubuntu904:~$ python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ldtp import *
>>> from ldtputils import *
>>> setlocale('zh_CN.utf8')
>>> bindtext('gedit', '/usr/share/locale-langpack/')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/var/lib/python-support/python2.6/ldtp.py", line 3200, in bindtext
raise LdtpExecutionError (_responseStatus [1])
ldtplib.ldtplibutils.LdtpExecutionError: u'Invalid command - Welcome
contribution ;)'
>>> setlocale('zh_CN')
>>> bindtext('gedit', '/usr/share/locale-langpack/')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/var/lib/python-support/python2.6/ldtp.py", line 3200, in bindtext
raise LdtpExecutionError (_responseStatus [1])
ldtplib.ldtplibutils.LdtpExecutionError: u'Invalid command - Welcome
contribution ;)'
>>>
More information about the LDTP-dev
mailing list