This is a script to translate hotkeys in Revit software to different languages. (See Rationale below for more info)
Right now only translating exported file that resides in the same folder as executable is available. Ideally, script can try to patch the file where it resides and being used by Revit, so that user won't have to export it and then import back translated one.
- Download executable for your system from
dist
folder - Export
KeyboardShortcuts.xml
from your Revit and put it in the same folder as executable - Run executable
- Translated file will reside in the same folder under
KeyboardShortcuts-TRANSLATED.xml
name
Revit software has is declaring it's hotkeys in XML file of such structure:
<Shortcuts>
<ShortcutItem CommandId="ID_BUTTON_SELECT" Shortcuts="MD" />
....
</Shortcuts>
And that piece of Software is created in such way that if user has another language enabled on his keyboard layout hotkeys won't work! (ಠ_ಠ)
This can be fixed by adding the same hotkey in desired language like this:
<Shortcuts>
<ShortcutItem Shortcuts="MD#ьв" />
....
</Shortcuts>
As people were doing those translations manually, it makes sense to automate it
This script does it. that's it