Skip to content

Commit f4cbe07

Browse files
committed
added a YAML example for translations
1 parent 91f9615 commit f4cbe07

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

guides/translation.rst

+6-1
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,14 @@ unique identifier:
125125
126126
return array(
127127
'Symfony2 is great' => 'J\'aime Symfony2',
128-
'symfony2.great' => 'J\'aime Symfony2',
128+
'symfony2.great' => 'J\'aime Symfony2',
129129
);
130130
131+
.. code-block:: yaml
132+
133+
Symfony2 is great: J'aime Symfony2
134+
symfony2.great: J'aime Symfony2
135+
131136
.. note::
132137
You can also store translations in a database, or any other storage by
133138
providing a custom class implementing the

0 commit comments

Comments
 (0)