summaryrefslogtreecommitdiff
path: root/src/lib/external_audio_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-02-28 22:20:07 +0000
committerCarl Hetherington <cth@carlh.net>2013-02-28 22:20:07 +0000
commit0d3f5aae5b99832b7c5d55f32f5bccb365caa3fd (patch)
tree674f3fe851d2ddd619102ca60c54bc1473a56ffe /src/lib/external_audio_decoder.cc
parent8bb4ba8f424cac07f7730fca99d5333fcd76a84d (diff)
Various markup and tweaks.
Diffstat (limited to 'src/lib/external_audio_decoder.cc')
-rw-r--r--src/lib/external_audio_decoder.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/external_audio_decoder.cc b/src/lib/external_audio_decoder.cc
index 9c01bfb34..1248b5a3b 100644
--- a/src/lib/external_audio_decoder.cc
+++ b/src/lib/external_audio_decoder.cc
@@ -23,6 +23,8 @@
#include "film.h"
#include "exceptions.h"
+#include "i18n.h"
+
using std::vector;
using std::string;
using std::stringstream;
@@ -67,11 +69,11 @@ ExternalAudioDecoder::open_files (sf_count_t & frames)
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);
@@ -89,7 +91,7 @@ ExternalAudioDecoder::open_files (sf_count_t & frames)
first = false;
} else {
if (info.frames != frames) {
- throw DecodeError ("external audio files have differing lengths");
+ throw DecodeError (_("external audio files have differing lengths"));
}
}
}
@@ -158,7 +160,7 @@ ExternalAudioStream::create (string t, optional<int> v)
stringstream s (t);
string type;
s >> type;
- if (type != "external") {
+ if (type != N_("external")) {
return shared_ptr<ExternalAudioStream> ();
}
@@ -182,5 +184,5 @@ ExternalAudioStream::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);
}