Duplicate messages about file handling

David Faure faure at kde.org
Mon Jul 5 13:53:13 BST 2004


On Monday 05 July 2004 14:43, Andrew Coles wrote:
> I've noticed that a lot of applications, pretty much anything that can save a 
> file to disk, has messages to do with file IO errors - file is 
> write-protected, cannot write to directory... - and so on.  They're also 
> quite liable to having typos in them (exclamation points, can't,...).
> 
> Is there a good home for these messages in one of the libraries, where they 
> could be written and translated once and for all?

This is already done in KIO::buildErrorString, kdelibs/kio/kio/global.cpp,
for error codes coming from kioslaves. Apps are free to use this too, if the codes
match the errors they're seeing [but why would apps do this directly instead of
using kioslaves, in most cases?].

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list