Hi Harry,<br><br>If you want to use the locale string, in LDTPv1, you have to use the label name as it is, instead of LDTP convention :) If you are planing to use LDTP convention, then you may need to populate the label names in your script for each locale. This is not implemented in v2, will have to work on it.<br>

<br>Thanks<br>Nagappan<br><br><div class="gmail_quote">2009/10/26 Ning Fu <span dir="ltr">&lt;<a href="mailto:ning.fu@gmail.com">ning.fu@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi,<br>
<br>
I have such a code on Solaris:<br>
<br>
from ldtp import *<br>
from ldtputils import *<br>
setlocale(&#39;zh_CN&#39;)<br>
bindtext(&#39;gedit&#39;, &#39;/usr/share/locale&#39;)<br>
selectmenuitem(&#39;*gedit&#39;,&#39;mnuFile;mnuNew&#39;)<br>
selectmenuitem(&#39;*gedit&#39;,&#39;mnuFile;mnuOpen&#39;)<br>
selectmenuitem(&#39;*gedit&#39;,&#39;mnuEdit;mnuPreferences&#39;)<br>
selectmenuitem(&#39;*gedit&#39;,&#39;mnuHelp;mnuAbout&#39;)<br>
<br>
My purpose is to test gedit in different locales with a same set of<br>
LDTP scripts.<br>
However, when I tested in zh_CN locale, I found a issue that &quot;mnuNew&quot;<br>
is reported as &quot;Unable to get the child menu item&quot;.<br>
While others(mnuOpen, mnuPreferences, mnuAbout) work fine -- the<br>
localized dialog windows are opened.<br>
<br>
I checked the log file, and found out that &quot;mnuNew&quot; is translated to<br>
Chinese as &quot;mnu新建&quot;, but others are kept in English.<br>
I guess that&#39;s why it fails.<br>
<br>
My question is -- If English label names work fine with localized<br>
applications, why some labels, such as &quot;mnuNew&quot; are translated? Isn&#39;t<br>
it a bug?<br>
<br>
Attached please find the log file.<br>
<br>
Thanks!<br>
Harry Fu<br>
<br>_______________________________________________<br>
LDTP-dev mailing list<br>
<a href="mailto:LDTP-dev@lists.freedesktop.org">LDTP-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/ldtp-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/ldtp-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Linux Desktop (GUI Application) Testing Project - <a href="http://ldtp.freedesktop.org">http://ldtp.freedesktop.org</a><br><a href="http://nagappanal.blogspot.com">http://nagappanal.blogspot.com</a><br>