[LDTP-Dev] usage of bindtext

Nagappan A nalagappan at vmware.com
Wed Sep 23 12:39:29 PDT 2009


Hello Ning,

If you want to pick the PO / MO files from system folder, then you can 
use bind text.

Other option is you can define the object name in a text file like this 
and you can use the common name - 
http://bazaar.launchpad.net/~mago-contributors/mago/mago/annotate/head%3A/mago/application/gnome.py

Thanks
Nagappan

Ning Fu wrote:
> 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 ;)'
>   
> _______________________________________________
> LDTP-dev mailing list
> LDTP-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
>   

-- 
Linux Desktop Testing Project - http://ldtp.freedesktop.org
http://nagappanal.blogspot.com



More information about the LDTP-dev mailing list