Skip to content

Commit

Permalink
Updating trans for 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ngodfraind committed Dec 8, 2014
1 parent 7f34e1f commit 92bd9d2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Resources/public/js/ldap.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@
ldap.saveSettings(form);
} else {
modal.simpleContainer(
translator.get('ldap:' + type + '_settings'),
translator.get('ldap:ldap_save_' + type + '_settings_error')
translator.trans(type + '_settings', {}, 'ldap'),
translator.trans('ldap_save_' + type + '_settings_error', {}, 'ldap')
);
}
})
Expand Down
2 changes: 1 addition & 1 deletion Resources/views/Ldap/export.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@

{% block javascripts %}
{{ parent() }}
<script type="text/javascript" src="{{ url('bazinga_exposetranslation_js', { 'domain_name': 'ldap' }) }}"></script>
<script type="text/javascript" src="{{ url('bazinga_jstranslation_js', { 'domain_name': 'ldap' }) }}"></script>
<script type="text/javascript" src="{{ asset('bundles/clarolineldap/js/ldap.js') }}"></script>
{% endblock %}
3 changes: 1 addition & 2 deletions Resources/views/Ldap/groups.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@

{% block javascripts %}
{{ parent() }}
<script type="text/javascript" src="{{ url('bazinga_exposetranslation_js', { 'domain_name': 'ldap' }) }}"></script>
<script type="text/javascript" src="{{ url('bazinga_jstranslation_js', { 'domain_name': 'ldap' }) }}"></script>
<script type="text/javascript" src="{{ asset('bundles/clarolineldap/js/ldap.js') }}"></script>
{% if groups is defined and not groups is empty %}
<script>
Expand All @@ -132,4 +132,3 @@
</script>
{% endif %}
{% endblock %}

3 changes: 1 addition & 2 deletions Resources/views/Ldap/users.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@

{% block javascripts %}
{{ parent() }}
<script type="text/javascript" src="{{ url('bazinga_exposetranslation_js', { 'domain_name': 'ldap' }) }}"></script>
<script type="text/javascript" src="{{ url('bazinga_jstranslation_js', { 'domain_name': 'ldap' }) }}"></script>
<script type="text/javascript" src="{{ asset('bundles/clarolineldap/js/ldap.js') }}"></script>
{% if users is defined and not users is empty %}
<script>
Expand All @@ -148,4 +148,3 @@
</script>
{% endif %}
{% endblock %}

0 comments on commit 92bd9d2

Please sign in to comment.