1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

fix checking enable_in_context_translation

This commit is contained in:
Sylvain 2019-12-23 13:49:46 +01:00
parent f05547e46e
commit 3412d9e35c

View File

@ -12,7 +12,7 @@
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,600italic,700,800,700italic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700,300italic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Loved+by+the+King' rel='stylesheet' type='text/css'>
<% if Rails.env.staging? && Rails.application.secrets.enable_in_context_translation == 'true' %>
<% if Rails.env.staging? && Rails.application.secrets.enable_in_context_translation %>
<script type="text/javascript">
var _jipt = [];
_jipt.push(['project', 'fab-manager']);
@ -126,7 +126,7 @@
<!-- i18n of external libraries -->
<script type="text/javascript" src="<%= asset_path "angular-i18n/angular-locale_#{Rails.application.secrets.angular_locale}.js" %>"></script>
<script type="text/javascript" src="<%= asset_path "messageformat/locale/#{Rails.application.secrets.messageformat_locale}.js" %>"></script>
<% if Rails.env.staging? && Rails.application.secrets.enable_in_context_translation == 'true' %>
<% if Rails.env.staging? && Rails.application.secrets.enable_in_context_translation %>
<script type="text/javascript">MessageFormat.locale.ach=function(n){return n===0||n===1?"one":"other"};</script>
<% end %>
<!-- if required locale does not exist, use the default "en" -->