Reputation: 14499
Are there any tools for locating all the strings that I've to Internationalize? My app is already "partially" designed for Internationalization support. However I want to make sure that there arent' any hardcoded string within my app.
Regular expression search didn't help a lot as trying to find "***" returns every aspx page.
Are there any tools to do this?
Upvotes: 1
Views: 606
Reputation: 928
Netbeans and Eclipse support this out of the box. I think it is even enabled by default. I don't know about Visual Studio, but I'd expect that it offers such functionality.
In eclipse and with java it works like this: Whenever the integrated compiler sees a string literal it issues a warning unless the string literal is marked with a //$NON-NLS-1$ comment.
In Netbeans it is mostly the same but you mark non-translatable string literals (regexes, SQL, ...) with NOI18N.
Upvotes: 1
Reputation: 361849
"FxCop is an application that analyzes managed code assemblies (code that targets the .NET Framework common language runtime) and reports information about the assemblies, such as possible design, localization, performance, and security improvements. Many of the issues concern violations of the programming and design rules set forth in the Design Guidelines for Class Library Developers, which are the Microsoft guidelines for writing robust and easily maintainable code by using the .NET Framework."
See: Globalization Warnings → Do not pass literals as localized parameters
Upvotes: 3