Display key in case key doesn't exist in resource files

May 14, 2013 at 4:07 PM
I found the following sentences in documentation:
As no key was provided, the extension will first try to resolve a resource key named MyButton_Content. If this fails, it will then look for a resource key named MyButton. If this fails too, no value will be provided.
We would like to display the key in case the key doesn't exist in Resources.en.resx for example. Is it possible? Is it any setting to be done?
Thanks,
Dan
Coordinator
May 15, 2013 at 10:06 AM
Hi,

you can use the neutral language resource file (eg. Resources__.resx__) that can contain the key itself as localized value.
With this trick you can also add default images as fallback to see if they are not localized yet.
May 15, 2013 at 10:23 AM
Hello,
Thank you for your answer. But my question was: can we display the key from xaml if the key is not present in Resources.resx or any other language file?

Thanks,
Dan
Coordinator
May 16, 2013 at 8:38 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.