Closed radinamatic closed 9 years ago
Retesting the scenario with French locale gave similar results, but no error on loading the:
[05/Jul/2015 19:39:42] "GET /content/locale/js/i18n/fr.js HTTP/1.1" 200 1453
As above, CC button is visible in the video player control bar, it lists the supposedly available captions, but none can actually be loaded, despite being present in the respective \kalite\static\srt\<locale>\subtitles
folder:
Loading new static items like subtitle files that have just been downloaded require that you have restarted the server. That's because the server runs collectstatic
during initialization.
Can you verify if the results indeed the same after restarting?
Indeed, the subs appeared after restarting the server... :+1:
I would recommend giving stronger emphasis on the server restart requirement in the documentation then what it has now ("if you feel the need to reboot" or "you may want to restart your server"). If subtitles cannot be seen without restarting, then it is a MUST. I will try to add a PR to that effect tomorrow.
Yes, this should be a very visible message.
Missing instructions for server restart should be a blocking issue, because it restarting the server because of adding subtitles is absolutely not intuitive!!
I replaced this issue with #4034 to make it a bit shorter to read :)
Btw nice debugging!!! Thanks for the data, it made it very easy to spot that it was an issue with the static files. :+1:
Yeah, it figures it would make it easier for you guys to pinpoint the 'whys', if we spell out all the details of 'whats' and 'hows'... ;)
Branch: 0.14.x
Current Behavior: Spanish locale (unsure about others) is not showing properly. At first I noticed errors about
\content\locale\js\i18n\es.js
(file is actually there on my HD):On updating the Spanish language pack, got some
404
errors and theWARNING:kalite:No es_icu.js file found in locale_path d:\github15\KA\ka-lite\locale/
, not sure if it's relevant. This was the command line output during the update:Exercises that in the sidebar appear to be available, fail to load:
Subtitles (both English & Spanish), that are present in the
\kalite\static\srt\es\subtitles
and\kalite\static\srt\en\subtitles
also fail to load:CC button is visible in the video player control bar, which suggests it's a different problems from the one we had in #3831 that prevents subtitles from loading.
Steps to reproduce: