简体   繁体   English

Windows 8多语言应用程序工具包

[英]Windows 8 Multilingual App Toolkit

So i'm trying to localise my app but the toolkit doesn't seem to be doing anything. 所以我试图本地化我的应用程序,但该工具包似乎没有做任何事情。 I've been following this guide: 我一直在遵循本指南:

http://msdn.microsoft.com/en-us/library/windows/apps/xaml/jj572370.aspx http://msdn.microsoft.com/zh-CN/library/windows/apps/xaml/jj572370.aspx

I followed the guide and when I build I get this in the output: 我遵循了指南,并且在构建时在输出中得到了这一点:

1>  Multilingual App Toolkit build started.
1>  Multilingual App Toolkit build completed successfully.

but the .xlf files are empty. 但是.xlf文件为空。 I have "English.xlf", "English (United Kingdom).xlf" and "Pseudo Language (Pseudo).xlf" and none of them have anything in it. 我有“ English.xlf”,“ English(United Kingdom).xlf”和“ Pseudo Language(Pseudo).xlf”,但它们都没有。 I do have text in my app, written in English. 我的应用程式中确实有英文文字。

I don't know what I'm doing wrong as there is no error message. 我不知道我在做什么错,因为没有错误消息。 I also found this guide: 我也找到了本指南:

http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh965329.aspx http://msdn.microsoft.com/zh-CN/library/windows/apps/xaml/hh965329.aspx

which doesn't even use the toolkit. 甚至不使用工具包。

Any help appreciated, thanks. 任何帮助表示赞赏,谢谢。

The Multilingual App Toolkit needs a resource file to work with. 多语言应用程序工具包需要使用资源文件。 Did you create the proper resource file for your apps culture as described in the link Translating UI Resources ? 您是否按照“ 翻译UI资源 ”链接中所述为应用程序文化创建了正确的资源文件?

If you created that file, you need to enter your strings there. 如果创建了该文件,则需要在其中输入字符串。 On compile the translator will then copy those strings to each of your selected language files. 然后在编译时,翻译器会将这些字符串复制到您选择的每个语言文件中。

After that you will then have to: 之后,您将必须:

  • translate the strings manually in each file 在每个文件中手动翻译字符串
  • use the translation tools automatic translation feature (it's good but not perfect!) 使用翻译工具的自动翻译功能(虽然不错,但并不完美!)
  • send the file to a translator 将文件发送给翻译者

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM