Commit 372b24ef authored by echel0n's avatar echel0n
Browse files

Fixed 'No Content' error and added more translated languages

parent 73cd8caf
...@@ -276,8 +276,9 @@ module.exports = function (grunt) { ...@@ -276,8 +276,9 @@ module.exports = function (grunt) {
}, },
exec: { exec: {
// Translations // Translations
'crowdin_upload': {cmd: 'crowdin-cli-py upload sources'}, 'crowdin_upload_sources': {cmd: 'crowdin-cli-py upload sources'},
'crowdin_download': {cmd: 'crowdin-cli-py download'}, 'crowdin_upload_translations': {cmd: 'crowdin-cli-py upload translations'},
'crowdin_download_translations': {cmd: 'crowdin-cli-py download'},
'babel_extract': {cmd: 'python setup.py extract_messages'}, 'babel_extract': {cmd: 'python setup.py extract_messages'},
'babel_update': {cmd: 'python setup.py update_catalog'}, 'babel_update': {cmd: 'python setup.py update_catalog'},
'babel_compile': {cmd: 'python setup.py compile_catalog'}, 'babel_compile': {cmd: 'python setup.py compile_catalog'},
...@@ -432,7 +433,7 @@ module.exports = function (grunt) { ...@@ -432,7 +433,7 @@ module.exports = function (grunt) {
var tasks = [ var tasks = [
'exec:babel_extract', 'exec:babel_extract',
'exec:crowdin_upload' 'exec:crowdin_upload_sources'
]; ];
if (process.env.CROWDIN_API_KEY) { if (process.env.CROWDIN_API_KEY) {
...@@ -446,7 +447,7 @@ module.exports = function (grunt) { ...@@ -446,7 +447,7 @@ module.exports = function (grunt) {
grunt.log.writeln('Downloading and compiling translations from Crowdin...'.magenta); grunt.log.writeln('Downloading and compiling translations from Crowdin...'.magenta);
var tasks = [ var tasks = [
'exec:crowdin_download', 'exec:crowdin_download_translations',
'exec:babel_compile', 'exec:babel_compile',
'po2json' 'po2json'
]; ];
......
# Changelog # Changelog
- * a271d79 - 2017-10-16: Restart clears current user but does NOT clear cookies, prevents issues with restart page - * 0fa1511 - 2017-10-16: Fixed 'No Content' error and added more translated languages
- * 73cd8ca - 2017-10-16: Restart clears current user but does NOT clear cookies, prevents issues with restart page
- * d8302b2 - 2017-10-16: Clears current user on restarts to disable header and footers and force re-login - * d8302b2 - 2017-10-16: Clears current user on restarts to disable header and footers and force re-login
- * 7927b8c - 2017-10-16: Clears current user on restarts to disable header and footers and force re-login - * 7927b8c - 2017-10-16: Clears current user on restarts to disable header and footers and force re-login
- * 4f214c4 - 2017-10-16: Disabled header for restart page - * 4f214c4 - 2017-10-16: Disabled header for restart page
......
...@@ -382,8 +382,6 @@ class WebRoot(WebHandler): ...@@ -382,8 +382,6 @@ class WebRoot(WebHandler):
with io.open(locale_file, 'r') as f: with io.open(locale_file, 'r') as f:
return f.read() return f.read()
self.set_status(204)
def apibuilder(self): def apibuilder(self):
def titler(x): def titler(x):
return (remove_article(x), x)[not x or sickrage.srCore.srConfig.SORT_ARTICLE] return (remove_article(x), x)[not x or sickrage.srCore.srConfig.SORT_ARTICLE]
...@@ -1115,7 +1113,7 @@ class Home(WebHandler): ...@@ -1115,7 +1113,7 @@ class Home(WebHandler):
if str(pid) != str(sickrage.srCore.PID) and not force: if str(pid) != str(sickrage.srCore.PID) and not force:
return self.redirect('/' + sickrage.srCore.srConfig.DEFAULT_PAGE + '/') return self.redirect('/' + sickrage.srCore.srConfig.DEFAULT_PAGE + '/')
# clear current user # clear current user to disable header and footer
self.current_user = None self.current_user = None
if not force: self._genericMessage(_("Restarting"), _("SiCKRAGE is restarting")) if not force: self._genericMessage(_("Restarting"), _("SiCKRAGE is restarting"))
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment