Skip to content

Timthreetwelve/CheckLanguageFile

Repository files navigation

Check Language File

GitHub NET6win GitHub release (latest by date) GitHub Release Date GitHub commits since latest release (by date) GitHub last commit GitHub commits GitHub Stars GitHub all releases GitHub release (by tag) GitHub Issues GitHub Issues

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

  • By right-clicking file in File Explorer (open for details)
    • Select Open with from the right-click menu.
    • Select Choose another app.
    • Scroll down if needed and select Choose an app on your PC
    • Navigate as needed then select CheckLanguageFile.exe.
    • Click Just once.
    • This should only be needed once. After that it should stay in the Open with menu.

In the File Validation tab, files are checked for:

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

    • Dealing with duplicate keys (open for details)
      • The error message will indicate the key name and line number.
      • Open the .xaml file in your editor and remove or edit the duplicate key.
      • Save the file in your editor and then validate again.
      • Repeat as needed to find all duplicate keys.

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:

❌ No help or readme file.

❌ No dark theme or settings of any kind.

❌ English UI only.

❌ No logging.

⚠️ Check Language File Requires .NET 10 ⚠️

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

 
 
 

Contributors

Languages