Are resx files suitable for Internationalization?

前端 未结 3 1535
傲寒
傲寒 2020-12-05 19:17

I have been given the task of internationalizing a large client-server application. The remit is that I make the app \'World Ready\' and then the compiled application and re

相关标签:
3条回答
  • 2020-12-05 19:31

    Check Rick Strahl's resource provider

    0 讨论(0)
  • 2020-12-05 19:37

    Yep, the entire globalization framework in .NET is based of RESX files and the satelite assemblies they create. Once you've compiled the main app, the RESX files can be compiled into their satelite assemblies independently.

    I know there are tools out there that aid in the translation process but I'm not famliar with any off them off hand.

    0 讨论(0)
  • 2020-12-05 19:56

    Yes, resx files are the best solution.

    For translation of the resources you should look at a localization tool, for instance Passolo. It does either

    • take the original resx as input and generates translated resx file which you need to check in to your codebase
    • take compiled assemblies as input and generates satellite assemblies.

    We are translating assemblies, because this allows to localize the gui layout as well. To allow an external tool to open a gui editor, it needs the code and this is in the assembly.

    If you only focus on test translation, translation of resx is probably simpler to handle.

    Such an external tool provides this important functionalities:

    • gather all string together, you not have to handle hundreds of resx files
    • manage translation text of many languages, mostly with gui designer.
    • recognize if a source text changed or has been added, so you now which texts need to be translated.
    • translation of duplicated texts only once.
    • usually nice ui to edit translations.
    • export/import to csv and similar formats to be processed by other tools or even other companies.
    0 讨论(0)
提交回复
热议问题