}
if (e < 0) {
if (_path) {
- throw OpenFileError (_path->string(), e, true);
+ throw OpenFileError (_path->string(), e, OpenFileError::READ);
} else {
- /* XXX: this needs to be marked translatable after the string freeze is over */
- boost::throw_exception(DecodeError(String::compose("Could not decode image (%1)", e)));
+ boost::throw_exception(DecodeError(String::compose(_("Could not decode image (%1)"), e)));
}
}