diff --git a/cms/djangoapps/contentstore/video_storage_handlers.py b/cms/djangoapps/contentstore/video_storage_handlers.py index 1433bf2fc3..87086c9951 100644 --- a/cms/djangoapps/contentstore/video_storage_handlers.py +++ b/cms/djangoapps/contentstore/video_storage_handlers.py @@ -724,7 +724,9 @@ def get_all_transcript_languages(): third_party_transcription_languages.update(cielo_fidelity['PREMIUM']['languages']) third_party_transcription_languages.update(cielo_fidelity['PROFESSIONAL']['languages']) - all_languages_dict = dict(settings.ALL_LANGUAGES, **third_party_transcription_languages) + # combines ALL_LANGUAGES with additional languages that should be supported for transcripts + extended_all_languages = settings.ALL_LANGUAGES + settings.EXTENDED_VIDEO_TRANSCRIPT_LANGUAGES + all_languages_dict = dict(extended_all_languages, **third_party_transcription_languages) # Return combined system settings and 3rd party transcript languages. all_languages = [] for key, value in sorted(all_languages_dict.items(), key=lambda k_v: k_v[1]): diff --git a/cms/envs/common.py b/cms/envs/common.py index e09c2b51e1..55861eed44 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -1563,6 +1563,9 @@ YOUTUBE = { YOUTUBE_API_KEY = 'PUT_YOUR_API_KEY_HERE' +# Additional languages that should be supported for video transcripts, not included in ALL_LANGUAGES +EXTENDED_VIDEO_TRANSCRIPT_LANGUAGES = [] + ############################# SETTINGS FOR VIDEO UPLOAD PIPELINE ############################# VIDEO_UPLOAD_PIPELINE = {