DRAG DROP
You are developing a Universal Windows Platform (UWP) app.
You have the following XAML code.
You need to localize the app so that it displays “Bonjour” if the current language in Windows is set to French.
Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the
correct order.
Select and Place:
Explanation:
Box 1, Box 2:
The localized Resources.resw files should be put into subfolders of a folder named Strings.
Box 3:
The Resources.resw files contain localized text.
Box 4:
In Visual Studio you can set “Build Action” for a project item to ‘Resource’ or ‘Embedded Resource’ A “.resx” file is a special kind of embedded resource.https://msdn.microsoft.com/library/aa992030(v=vs.100).aspx
Step 1 & 2 is acceptable for me… But
Step 3 should be In Resources.resw, add a new resource named message
Step 4 should be In Resources.rews, add the localized text
Why would we set the Build Action for the resource to be “Embedded Resource”
https://msdn.microsoft.com/en-us/library/ht9h2dk8(v=vs.100).aspx
You are right, setting Build Action to “Embedded Resource” is wrong. But Step 3 should not be the one you suggested, but this one:
In Resources.resw, add a new resource named message.Text.
“For the resource name, you give the Uid attribute value, plus you specify what property is to get the translated string (in this case the Text property). You can specify other properties/values for different languages such as Greeting.Width, but be careful with such layout-related properties. You should strive to allow the controls to lay out dynamically based on the device’s screen.”
See: https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh965326