Bonjour-> Hello-> Hola: Traduce tu Sitio
Unleash the magic of Symfony's Translation component. Translate content, use localized routing, add a language switcher and connect to a translation provider!
- intermediate
- 158 students
- EN/ES Captions
- EN/ES Script
- Certificate of Completion
Your Guides
About this course
Toma una aplicación Symfony en un solo idioma y conviértela en una experiencia multilingüe utilizando el componente "Traducción". Tomaremos Spacebar, una plataforma de blogs con temática espacial, y haremos que que admita varios idiomas, sin complicar en exceso el código base.
Aprenderás a:
- Instalar y configurar el componente Traducción de Symfony
- Traducir rutas y URLs para una navegación adaptada a cada idioma
- Añadir un conmutador de idiomas a tu interfaz de usuario
- Organizar mensajes mediante catálogos y dominios
- Traducir contenido tanto en PHP como en Twig
- Conectarte a proveedores de traducción de terceros
¡Ya sea que estés preparando tu aplicación para usuarios de todo el mundo o si sólo estás añadiendo soporte para un segundo idioma, este curso te dará las herramientas para hacerlo correctamente!
Next courses in the Symfony 7: Learn More Tricks section of the Symfony 7 Track!
2 Comments
Hey @Davide-S!
We aren't covering database translations in this course.... but stay tuned... I have a followup course that will address at least some of what you discuss... in an interesting way!
--Kevin
Will you also talk about the translation of doctrine entities?
...and how to handle translations with the symfony form system?
...and how to generate translated slug for each object?
...and how to manage nested tree of translated objects with translated slug? (a super-pro problem)
I've always preferred the knplabs/doctrine-behaviors solution but sadly is now abandoned.
I know that gedmo/doctrine-extensions could be an alternative but I don't like the fact that the developer have to choose a default locale and the translations are stored in a single big table and the integration with the form system is a bit more difficult
I have no clear solution for that problem.
A tutorial on that wold help a lot.
Thanks