Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/variables/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android中的钛合金国际化-未获取字符串值_Android_Internationalization_Titanium Alloy - Fatal编程技术网

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,你找到解决办法了吗?