开发者

Are there localization tools which spot content strings in xaml/wpf? [closed]

开发者 https://www.devze.com 2023-02-07 22:57 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 2 years ago.

开发者_StackOverflow Improve this question

When globalizing a wpf application with static resx classes, it's very easy to miss the odd label or button that has its Content property set to a hard coded string in a particular language, ie English. These should of course be moved off to a {x:Static ...} so they can be localised for each culture.

Are there any tools which can spot this and warn you? Built in to VS would be ideal, but I'm thinking that 'style cop' type build tools would do the job as well.


David Anson posted just such a tool a few weeks ago. It's a pseudo-localization tool that alters all the strings defined in ResX files so that they stand out from static strings. It changes letters to their accented forms, and also adds padding to strings so you can test for layout changes in languages with longer translations.

0

精彩评论

暂无评论...
验证码 换一张
取 消