0

The use case:

  • You have hardcoded text strings in your C# code which has to be translated
  • You right click on the text and select the word or whole sentence
  • You click on the magic option - Move to resx
  • This will automatically move the selected sentence in corresponding resx file and replace the selected text with reference to it.

    • The name of the resx file and its namespace is ideally by convention something like "{OriginalFileName}_Resources.resx". Also the file gets generated if it does not exist.
    • The key of the resource is generated automatically PascalCasing the original word/sentence (e.g. "Please choose your options" converts to "PleaseChooseYourOptions").
    • The default resource language can be configured.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.