#1,121 – Localization II – Assigning UIDs to All Localizable Elements
July 24, 2014 1 Comment
After adding a UICulture tag, the next step in localizing a WPF is to assign a UID (unique identifier) to each element in each of your XAML files. These UIDs will later be used to localize/translate the XAML.
To start, press the Windows key, type Visual Studio, and click on the Visual Studio Tools icon.
Double-click the Developer Command Prompt for VS2013 shortcut.
In the command prompt, navigate to the directory containing your project (.csproj) file. Enter the command:
msbuild /t:updateuid [yourapplication].csproj
Open your project and then open one of your .xaml files. You’ll see that each element now has a x:Uid attribute that wasn’t there before. Each element will have a unique value for this attribute.
Before running msbuild:
After running msbuild: