Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Translate resource owner names in templates

  • Loading branch information...
commit 818d93a829a0dfb10e1a8f95b9c28250c7bc4cc0 1 parent 80407eb
@asm89 asm89 authored
View
2  Resources/views/Connect/connect_confirm.html.twig
@@ -4,7 +4,7 @@
<h3>{{ 'header.connecting' | trans({}, 'HWIOAuthBundle')}}</h3>
<div class="row">
<div class="span6">
- <p>{{ 'connect.confirm.text' | trans({'%service%': service, '%displayName%': userInformation.displayName}, 'HWIOAuthBundle') }}</p>
+ <p>{{ 'connect.confirm.text' | trans({'%service%': service | trans({}, 'HWIOAuthBundle'), '%displayName%': userInformation.displayName}, 'HWIOAuthBundle') }}</p>
<p>
<form action="{{ path('hwi_oauth_connect_service', {'service': service, 'key': key}) }}" {{ form_enctype(form) }} method="POST" class="fos_user_registration_register">
{{ form_widget(form) }}
View
2  Resources/views/Connect/login.html.twig
@@ -5,6 +5,6 @@
<span>{{ error }}</span>
{% endif %}
{% for owner in resource_owners %}
- <a href="{{ owner.url }}">{{ owner.name | trans }}</a> <br />
+ <a href="{{ owner.url }}">{{ owner.name | trans({}, 'HWIOAuthBundle') }}</a> <br />
{% endfor %}
{% endblock hwi_oauth_content %}
Please sign in to comment.
Something went wrong with that request. Please try again.