Likes: 0
Over the years, due to the many different skins and iGO/Navigation software versions, the files inside the i8n folder can accumulate a lot of duplicate entries, outdated translations, and missing keys. This can make maintaining our translation files (voice, language files, etc.) more difficult than it needs to be.
I made two simple PowerShell tools to help clean up and compare these files. No additional software installation is required.
Note: Before using the scripts, rename the original files dictionary.voice and dictionary.lang to .txt files, for example dictionary.voice.txt or dictionary.txt. The scripts work with TXT files, so make sure the file extension is changed before running them.
1. Find Missing Entries (Compare 2 TXT files)
This tool compares two TXT files and finds entries that exist in the first file but are missing from the second.
How it works:
Select the first TXT file (the file you want to check).
Select the second TXT file (the reference file).
The script compares the entries, regardless of their order.
It ignores uppercase/lowercase differences.
It checks the entire line, or optionally the key up to and including the first = (depending on the script version used).
Duplicate results are excluded.
Output:
A new file named Missing.txt is created in the same folder as the first selected file. It contains only the entries missing from the second file.
This is also useful for comparing your personal voice file with a newer voice version, to see which entries/keys are missing from your own file and need to be added or updated.
2. Find Duplicate Entries (Duplicate Keys)
This tool scans a single TXT file and finds duplicate entries based on the text up to and including the first = sign.
For example, these lines:
Exit="Έξοδος"
Exit="Exit"
Exit="Leave"
are considered duplicates because they share the same key (Exit=), even though the text after = is different.
How it works:
Select the TXT file you want to scan.
The script checks each line using only the key before/including the first =.
It ignores uppercase/lowercase differences.
When a key appears more than once, all occurrences of that key are included in the report, including the first one.
Why include all occurrences?
Because you can also check the text/voice prompt after the = and decide which translation or wording you want to keep. The script does not automatically delete or modify anything, so you can manually review the duplicates and choose the preferred version.
Output:
A new file named Duplicates.txt is created in the same folder as the original TXT file. It contains all lines belonging to duplicate keys, making it easy to review different translations or voice prompts.
How to use
Copy the entire script code, open Windows Notepad, paste the code into a new document, and then go to File → Save As. Choose your Desktop as the save location, enter the filename (e.g. CompareTXT.v2.ps1 or FindDuplicates.ps1), set Save as type to All Files (*.*), and save it. Make sure the file is saved with the .ps1 extension and not .txt. (UTF-8)
Place the script on your Windows Desktop.
Run it using PowerShell. If script execution is restricted by Windows, use:
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\Desktop\CompareTXT.v2.ps1"
(Change the filename in the command if you are running the duplicate finder.)
Select the TXT file(s) when the file selection windows appear.
The result file is automatically created in the same folder as the first selected TXT file (or the scanned file).
Output files
Missing.txt – entries found in the first file but missing from the second.
Duplicates.txt – all occurrences of duplicate keys, including their different texts after =.
The original files are never modified.
These tools are intended to make it easier to maintain, compare, and clean up i8n/voice files, especially when working with different skins, versions, translations, or personal voice files.
Hope someone else finds them useful!
Last edited by Magnetron; Today at 11:15 AM. Reason: Approved post
Bookmarks