José Abílio Oliveira Matos <[EMAIL PROTECTED]> writes: | On Thursday 01 August 2002 12:41, Lars Gullik Bjønnes wrote: >> | José> One other question, does reLyX has internationalization? I >> | José> have moved all the error, and warnings, messages to a single >> | José> file to easy that possibility. >> >> won't that make the code harder to read? > | class Error: | invalid_file = "Invalid LyX file\n" | invalid_format = "Invalid LyX format\n" | format_not_supported = "Format not supported\n" | same_format = "No convertion because start and ending formats are the | same\n" | newer_format = "Starting format is newer than end format\n" > | error = Error() > | Now in the files you use: > | sys.stderr.write(error.invalid_file) > | how is that harder to read than say: > | sys.stderr.write("Invalid LyX file\n")
no but... sys.stderr.write(same_format); does not exactly tell a lot... There is a reason why gettext is not using this method... -- Lgb