eposta tercüman kullanılarak elde içerik ve yanlış yapılandırmaya sahip çünkü.
# app/config/config.yml
framework:
translator: { fallback: %locale% }
# app/config/parameters.yml
parameters:
locale: en # default locale
ingilizce farklı dilde uygulamanızı yazma Ayrıca eğer anahtar registration.email.message
içine çevrilmiştir emin olun:
etkin tercüman olduğundan emin olun. hat 8 'de
{% block subject %}
{% autoescape false %}
{{ 'registration.email.subject'|trans({'%username%': user.username, '%confirmationUrl%': confirmationUrl}, 'FOSUserBundle') }}
{% endautoescape %}
{% endblock %}
{% block body_text %}
{% autoescape false %}
{{ 'registration.email.message'|trans({'%username%': user.username, '%confirmationUrl%': confirmationUrl}, 'FOSUserBundle') }}
{% endautoescape %}
{% endblock %}
{% block body_html %}{% endblock %}
, 'registration.email.message' e-posta içeriği:
# app/Resources/FOSUserBundle/translations/FOSUserBundle.{your_locale}.yml
registration:
email:
subject: Registration email subject
message: |
Here you can place the content of the email.
It can be multiline and you even have access to
variables %username% and %confirmationUrl%.
. önbelleği temizlemeye çalışın. php app/console önbelleğinden sonra benim için çalışır: temizle –
Mükemmel çalışır. Çok teşekkürler. – mtchuente