Python error for language other than english
Hi,
first let me thank you for this plugin as it greatly reduces the work to
keep my reader updated from calibre.
I tried to use your 'Auto populate from column name' feature from a
boolean column I use that is named #toberead.
Your default values of Y or N (translated to #toberead:yes and
#toberead:no in action.py at line 1211 and 1213) will always give me a
parse error, a manually inserted true or false will not work as
action.py puts a "=" in at line 1217.
The reason for the error is the localization (I use the german language
in calibre) and how python behaves. In Python, boolean fields in german
are ja or nein - don't ask me for all the other languages that are
possible. However, true and false work without any problem. If I leave
the value field empty, action.py treats it as #toberead:false which
works flawlessly - although in exactly the wrong way for me :-(
Could you change line 1211 to:
query = column_name + ':true'
and line 1213 to:
query = column_name + ':false'
This should work for all languages.
Regards
|