1

I'm trying to localize my Windows 8 App with the Multilingual App Toolkit. And for that I tried to follow this explanation to the point:

http://channel9.msdn.com/posts/Build-Multi-language-apps-using-the-Multilingual-App-Toolkit

but it fails with the following Output:

1>  Multilingual App Toolkit build started.
1>  Merge of Loc PRI file failed calling makepri.exe: '0x80073B08'
1>  Multilingual App Toolkit build completed with errors.

I can't find anything for 0x80073B08. If I remove all xlf language files from the project it compiles, is able to launch and to build a store package. But as soon as there is any language file included it failes to build with the error above.

Any Ideas?

EDIT:

I'm using c# and a single resw file.

Everything works as long as I don't include any xlf files.

There are no duplicate keys (except partly duplicate like "MyButton.Text", "MyButton.[using:Windows.UI.Xaml.Controls]ToolTipService.ToolTip")

EDIT2:

Seems like the real problem is the extension format, e.g.:

ClearNotesButton.[using:Windows.UI.Xaml.Controls]ToolTipService.ToolTip

or

AddPageButton.[using:Windows.UI.Xaml.Automation]AutomationProperties.Name

if I use those makepri throws the exception above. Does this mean I can't set the Tooltip and the Text of a Button via the x:Uid mechanism?

4

2 回答 2

2

此错误代码表示尝试了(本地化)资源添加,但源资源不在 PRI 文件中。最近发现了三种可能导致资源出现这种情况的情况。

  1. resjson 文件中存在重复资源。
    JavaScript 示例:
    “取消”:“取消”
    “取消”:“取消”<-- 重复资源

  2. 资源 ID 与具有相同基本路径信息的不同资源冲突。
    JavaScript 示例:
    “关于”:“关于标题”
    “关于/OKBtn”:“确定”。<-- 资源路径与前一个资源的ID相同

    XAML 示例:
    MyButton : "Button without property"
    MyButton.Content : "Hallo Welt" <-- 变为 MyButton/Content,与 MyButton ID 冲突

  3. 资源 ID 包含与资源文件相同的名称。
    常见示例:
    文件名:Resources.resjson
    “Dialog/Resources/Title”:“Welcome”

请查找这些冲突,因为它们已知会导致此错误消息。您还可以在预览版中看到此错误。请确保您正在运行该工具包的已发布版本 - 它是 v1.0.1114.0。

于 2012-10-13T07:15:41.340 回答
2

新版本的多语言应用工具包已发布,可帮助确定何时发生此问题,以便您轻松调整资源。此版本解决了所有三个已知问题。VS IDE Extensions and Updates 对话框中显示的版本是 v1.1.1075.0。

于 2012-11-06T07:49:53.433 回答