diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/hints.cc | 12 | ||||
| -rw-r--r-- | src/lib/hints.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/hints.cc b/src/lib/hints.cc index 6c574d991..d472dfc03 100644 --- a/src/lib/hints.cc +++ b/src/lib/hints.cc @@ -397,7 +397,7 @@ try auto const check_loudness_done = check_loudness (); check_ffec_and_ffmc_in_smpte_feature (); check_out_of_range_markers (); - check_text_languages (); + check_subtitle_languages(); check_audio_language (); if (check_loudness_done) { @@ -647,14 +647,14 @@ Hints::join () void -Hints::check_text_languages () +Hints::check_subtitle_languages() { for (auto i: film()->content()) { for (auto j: i->text) { - if (j->use() && !j->language()) { - hint (_("At least one piece of subtitle or closed caption content has no specified language. " - "It is advisable to set the language for each piece of subtitle or closed caption content " - "in the \"Content→Timed text\", \"Content→Open subtitles\" or \"Content→Closed captions\" tab.")); + if (j->use() && j->type() == TextType::OPEN_SUBTITLE && !j->language()) { + hint (_("At least one piece of subtitle content has no specified language. " + "It is advisable to set the language for each piece of subtitle content " + "in the \"Content→Timed text\" or \"Content→Open subtitles\" tab.")); return; } } diff --git a/src/lib/hints.h b/src/lib/hints.h index b29b1c0fc..9f8bb6aa7 100644 --- a/src/lib/hints.h +++ b/src/lib/hints.h @@ -80,7 +80,7 @@ private: bool check_loudness (); void check_ffec_and_ffmc_in_smpte_feature (); void check_out_of_range_markers (); - void check_text_languages (); + void check_subtitle_languages(); void check_audio_language (); boost::thread _thread; |
