How can I find all translations that are no longer used in the source code?
There are two main workflows depending on how you manage translation IDs:
You're using an extraction tool:
The tool extracts translation IDs from your source code and creates a translation file for the source language. When an ID is no longer used, it won’t appear in that file anymore. BabelEdit will show these as entries with empty source texts, while translations in other languages still exist.
To find them:
- Open the Set Filter dialog
- Filter by: Translation text is empty for <source language>
To remove them entirely:
- Use Edit menu → Remove unused IDs to delete them and their translations (no previous filtering necessary).
You're managing IDs manually (no extraction tool):
BabelEdit can scan your source code for usage:
- Go to Toolbar → Configuration → Source root and set the source code root directory.
- Open the Set Filter dialog and choose "Usage: not used in source code".
Note: This feature is not available for PO files.