C#, Localization, Resources, and MonoDevelop

后端 未结 2 575
挽巷
挽巷 2021-02-04 13:29

My problem is this: Using MonoDevelop (which is the preferred environment for a number of projects I\'m working on) I\'m trying to figure out how to use resourc

2条回答
  •  我在风中等你
    2021-02-04 14:02

    I'm not familiar with .NET localization (I use gettext), but as I understand it, .resources files are a binary format that's actually embedded into your dll. You can compile resx (XML) or text resources into the binary format using resgen. Text files are more readable but can only be used for string resources. XML is more verbose but can represent everything that binary resources can.

    The usual thing is to store your resources in .resx form in the project, and MonoDevelop will automatically compile them into .resources files when building your project (you'd have to compile .txt files manually). Unfortunately MD doesn't have special editing tools for resx files, so you'd have to edit the XML directly.

    MD does have nice localization tools for gettext, but these aren't currently supported on Windows.

提交回复
热议问题