File tree 3 files changed +16
-15
lines changed
contributing/documentation
3 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -136,18 +136,18 @@ different formats, XLIFF being the recommended format:
136
136
</file >
137
137
</xliff >
138
138
139
+ .. code-block :: yaml
140
+
141
+ # messages.fr.yml
142
+ Symfony2 is great : J'aime Symfony2
143
+
139
144
.. code-block :: php
140
145
141
146
// messages.fr.php
142
147
return array(
143
148
'Symfony2 is great' => 'J\'aime Symfony2',
144
149
);
145
150
146
- .. code-block :: yaml
147
-
148
- # messages.fr.yml
149
- Symfony2 is great : J'aime Symfony2
150
-
151
151
For information on where these files should be located, see
152
152
:ref: `book-translation-resource-locations `.
153
153
@@ -638,18 +638,18 @@ bundle.
638
638
</file >
639
639
</xliff >
640
640
641
+ .. code-block :: yaml
642
+
643
+ # validators.en.yml
644
+ author.name.not_blank : Please enter an author name.
645
+
641
646
.. code-block :: php
642
647
643
648
// validators.en.php
644
649
return array(
645
650
'author.name.not_blank' => 'Please enter an author name.',
646
651
);
647
652
648
- .. code-block :: yaml
649
-
650
- # validators.en.yml
651
- author.name.not_blank : Please enter an author name.
652
-
653
653
Translating Database Content
654
654
----------------------------
655
655
Original file line number Diff line number Diff line change @@ -127,18 +127,18 @@ recommended format. These files are parsed by one of the loader classes.
127
127
</file >
128
128
</xliff >
129
129
130
+ .. code-block :: yaml
131
+
132
+ Symfony2 is great : J'aime Symfony2
133
+ symfony2.great : J'aime Symfony2
134
+
130
135
.. code-block :: php
131
136
132
137
return array(
133
138
'Symfony2 is great' => 'J\'aime Symfony2',
134
139
'symfony2.great' => 'J\'aime Symfony2',
135
140
);
136
141
137
- .. code-block :: yaml
138
-
139
- Symfony2 is great : J'aime Symfony2
140
- symfony2.great : J'aime Symfony2
141
-
142
142
.. sidebar :: Using Real or Keyword Messages
143
143
144
144
This example illustrates the two different philosophies when creating
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ Configuration examples should show all supported formats using
80
80
* **Configuration ** (including services and routing): YAML, XML, PHP
81
81
* **Validation **: YAML, Annotations, XML, PHP
82
82
* **Doctrine Mapping **: Annotations, YAML, XML, PHP
83
+ * **Translation **: XML, YAML, PHP
83
84
84
85
Example
85
86
~~~~~~~
You can’t perform that action at this time.
0 commit comments