Skip to content

Timthreetwelve/CheckLanguageFile

Repository files navigation

Check Language File

This is a utility program intended to be used to validate the resource dictionary based language files used in the Timthreetwelve applications. The language files may also be compared to other language files to check for missing or deleted keys.

Files to be checked are expected to be xaml resource dictionaries with a .xaml file extension.

Files to be checked can be selected:

  • By using the file open dialog (three dot button next to the boxes)
  • By drag & drop into the appropriate textbox
  • By copying and pasting

In the File Validation tab, files are checked for:

  • Syntax errors
  • Duplicate keys (technically only the first duplicate key, since a duplicate key will throw an exception)
  • Null or empty keys
  • Null or empty values

Additionally, all keys and the associated string values are listed in a grid. The grid can be filtered by key or string.

In the Compare Files tab:

  • Two files are compared.
  • Total number of keys are listed for each file.
  • The grid at the bottom lists the values for each of the files. Missing values and values that are the same are color coded.
  • 🆕 The grid can be filtered to show only keys with no values or keys where the value is the same for both files.
  • 🆕 Both files can be added at the same time when using the file open dialog. Simply Ctrl+Click on two files.
  • 🆕 File names are displayed in the grid column headers.
  • 🆕 Export the keys with missing values. Lines are formatted for the xaml file. Just add the translated strings between the >< and paste into the appropriate place in the language file.

Nothing fancy:

❌ There's no installer, just a portable version in a zip file.

❌ No help or readme file.

❌ No dark theme or settings of any kind.

❌ English UI only.

❌ No logging.

Requires .NET 6

Screenshots

CheckLanguageFile_2023-11-11_15-53-50

CheckLanguageFile_2023-12-12_21-24-27

About

Check Resource Dictionary based language files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages