#1,124 – Localization V – Extracting Localizable Content Using LocBaml

Once you’ve generated UIDs for user interface elements and obtained the LocBaml tool, the next step in the localization process is to extract localizable content from the BAML data in your compiled DLL.

The steps are as follows:

  • Copy the locbaml.exe into the same directory as your application’s .exe file
  • Open a Visual Studio 2013 command prompt
  • Navigate to directory containing your .exe (e.g. \bin\Release, with \en-US sub-directory containing satellite assembly)
  • Enter: locbaml.exe /parse .\en-US\[application].resources.dll  (where en-US is the default culture)

After running this command, you’ll see a .csv file show up in the same directory (e.g. WpfApplication1.resources.csv).  The CSV file will contain a list of localizable content.

1124-001

About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.

One Response to #1,124 – Localization V – Extracting Localizable Content Using LocBaml

  1. I had some problems trying to get this to work but finally managed it when I built locbaml in ‘Any CPU’ mode instead of x86. It was throwing an exception when executing Assembly.LoadFrom() using the resource DLL as its parameter. What’s strange is that my application was built using x86!

Leave a comment