facebook module crash when using internationalisation on appcelerator -


i'm coding game , i'm using internationalisation. want share score facebook module. code:

if(fb.getcanpresentsharedialog()) {     fb.presentsharedialog({         link: 'https://www.facebook.com/profile.php?id=100010324151821',         name: 'memory speed',         description:string.format(l('share'), ti.app.score),         caption:l('caption_partage_score_facebook'),    }); } else {     fb.presentwebsharedialog({         link: 'https://www.facebook.com/profile.php?id=100010324151821',         name: 'memory speed',         description:string.format(l('share'), ti.app.score),         caption:l('caption_partage_score_facebook'),     }); }. 

'share': link strings.xml file

ti.app.score: var score

when click on share button, app closes itself.

i tried replace ti.app.score string 'hello' , app doesn't crash.

does know reason behavior?

store "score" either @ globally using

 "alloy.globals.score"  

or store in property e.g

  ti.app.properties.setstring('score', '20'); 

and use either of it...


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -