Hi 

When I add 
<Locale
messages="http://opensocial-resources.googlecode.com/svn/tests/trunk/suites/0.7/gadgets/core/content/ALL_ALL.xml"/>
It works fine, prefs.getMsg('hello_world'); give result Hello World.

But when I add this line also

<Locale
messages="http://opensocial-resources.googlecode.com/svn/tests/trunk/suites/0.7/activities/messagebundle.xml"/>
<Locale
messages="http://opensocial-resources.googlecode.com/svn/tests/trunk/suites/0.7/gadgets/core/content/ALL_ALL.xml"/>

It return blank. can anyone please help me what is the problem exactly.

Thanks
Ajay


--- On Fri, 1/9/09, ajay singh <[email protected]> wrote:
From: ajay singh <[email protected]>
Subject: Re: complaince test getMsg failed.
To: "shindig" <[email protected]>
Date: Friday, January 9, 2009, 5:18 PM

Hi Shreyas

Actually my container link is still not external. At my local system it is
working.

I have created a file a.xml

<?xml version="1.0" encoding="UTF-8"?>
<Module>
  <ModulePrefs title="ABC">
   <Require feature="opensocial-0.8"></Require>
   <Require feature="setprefs" ></Require>
   <Locale messages="http://myip/sns/messagebundle.xml"/>
 </ModulePrefs>
 <Content type="html">
   <![CDATA[
<div>NEwww</div>
   <script type="text/javascript">
     var prefs = new gadgets.Prefs();
     var msg = prefs.getMsg('hello_world');
      alert(msg);
   </script>
  ]]>
  </Content>
</Module>

and messagebundle.xml is 

<?xml version="1.0" encoding="UTF-8"?>
<messagebundle>
  <msg name="hello_world">
    Hello World.
  </msg>  
  <msg name="color">Color</msg> 
  <msg name="red">Red</msg> 
  <msg name="green">Green</msg> 
  <msg name="blue">Blue</msg> 
  <msg name="gray">Gray</msg> 
  <msg name="purple">Purple</msg> 
  <msg name="black">Black</msg>
</messagebundle>

It is running fine.

But for complaince test i always get same error
testgetMsg('hello_world'): FAILED: (got ''), expected
'Hello

World.' :)
--- On Fri, 1/9/09, Shreyas Desai <[email protected]> wrote:
From: Shreyas Desai <[email protected]>
Subject: Re: complaince test getMsg failed.
To: [email protected]
Date: Friday, January 9, 2009, 2:59 PM

Ajay,
When I run this case on orkut, It works fine. Let me know which container are
you trying.

I think good idea would be to look into prefs.js in shinding. 

hello_world is define here...
http://opensocial-resources.googlecode.com/svn/tests/trunk/suites/0.7/gadgets/core/content/ALL_ALL.xml

It is added in .xml here. 
http://code.google.com/p/opensocial-resources/source/browse/tests/trunk/suites/0.7/compliance/reference/reference.xml?r=964#


If I can try your case from external link I may be able to debug.
regards,
Shreyas


On Fri, Jan 9, 2009 at 2:35 PM, ajay singh
<[email protected]> wrote:



I am still getting one error in complaince testgetMsg('hello_world'):
FAILED: (got ''), expected 'Hello

World.'



How to remove this?



Thanks

Ajay




-- 
regards,
Shreyas

Reply via email to