Android中的钛合金国际化-未获取字符串值
Android中的钛合金国际化-未获取字符串值,android,internationalization,titanium-alloy,Android,Internationalization,Titanium Alloy,Ti.Locale.getString('label\u title')/L('label\u title')在Android模拟器上提供空值,它正在工作,并在iOS中提供确切的标题文本。我用的是合金。有谁能告诉我是怎么回事,还是钛合金的缺陷 我的资源文件位于/i18n/en/strings.xml中,看起来像 <resources> <string name="labelTitle">Welcome to My App</string> </r
Ti.Locale.getString('label\u title')/L('label\u title')
在Android模拟器上提供空值,它正在工作,并在iOS中提供确切的标题文本。我用的是合金。有谁能告诉我是怎么回事,还是钛合金的缺陷
我的资源文件位于/i18n/en/strings.xml中,看起来像
<resources>
<string name="labelTitle">Welcome to My App</string>
</resources>
$.headingTitle.text = L("labelTitle");
<Alloy>
<Window class="container">
<Label id="headingTitle" />
</Window>
</Alloy>
login.xml看起来像
<resources>
<string name="labelTitle">Welcome to My App</string>
</resources>
$.headingTitle.text = L("labelTitle");
<Alloy>
<Window class="container">
<Label id="headingTitle" />
</Window>
</Alloy>
我正在使用Tianium Studio SDK 3.1.3
我已经上传了该项目到谷歌驱动器作为zip请找到下面的链接
您应该使用“textid”而不是“text”
如果需要,可以使用tss文件进行国际化:
"#headingTitle":{
textid:L('labelTitle'),
},
你好@Anand,你找到解决办法了吗?