diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-01-07 01:05:10 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-01-07 01:05:10 +0000 |
| commit | b967397b8a6f2d742a35e3c56599ed982b3264d8 (patch) | |
| tree | b083e760f98a1ac3f03932e6413fec7cf7f54688 /src | |
| parent | f21abdf7e6dd18fc96def13d42741bbd8f5998a5 (diff) | |
Try to fix plural on audio channels.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/film_editor.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc index 22fd1cc14..dece24568 100644 --- a/src/wx/film_editor.cc +++ b/src/wx/film_editor.cc @@ -1075,7 +1075,12 @@ FilmEditor::setup_audio_details () _audio->SetLabel (wxT ("")); } else { stringstream s; - s << _film->audio_stream()->channels () << " channels, " << _film->audio_stream()->sample_rate() << "Hz"; + if (_film->audio_stream()->channels() == 1) { + s << "1 channel"; + } else { + s << _film->audio_stream()->channels () << " channels"; + } + s << ", " << _film->audio_stream()->sample_rate() << "Hz"; _audio->SetLabel (std_to_wx (s.str ())); } } |
