Skip to content

Commit

Permalink
fix: fixup previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarIthawi committed Mar 27, 2024
1 parent 9a0f19c commit 746702e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions cms/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@
</script>
% endif

% if LANGUAGE_CODE != 'en':
<script type="text/javascript" src="${static.url(jsi18n_path)}"></script>
% elif settings.DEBUG or LANGUAGE_CODE == 'en':
## Provides a fallback for gettext functions for English and in debug mode
<script type="text/javascript" src="${static.url(jsi18n_path)}"></script>
% if settings.DEBUG:
## Provides a fallback for gettext functions in development environment
<script type="text/javascript" src="${static.url('js/src/gettext_fallback.js')}"></script>
% endif
<meta name="viewport" content="width=device-width,initial-scale=1">
Expand Down
7 changes: 3 additions & 4 deletions lms/templates/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,9 @@
}
</script>
% endif
% if LANGUAGE_CODE != 'en':
<script type="text/javascript" src="${static.url(jsi18n_path)}"></script>
% elif settings.DEBUG or LANGUAGE_CODE == 'en':
## Provides a fallback for gettext functions for English and in debug mode
<script type="text/javascript" src="${static.url(jsi18n_path)}"></script>
% if settings.DEBUG:
## Provides a fallback for gettext functions in development environment
<script type="text/javascript" src="${static.url('js/src/gettext_fallback.js')}"></script>
% endif
<script type="text/javascript" src="${static.url(ie11_fix_path)}"></script>
Expand Down

0 comments on commit 746702e

Please sign in to comment.