How to handle Variables in translations

Variables. PHP would be pretty boring without them.

But what do we do when our translations require a variable as part of the resulting output string?

In this video, we find out exactly how to deal with this common occurrence.

Code For This Course

Get the code for this course.


# Title Duration
1 An introduction to Symfony's Translation component 11:20
2 Putting the locale in your URL 10:36
3 Message Domains - crazy name, simple concept 08:14
4 How to handle Variables in translations 04:53
5 Pluralization - Johnny has 1 apple(s) 05:38
6 New in Symfony 2.5 - Generating new languages from the command line 03:07
7 New in Symfony 2.5 - Debugging Translations using the Command Line 05:16