Description: 22/11/2022
++++++++++++++++++
Symfony Translations Series
++++++++++++++++++
"The end result we reaching for is so that the client or administrator
of the application can change any translation them selves, e.g. spelling
mistakes, change grammar, add languages to the application or change the
button wording from Sign In to Login and back a gain, eish, instead of
bugging me for these changes."
++++++++++++++++++
Symfony Translations Part I - The Basics
++++++++++++++++++
Continuing from the previous video, we continue with Symfony translations,
I'm going to create a new controller for the bootstrap cheatsheet to keep
it separate from the landing page template, so we can always return to
for reference later.
Then we can start with some: -
- basic translations on the landing page just to show how it works
- more advance translation e.g so the user can chose there language preference,
we will create
our first subscriber\listener for the application here
- create an entity to store all translations export the translation .*yaml
file to the root of the application to be used.
The third option above will be split into more parts:
- going to show how to create an entity with doctrine
- going to show how to create some symfony data-fixtures
- going to show how to create or use CRUD from symfony
- going to show how to export the *.yaml file with controller
The whole idea here is to use "the translations" for the Symfony
Application as an way to show all the different ways Symfony framework
makes things easier, doctrine, crud, data-fixtures etc.
CreateAt: 2024-09-05 19:30:37
|