是否有工具可以帮助从 Xaml 中提取可本地化文本?

发布于 2024-11-27 23:18:32 字数 157 浏览 0 评论 0原文

我的任务是 Windows Phone 7 应用程序的本地化。第一步是用 ID 替换实际可见文本,并将 ID 和文本放入资源文件中。

这是一项非常繁琐的工作,我想知道是否有工具可以实现自动化?

我正在思考 Linux 世界中使用的 gettext 包和 .po 文件。

I am tasked with the localization of a Windows Phone 7 application. The first step is to replace the actual visible text with an ID and put the ID and the text in a resource file.

This is a very tedious work and I was wondering if there are tools for this to automate?

I am thinking along the lines of the gettext package and .po files used in the linux world.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

戏蝶舞 2024-12-04 23:18:32

这是一个 codeplex 项目,可能会对您有所帮助。 http://xlocalization.codeplex.com/。要使用此方法,每个要本地化的控件都必须分配有 name 属性。

我在现有的项目中进行了尝试,得到的结果好坏参半,但从长远来看,我决定手动完成。我不记得具体遇到了什么问题,但是如果您想在项目的副本上尝试一下,那不会花费太多时间。如果它适合您(并且您要本地化的控件都有名称),那么它可以节省您的时间。

另外,我不知道您对本地化有多熟悉,但我写了一篇关于该主题的博客,从头到尾引导您。位于 http://www.hopnet.mobi,单击“博客”。

希望这有帮助。

Here is a codeplex project that may help you some. http://xlocalization.codeplex.com/. To use this method, each control that is to be localized must have the name property assigned.

I tried it with my existing project, and got results that were mixed, but in the long run, I decided to do it by hand. I don't remember specifically what the problems were that I had, but if you want to try it on a copy of your project, it won't take much time. If it works for you (and if your controls to be localized all have names), it could save you time.

Also, I don't know how familiar you are with localizing, but I wrote a blog on the subject that takes you from start to finish. It's at http://www.hopnet.mobi, click Blogs.

Hope this helps.

很快妥协 2024-12-04 23:18:32

我知道这会得到很多传统的答案,但我也想提出一些完全原创的东西,我们自己尝试(并成功)使用附加属性而不是绑定来更有效地本地化 Silverlight:

完成后 Silverlight 项目的本地化

为了预填充数据库,我们编写了一个 XML 解析器来在所有项目的 XAML 中查找标记文件(XAML 毕竟只是 XML 的一个子集)。我们找不到任何现有工具来执行您建议的操作,但我们的新本地化方法简化了我们的要求(没有资源文件,也没有可怕的绑定)。

(是的,这与我今天的上一个答案几乎相同,但它似乎再次适合)。

I know this will get a lot of traditional answers, but I would also like to put forward something completely original we tried (and succeeded) doing ourselves for more efficient localisation of Silverlight using Attached Properties instead of binding:

Localisation of Silverlight projects after completion

To pre-populate the database we wrote a XML parser to find our markers in all our project's XAML files (XAML is just a subset of XML after all). We could not find any existing tools to do what you suggested, but our requirements were simplified by our new method of localisation (no resource files and no horrid bindings).

(yes, this is almost the same answer as a previous one of mine today, but it seems to fit again).

冬天旳寂寞 2024-12-04 23:18:32

另外,为了便于将来参考,请留意此工具:http://www.neovelop.com/ 此工具很快就会进入私人测试版,看起来非常有前途。从他们的预览电影来看,这将完全满足您的要求。

Also for future reference keep an eye out for this tool: http://www.neovelop.com/ This tool will go in private beta soon and looks very promising. Judging from their preview movie this will do exactly what you asked for.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文