View Single Post
Old 05-04-2021, 02:59 AM   #9
wold
Zealot
wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.
 
Posts: 137
Karma: 87012
Join Date: Apr 2021
Device: Lux 5, Libra 2, PRS-T2N
Quote:
Originally Posted by Chaley
I could add a template function that returns the value of an (English) string in the current language locale, but I am not yet convinced that it would be useful.
Thanks, but no need for it yet. I'll also explore the mentioned gettext route.

To clarify, this involved matching 'exotic formats' on the device with calibre. The device uses the filename as title. However, given calibre appends the author to the filename, it can't be easily matched back to calibre's title. Regex substitution works, but I forgot about localization of 'Unknown'. For now the part is removed, as it's not vital.

This also concerns possible future utils. Not wanting to get stuck at 99%.
wold is offline   Reply With Quote