Skip to content

Commit f2c44f5

Browse files
committed
Replace the English translations by key
1 parent 35f2784 commit f2c44f5

File tree

14 files changed

+320
-72
lines changed

14 files changed

+320
-72
lines changed

app/Resources/translations/messages.en.xliff

Lines changed: 256 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,274 @@
22
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
33
<file source-language="en" target-language="en" datatype="plaintext" original="file.ext">
44
<body>
5-
<trans-unit id="1">
5+
<trans-unit id="04a6524e12dc0bad0a3146c8e767ccb6" resname="title.post_list">
66
<source>title.post_list</source>
77
<target>Post List</target>
88
</trans-unit>
9-
<trans-unit id="2">
9+
<trans-unit id="0f979b3ce9426b2631a3fe2790fcff66" resname="action.show">
1010
<source>action.show</source>
1111
<target>Show</target>
1212
</trans-unit>
13-
<trans-unit id="3">
13+
<trans-unit id="78a93d081740517015711367da2007ee" resname="action.edit">
1414
<source>action.edit</source>
1515
<target>Edit</target>
1616
</trans-unit>
17-
<trans-unit id="4">
17+
<trans-unit id="021f4d61fceadf8a10f853084cc0c949" resname="action.create_post">
1818
<source>action.create_post</source>
1919
<target>Create a new post</target>
2020
</trans-unit>
21+
<trans-unit id="9a3fc4e99a5e3ee2b6156bc75d50127e" resname="label.create_post">
22+
<source>label.create_post</source>
23+
<target>Create post</target>
24+
</trans-unit>
25+
<trans-unit id="5c6b5c0769ee5dbee4319b85d5df557b" resname="action.back_to_list">
26+
<source>action.back_to_list</source>
27+
<target>Back to the post list</target>
28+
</trans-unit>
29+
<trans-unit id="cf4fc2a194796551ff7ef0a8ec2dea52" resname="title.edit_post">
30+
<source>title.edit_post</source>
31+
<target>Edit post #%id%</target>
32+
</trans-unit>
33+
<trans-unit id="2ced42ea2e1e8f41aa3f5325cbce70c2" resname="label.save">
34+
<source>label.save</source>
35+
<target>Save changes</target>
36+
</trans-unit>
37+
<trans-unit id="fbef78b7a288981d0cb77292ec57151d" resname="label.delete_post">
38+
<source>label.delete_post</source>
39+
<target>Delete post</target>
40+
</trans-unit>
41+
<trans-unit id="0e0ae1777de9fba6d6aa9c3859c2f7e8" resname="column.title">
42+
<source>column.title</source>
43+
<target>Title</target>
44+
</trans-unit>
45+
<trans-unit id="88090adf0076c9e533202362a61ec120" resname="column.author">
46+
<source>column.author</source>
47+
<target>Author</target>
48+
</trans-unit>
49+
<trans-unit id="339bf6c69b350a19724a88a43d46f226" resname="column.published_at">
50+
<source>column.published_at</source>
51+
<target>Published at</target>
52+
</trans-unit>
53+
<trans-unit id="538b697b5342983842b08d5981d61d61" resname="column.actions">
54+
<source>column.actions</source>
55+
<target>Actions</target>
56+
</trans-unit>
57+
<trans-unit id="665629b382e01fa73eac865cbd389fed" resname="title.post_new">
58+
<source>title.post_new</source>
59+
<target>Post creation</target>
60+
</trans-unit>
61+
<trans-unit id="c0bc2fc156fd49c7847de1c2fc476dce" resname="term.summary">
62+
<source>term.summary</source>
63+
<target>Summary</target>
64+
</trans-unit>
65+
<trans-unit id="221dde6a16335d63826d50ab9aafb153" resname="term.content">
66+
<source>term.content</source>
67+
<target>Content</target>
68+
</trans-unit>
69+
<trans-unit id="6c0c5c4b503fbef258c9890f17256e2a" resname="term.author">
70+
<source>term.author</source>
71+
<target>Author</target>
72+
</trans-unit>
73+
<trans-unit id="9ef1f167a83031f1a0d546260b0695ea" resname="term.published">
74+
<source>term.published</source>
75+
<target>Published</target>
76+
</trans-unit>
77+
<trans-unit id="6bc0617c5b8f09829938c29e0ca586eb" resname="action.edit_contents">
78+
<source>action.edit_contents</source>
79+
<target>Edit contents</target>
80+
</trans-unit>
81+
<trans-unit id="e7a88703d1e70bf8516f19b164e5cdb2" resname="action.delete_post">
82+
<source>action.delete_post</source>
83+
<target>Delete post</target>
84+
</trans-unit>
85+
<trans-unit id="d769c3934d547a0a7d5e1623158d0d20" resname="menu.post_list">
86+
<source>menu.post_list</source>
87+
<target>Post list</target>
88+
</trans-unit>
89+
<trans-unit id="15978f6181234a67568ed28477f2a137" resname="menu.back_to_blog">
90+
<source>menu.back_to_blog</source>
91+
<target>Back to blog</target>
92+
</trans-unit>
93+
<trans-unit id="797a9670e2732097498906b9e515da2d" resname="menu.logout">
94+
<source>menu.logout</source>
95+
<target>Logout</target>
96+
</trans-unit>
97+
<trans-unit id="170ebfa198986e2b77913834c0b4c5c3" resname="menu.homepage">
98+
<source>menu.homepage</source>
99+
<target>Homepage</target>
100+
</trans-unit>
101+
<trans-unit id="163bf4b4eb252ff6259fd476cc5f5f4a" resname="menu.admin">
102+
<source>menu.admin</source>
103+
<target>Backend</target>
104+
</trans-unit>
105+
<trans-unit id="8e8cee46963a98d03e10f2f1cae2fe9a" resname="more_info_check_out">
106+
<source>more_info_check_out</source>
107+
<target>For more information, check out the</target>
108+
</trans-unit>
109+
<trans-unit id="5cb0cea702b8e6e3cfd370d04c9d790e" resname="symfony_doc">
110+
<source>symfony_doc</source>
111+
<target>Symfony doc</target>
112+
</trans-unit>
113+
<trans-unit id="5190738e75fe9f1d2b8516d5f217465b" resname="mit_license">
114+
<source>mit_license</source>
115+
<target>MIT License</target>
116+
</trans-unit>
117+
<trans-unit id="45508766fa21dbc4482d656e3356caa3" resname="title.add_comment">
118+
<source>title.add_comment</source>
119+
<target>Add a comment</target>
120+
</trans-unit>
121+
<trans-unit id="ac3cebfc6d45d308adf89c278fc9eb5e" resname="label.publish_comment">
122+
<source>label.publish_comment</source>
123+
<target>Publish comment</target>
124+
</trans-unit>
125+
<trans-unit id="4bfbf0db73df22d646d141f80acf1f4d" resname="action.sign_in">
126+
<source>action.sign_in</source>
127+
<target>Sign in</target>
128+
</trans-unit>
129+
<trans-unit id="25c0ffb5cd0c4492e5211205efda6f6f" resname="to_publish_a_comment">
130+
<source>to_publish_a_comment</source>
131+
<target>to publish a comment</target>
132+
</trans-unit>
133+
<trans-unit id="44258ba012bacde3f72b6452c2092469" resname="title.comments">
134+
<source>title.comments</source>
135+
<target>%count% comment|%count% comments</target>
136+
</trans-unit>
137+
<trans-unit id="6cd8e5e0a5355ff80b74098f8825186c" resname="commented_on">
138+
<source>commented_on</source>
139+
<target>commented on</target>
140+
</trans-unit>
141+
<trans-unit id="992df2c259d4353f90bd900b11e6eb01" resname="no_comment">
142+
<source>no_comment</source>
143+
<target>Be the first to comment on this post.</target>
144+
</trans-unit>
145+
<trans-unit id="28afaad0dfd92619ad0098358eb9426d" resname="action.edit_post">
146+
<source>action.edit_post</source>
147+
<target>Edit post</target>
148+
</trans-unit>
149+
<trans-unit id="05e776a18694bca884fdeedd3c4bfe84" resname="action.show_code">
150+
<source>action.show_code</source>
151+
<target>Show code</target>
152+
</trans-unit>
153+
<trans-unit id="6aedc9099c10ddb741e3fe695dbea8ba" resname="title.source_code">
154+
<source>title.source_code</source>
155+
<target>Source code used to render this page</target>
156+
</trans-unit>
157+
<trans-unit id="6d9d5f93e32e871f9e117a35eda2f4ae" resname="title.controller_code">
158+
<source>title.controller_code</source>
159+
<target>Controller code</target>
160+
</trans-unit>
161+
<trans-unit id="f12737f0cd6428651d191d5ad06b97f3" resname="not_available">
162+
<source>not_available</source>
163+
<target>Not available</target>
164+
</trans-unit>
165+
<trans-unit id="16dfb3efb800594f778fd912242abda3" resname="title.twig_template_code">
166+
<source>title.twig_template_code</source>
167+
<target>Twig template code</target>
168+
</trans-unit>
169+
<trans-unit id="1c5eeb3081f495d916c60fcc741285fb" resname="action.browse_app">
170+
<source>action.browse_app</source>
171+
<target>Browse application</target>
172+
</trans-unit>
173+
<trans-unit id="a32529da96e80766af0315b864c9ece1" resname="action.browse_admin">
174+
<source>action.browse_admin</source>
175+
<target>Browse backend</target>
176+
</trans-unit>
177+
<trans-unit id="d7d0dc5d9eaeedc89b1c87bd4a21d1ec" resname="title.login">
178+
<source>title.login</source>
179+
<target>Secure Sign in</target>
180+
</trans-unit>
181+
<trans-unit id="717ecfaa9d198197bc4a8a5403461d48" resname="label.username">
182+
<source>label.username</source>
183+
<target>Username</target>
184+
</trans-unit>
185+
<trans-unit id="a14f198f3da0de3396729d0fd7636731" resname="label.password">
186+
<source>label.password</source>
187+
<target>Password:</target>
188+
</trans-unit>
189+
<trans-unit id="30f9ac51531f94f09b0909be04cd4853" resname="label.sign_in">
190+
<source>label.sign_in</source>
191+
<target>Sign in</target>
192+
</trans-unit>
193+
<trans-unit id="f167eeba9225b37ed85266cffbb6e426" resname="column.username">
194+
<source>column.username</source>
195+
<target>Username</target>
196+
</trans-unit>
197+
<trans-unit id="410de667a1539e47b5a2abff9c78d44b" resname="column.password">
198+
<source>column.password</source>
199+
<target>Password</target>
200+
</trans-unit>
201+
<trans-unit id="1b9d139b75269a7e47d5435f50c3df18" resname="column.role">
202+
<source>column.role</source>
203+
<target>Role</target>
204+
</trans-unit>
205+
<trans-unit id="5">
206+
<source>label.title</source>
207+
<target>Title</target>
208+
</trans-unit>
209+
<trans-unit id="6">
210+
<source>label.summary</source>
211+
<target>Summary</target>
212+
</trans-unit>
213+
<trans-unit id="7">
214+
<source>label.content</source>
215+
<target>Content</target>
216+
</trans-unit>
217+
<trans-unit id="8">
218+
<source>label.author_email</source>
219+
<target>Author email</target>
220+
</trans-unit>
221+
<trans-unit id="9">
222+
<source>label.published_at</source>
223+
<target>Published at</target>
224+
</trans-unit>
225+
<trans-unit id="20bef0bda3ce1737bf9708a9c32a4737" resname="description.demo_app">
226+
<source>description.demo_app</source>
227+
<target><![CDATA[This is a <strong>demo application</strong> built in the Symfony Framework to illustrate the recommended way of developing Symfony applications.]]></target>
228+
</trans-unit>
229+
<trans-unit id="0797cde96077085e45e9b5ecc3686cff" resname="description.show_code">
230+
<source>description.show_code</source>
231+
<target><![CDATA[Click on this button to show the source code of the <strong>Controller</strong> and <strong>template</strong> used to render this page.]]></target>
232+
</trans-unit>
233+
<trans-unit id="9d15754f37a26a942b5edcad2da9b5dc" resname="title.homepage">
234+
<source>title.homepage</source>
235+
<target><![CDATA[Welcome to the <strong>Symfony Demo Application</strong>]]></target>
236+
</trans-unit>
237+
<trans-unit id="5086520b77512722bd5af9bbcc795f2e" resname="description.browse_app">
238+
<source>description.browse_app</source>
239+
<target><![CDATA[Browse the <strong>public section</strong> of the demo application.]]></target>
240+
</trans-unit>
241+
<trans-unit id="d69e4aa07e12e8c10d8c8133b684ecdd" resname="description.browse_admin">
242+
<source>description.browse_admin</source>
243+
<target><![CDATA[Browse the <strong>admin backend</strong> of the demo application.]]></target>
244+
</trans-unit>
245+
<trans-unit id="938ecb91df6310f7e0c6b45a561fe357" resname="title.login_help">
246+
<source>title.login_help</source>
247+
<target>Try either of the following users</target>
248+
</trans-unit>
249+
<trans-unit id="d7d9935a52a4e41dd0cbd1e32a2d4c6d" resname="help.role_user">
250+
<source>help.role_user</source>
251+
<target>regular user</target>
252+
</trans-unit>
253+
<trans-unit id="be31f309c74bd604b2622f99a88f434b" resname="help.role_admin">
254+
<source>help.role_admin</source>
255+
<target>administrator</target>
256+
</trans-unit>
257+
<trans-unit id="aad653ca3ee669635f2938b73098b6d7" resname="note">
258+
<source>note</source>
259+
<target>NOTE</target>
260+
</trans-unit>
261+
<trans-unit id="427d36e9d404810a38a3182d7f587a31" resname="reload_fixtures">
262+
<source>reload_fixtures</source>
263+
<target>If these users don't work, reload application fixtures by running this command from the terminal:</target>
264+
</trans-unit>
265+
<trans-unit id="6a2139364f96787c8ce1bbb0070b898c" resname="tip">
266+
<source>tip</source>
267+
<target>TIP</target>
268+
</trans-unit>
269+
<trans-unit id="dd0d6038781bb4f85e38713c69e2f530" resname="add_user">
270+
<source>add_user</source>
271+
<target>If you want to create new users, run this other command:</target>
272+
</trans-unit>
21273
</body>
22274
</file>
23275
</xliff>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{{ form_start(form) }}
22
{{ form_widget(form) }}
33

4-
<input type="submit" value="{{ button_label|default("Create post") }}"
4+
<input type="submit" value="{{ button_label|default('label.create_post'|trans) }}"
55
class="{{ button_css|default("btn btn-primary") }}" />
66

77
{% if include_back_to_home_link is not defined or include_back_to_home_link == true %}
88
<a href="{{ path('admin_post_index') }}" class="btn btn-link">
9-
Back to the post list
9+
{{ 'action.back_to_list'|trans }}
1010
</a>
1111
{% endif %}
1212
{{ form_end(form) }}

app/Resources/views/admin/blog/edit.html.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
{% block body_id 'admin_post_edit' %}
44

55
{% block main %}
6-
<h1>Edit post #{{ post.id }}</h1>
6+
<h1>{{ 'title.edit_post'|trans({'%id%': post.id}) }}</h1>
77

88
{{ include('admin/blog/_form.html.twig', {
99
form: edit_form,
10-
button_label: 'Save changes',
10+
button_label: 'label.save'|trans,
1111
}, with_context = false) }}
1212
{% endblock %}
1313

1414
{% block sidebar %}
1515
<div class="section actions">
1616
{{ include('admin/blog/_form.html.twig', {
1717
form: delete_form,
18-
button_label: 'Delete post',
18+
button_label: 'label.delete_post'|trans,
1919
button_css: 'btn btn-lg btn-block btn-danger',
2020
include_back_to_home_link: false
2121
}, with_context = false) }}

app/Resources/views/admin/blog/index.html.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
<table class="table table-striped">
99
<thead>
1010
<tr>
11-
<th>Title</th>
12-
<th><i class="fa fa-user"></i> Author</th>
13-
<th><i class="fa fa-calendar"></i> Published At</th>
14-
<th><i class="fa fa-cogs"></i> Actions</th>
11+
<th>{{ 'column.title'|trans }}</th>
12+
<th><i class="fa fa-user"></i> {{ 'column.author'|trans }}</th>
13+
<th><i class="fa fa-calendar"></i> {{ 'column.published_at'|trans }}</th>
14+
<th><i class="fa fa-cogs"></i> {{ 'column.actions'|trans }}</th>
1515
</tr>
1616
</thead>
1717
<tbody>

app/Resources/views/admin/blog/new.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% block body_id 'admin_post_new' %}
44

55
{% block main %}
6-
<h1>Post creation</h1>
6+
<h1>{{ 'title.post_new'|trans }}</h1>
77

88
{{ include('admin/blog/_form.html.twig') }}
99
{% endblock %}

app/Resources/views/admin/blog/show.html.twig

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
<table class="table">
99
<tbody>
1010
<tr>
11-
<th>Summary</th>
11+
<th>{{ 'term.summary'|trans }}</th>
1212
<td>{{ post.summary|md2html }}</td>
1313
</tr>
1414
<tr>
15-
<th>Content</th>
15+
<th>{{ 'term.content'|trans }}</th>
1616
<td>{{ post.content|md2html }}</td>
1717
</tr>
1818
<tr>
19-
<th>Author</th>
19+
<th>{{ 'term.author'|trans }}</th>
2020
<td><p>{{ post.authorEmail }}</p></td>
2121
</tr>
2222
<tr>
23-
<th>Published</th>
23+
<th>{{ 'term.published'|trans }}</th>
2424
<td><p>{{ post.publishedAt|date('Y-m-d H:i:s') }}</p></td>
2525
</tr>
2626
</tbody>
@@ -30,14 +30,14 @@
3030
{% block sidebar %}
3131
<div class="section">
3232
<a href="{{ path('admin_post_edit', { id: post.id }) }}" class="btn btn-lg btn-block btn-success">
33-
<i class="fa fa-edit"></i> Edit contents
33+
<i class="fa fa-edit"></i> {{ 'action.edit_contents'|trans }}
3434
</a>
3535
</div>
3636

3737
<div class="section">
3838
{{ include('admin/blog/_form.html.twig', {
3939
form: delete_form,
40-
button_label: 'Delete post',
40+
button_label: 'action.delete_post'|trans,
4141
button_css: 'btn btn-lg btn-block btn-danger',
4242
include_back_to_home_link: false
4343
}, with_context = false) }}

app/Resources/views/admin/layout.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
{% block header_navigation_links %}
1111
<li>
1212
<a href="{{ path('admin_post_index') }}">
13-
<i class="fa fa-list-alt"></i> Post List
13+
<i class="fa fa-list-alt"></i> {{ 'menu.post_list'|trans }}
1414
</a>
1515
</li>
1616
<li>
1717
<a href="{{ path('blog_index') }}">
18-
<i class="fa fa-home"></i> Back to blog
18+
<i class="fa fa-home"></i> {{ 'menu.back_to_blog'|trans }}
1919
</a>
2020
</li>
2121
{% endblock %}

0 commit comments

Comments
 (0)