fengalin / media-toc

Build a table of contents from a media file or split a media file into chapters
MIT License
73 stars 3 forks source link

Handle localized errors #104

Closed fengalin closed 6 years ago

fengalin commented 6 years ago

Use failure (to be released as 1.0) for error handling.

Display errors as notifications using something like GtkInfoBar.

fengalin commented 6 years ago

Use log to trace errors. E.g., when an thumbnail image can't be decoded in InfoController, the error should be logged, not just ignored.

It may be a good idea to use an i20n tool while at it. See also: https://github.com/snuk182/locate-locale For Glade to be able to translate strings, it might be necessary to use https://github.com/Koka/gettext-rs See if glib i18n can be used.