Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make strings from Resources.resw show up in the designer?

In the Shared project of my universal app I have two folders inside of the Strings folder, en-US and sv-SE. Inside of both folders I have Resources.resw files. These contain the strings for my app.

When I run the app I'm able to see the strings, mapped using x:Uid, but I'm not able to see the string when using the designer designer.

Moving the English Resources.resw file to the root of Strings generates an error, telling me there is no Resources.resw file for the default language (en-US). Also, it does not make the strings appear in the editor.

Is it possible to make the resources from a *.resw appear in the designer?

like image 292
Mikael Dúi Bolinder Avatar asked Oct 01 '22 19:10

Mikael Dúi Bolinder


1 Answers

I'd be surprised if your other project actually works as you think. Strings in *.resw files are not automatically understood for the designer. Given this:

<TextBlock x:Uid="MyWelcomeMessage" />

In the designer would show an empty TextBlock because the designer doesn't get the localized resource at design-time. The recommendation is to use some placeholder values for those items you are localizing with resources.

like image 70
Tim Heuer Avatar answered Oct 04 '22 20:10

Tim Heuer