From c5460169649794daf06d51d40fe2b8670ac4ffab Mon Sep 17 00:00:00 2001 From: Jack Zhang Date: Mon, 31 Jul 2017 17:37:07 -0700 Subject: [PATCH] portico: Add translations bundle to portico pages. --- templates/zerver/portico.html | 1 + tools/linter_lib/custom_check.py | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/zerver/portico.html b/templates/zerver/portico.html index fb33791b55..2ec882043e 100644 --- a/templates/zerver/portico.html +++ b/templates/zerver/portico.html @@ -8,6 +8,7 @@ {% block customhead %} {% stylesheet 'portico' %} +{{ render_bundle('translations') }} {% endblock %} {% block content %} diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.py index ca9378c705..decaa46ddc 100644 --- a/tools/linter_lib/custom_check.py +++ b/tools/linter_lib/custom_check.py @@ -154,9 +154,6 @@ def build_custom_checkers(by_lang): 'frontend_tests/node_tests', 'static/js/debug.js']), 'description': 'console.log and similar should not be used in webapp'}, - {'pattern': 'i18n[.]t', - 'include_only': set(['static/js/portico/']), - 'description': 'i18n.t is not available in portico pages yet'}, {'pattern': '[.]text\(["\'][a-zA-Z]', 'description': 'Strings passed to $().text should be wrapped in i18n.t() for internationalization'}, {'pattern': 'compose_error\(["\']',