#include "film.h"
#include "exceptions.h"
+#include "i18n.h"
+
using std::vector;
using std::string;
using std::stringstream;
SF_INFO info;
SNDFILE* s = sf_open (files[i].c_str(), SFM_READ, &info);
if (!s) {
- throw DecodeError ("could not open external audio file for reading");
+ throw DecodeError (_("could not open external audio file for reading"));
}
if (info.channels != 1) {
- throw DecodeError ("external audio files must be mono");
+ throw DecodeError (_("external audio files must be mono"));
}
sndfiles.push_back (s);
first = false;
} else {
if (info.frames != frames) {
- throw DecodeError ("external audio files have differing lengths");
+ throw DecodeError (_("external audio files have differing lengths"));
}
}
}
stringstream s (t);
string type;
s >> type;
- if (type != "external") {
+ if (type != N_("external")) {
return shared_ptr<ExternalAudioStream> ();
}
string
ExternalAudioStream::to_string () const
{
- return String::compose ("external %1 %2", _sample_rate, _channel_layout);
+ return String::compose (N_("external %1 %2"), _sample_rate, _channel_layout);
}