@@ -104,16 +104,11 @@ To inspect all messages in the ``fr`` locale for the application, run:
104
104
105
105
$ php bin/console debug:translation fr
106
106
107
- +----------+------------------+----------------------+-------------------------------+
108
- | State(s) | Id | Message Preview (fr) | Fallback Message Preview (en) |
109
- +----------+------------------+----------------------+-------------------------------+
110
- | o | Symfony is great | J'aime Symfony | Symfony is great |
111
- +----------+------------------+----------------------+-------------------------------+
112
-
113
- Legend:
114
- x Missing message
115
- o Unused message
116
- = Same as the fallback message
107
+ --------- ------------------ ---------------------- -------------------------------
108
+ State Id Message Preview (fr) Fallback Message Preview (en)
109
+ --------- ------------------ ---------------------- -------------------------------
110
+ unused Symfony is great J'aime Symfony Symfony is great
111
+ --------- ------------------ ---------------------- -------------------------------
117
112
118
113
It shows you a table with the result when translating the message in the ``fr ``
119
114
locale and the result when the fallback locale ``en `` would be used. On top
@@ -129,16 +124,11 @@ output:
129
124
130
125
$ php bin/console debug:translation fr
131
126
132
- +----------+------------------+----------------------+-------------------------------+
133
- | State(s) | Id | Message Preview (fr) | Fallback Message Preview (en) |
134
- +----------+------------------+----------------------+-------------------------------+
135
- | | Symfony is great | J'aime Symfony | Symfony is great |
136
- +----------+------------------+----------------------+-------------------------------+
137
-
138
- Legend:
139
- x Missing message
140
- o Unused message
141
- = Same as the fallback message
127
+ --------- ------------------ ---------------------- -------------------------------
128
+ State Id Message Preview (fr) Fallback Message Preview (en)
129
+ --------- ------------------ ---------------------- -------------------------------
130
+ Symfony is great J'aime Symfony Symfony is great
131
+ --------- ------------------ ---------------------- -------------------------------
142
132
143
133
The state is empty which means the message is translated in the ``fr `` locale
144
134
and used in one or more templates.
@@ -150,16 +140,11 @@ for the ``fr`` locale and run the command, you will get:
150
140
151
141
$ php bin/console debug:translation fr
152
142
153
- +----------+------------------+----------------------+-------------------------------+
154
- | State(s) | Id | Message Preview (fr) | Fallback Message Preview (en) |
155
- +----------+------------------+----------------------+-------------------------------+
156
- | x = | Symfony is great | J'aime Symfony | Symfony is great |
157
- +----------+------------------+----------------------+-------------------------------+
158
-
159
- Legend:
160
- x Missing message
161
- o Unused message
162
- = Same as the fallback message
143
+ --------- ------------------ ---------------------- -------------------------------
144
+ State Id Message Preview (fr) Fallback Message Preview (en)
145
+ --------- ------------------ ---------------------- -------------------------------
146
+ missing Symfony is great J'aime Symfony Symfony is great
147
+ --------- ------------------ ---------------------- -------------------------------
163
148
164
149
The state indicates the message is missing because it is not translated in
165
150
the ``fr `` locale but it is still used in the template. Moreover, the message
@@ -174,16 +159,11 @@ translation file in the ``fr`` locale and run the command, you will get:
174
159
175
160
$ php bin/console debug:translation fr
176
161
177
- +----------+------------------+----------------------+-------------------------------+
178
- | State(s) | Id | Message Preview (fr) | Fallback Message Preview (en) |
179
- +----------+------------------+----------------------+-------------------------------+
180
- | = | Symfony is great | J'aime Symfony | Symfony is great |
181
- +----------+------------------+----------------------+-------------------------------+
182
-
183
- Legend:
184
- x Missing message
185
- o Unused message
186
- = Same as the fallback message
162
+ ---------- ------------------ ---------------------- -------------------------------
163
+ State Id Message Preview (fr) Fallback Message Preview (en)
164
+ ---------- ------------------ ---------------------- -------------------------------
165
+ fallback Symfony is great J'aime Symfony Symfony is great
166
+ ---------- ------------------ ---------------------- -------------------------------
187
167
188
168
You can see that the translations of the message are identical in the ``fr ``
189
169
and ``en `` locales which means this message was probably copied from French
0 commit comments