There are both files: device_drivers_KOBOTOUCHEXTENDED.py.json and device_drivers_KOBOTOUCHEXTENDED.py.
I attached the json and the py file zipped up to this post.
Deleting the line with "file_copy_dir" did not change anything.
The file device_drivers_KOBOTOUCHEXTENDED.py does not contain the string 'lang', so I could not remove that.
I started Calibre after deleting the json file and the file was recreated with the same content again. The issue was still there.
The I removed both files and after restarting Calibre I was able to reach the preferences for the plugin, but as you said all preferences were gone.
Thank you for the help.
Edit: Just tried to adapt the settings and saving them ran into the issue David wrote about above:
Spoiler:
calibre, version 3.41.3
ERROR: Unhandled exception: <b>KeyError</b>:u'replace_lang'
calibre 3.41.3 Portable embedded-python: True is64bit: False
Windows-10-10.0.17134-SP0 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '10', '10.0.17134')
Python 2.7.15+
Windows: ('10', '10.0.17134', 'SP0', u'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 6, 1) && Find Duplicates (1, 6, 3) && Annotations (1, 9, 0) && Goodreads (1, 4, 0) && KePub Output (3, 1, 0) && Obok DeDRM (6, 5, 4) && KindleUnpack - The Plugin (0, 81, 5) && KoboTouchExtended (3, 1, 1) && Modify ePub (1, 3, 13) && Diaps Editing Toolbag (0, 3, 5) && User Category (1, 5, 3) && FanFicFare (3, 7, 0) && Quality Check (1, 9, 11) && Open With (1, 5, 10) && Generate Cover (1, 5, 21) && EpubSplit (2, 7, 0) && Count Pages (1, 8, 2) && Import List (1, 3, 0) && EpubMerge (2, 5, 0) && Reading List (1, 6, 6)
Traceback (most recent call last):
File "site-packages\calibre\gui2\device.py", line 990, in configure_connected_device
File "calibre_plugins.kobotouch_extended.device.driver" , line 168, in save_settings
File "site-packages\calibre\devices\kobo\driver.py", line 3156, in save_settings
File "calibre_plugins.kobotouch_extended.device.koboext ended_config", line 63, in commit
File "site-packages\calibre\utils\config_base.py", line 459, in __delitem__
KeyError: u'replace_lang'
Second edit:
Even with the error above, the new setting was written and is usable.