Skip to content

Commit 46a19fc

Browse files
committed
Translations in default configs
1 parent 33811bf commit 46a19fc

File tree

7 files changed

+1649
-600
lines changed

7 files changed

+1649
-600
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,11 @@ For detailed configuration instructions, see the [Mailer Transports documentatio
214214
## Copyright
215215

216216
phpList is copyright (C) 2000-2025 [phpList Ltd](https://www.phplist.com/).
217+
218+
219+
### Translations
220+
command to extract translation strings
221+
222+
```bash
223+
php bin/console translation:extract --force en --format=xlf
224+
```

config/services/providers.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ services:
1717
PhpList\Core\Domain\Subscription\Service\Provider\SelectOrRadioValueProvider: ~
1818
PhpList\Core\Domain\Subscription\Service\Provider\ScalarValueProvider: ~
1919

20+
PhpList\Core\Domain\Configuration\Service\Provider\DefaultConfigProvider:
21+
calls:
22+
- [ setTranslator, [ '@translator' ] ]
23+
2024
PhpList\Core\Domain\Configuration\Service\Provider\ConfigProvider:

resources/translations/messages.en.xlf

Lines changed: 644 additions & 405 deletions
Large diffs are not rendered by default.
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
3+
<file source-language="en" target-language="en" datatype="plaintext" original="file.ext">
4+
<header>
5+
<tool tool-id="symfony" tool-name="Symfony"/>
6+
</header>
7+
<body>
8+
<trans-unit id="baI_ZxO" resname="An authentication exception occurred.">
9+
<source>An authentication exception occurred.</source>
10+
<target>An authentication exception occurred.</target>
11+
</trans-unit>
12+
<trans-unit id="OETylMq" resname="Authentication credentials could not be found.">
13+
<source>Authentication credentials could not be found.</source>
14+
<target>Authentication credentials could not be found.</target>
15+
</trans-unit>
16+
<trans-unit id="3RJINQ0" resname="Authentication request could not be processed due to a system problem.">
17+
<source>Authentication request could not be processed due to a system problem.</source>
18+
<target>Authentication request could not be processed due to a system problem.</target>
19+
</trans-unit>
20+
<trans-unit id="qr0aiUo" resname="Invalid credentials.">
21+
<source>Invalid credentials.</source>
22+
<target>Invalid credentials.</target>
23+
</trans-unit>
24+
<trans-unit id="zrJWK0F" resname="Cookie has already been used by someone else.">
25+
<source>Cookie has already been used by someone else.</source>
26+
<target>Cookie has already been used by someone else.</target>
27+
</trans-unit>
28+
<trans-unit id="blC0fXX" resname="Not privileged to request the resource.">
29+
<source>Not privileged to request the resource.</source>
30+
<target>Not privileged to request the resource.</target>
31+
</trans-unit>
32+
<trans-unit id="dLzMRPR" resname="Invalid CSRF token.">
33+
<source>Invalid CSRF token.</source>
34+
<target>Invalid CSRF token.</target>
35+
</trans-unit>
36+
<trans-unit id="PhhlLem" resname="No authentication provider found to support the authentication token.">
37+
<source>No authentication provider found to support the authentication token.</source>
38+
<target>No authentication provider found to support the authentication token.</target>
39+
</trans-unit>
40+
<trans-unit id="v_RS21A" resname="No session available, it either timed out or cookies are not enabled.">
41+
<source>No session available, it either timed out or cookies are not enabled.</source>
42+
<target>No session available, it either timed out or cookies are not enabled.</target>
43+
</trans-unit>
44+
<trans-unit id="EYCKpDH" resname="No token could be found.">
45+
<source>No token could be found.</source>
46+
<target>No token could be found.</target>
47+
</trans-unit>
48+
<trans-unit id="z3cOUZo" resname="Username could not be found.">
49+
<source>Username could not be found.</source>
50+
<target>Username could not be found.</target>
51+
</trans-unit>
52+
<trans-unit id="By5eLYM" resname="Account has expired.">
53+
<source>Account has expired.</source>
54+
<target>Account has expired.</target>
55+
</trans-unit>
56+
<trans-unit id="YfZhiuA" resname="Credentials have expired.">
57+
<source>Credentials have expired.</source>
58+
<target>Credentials have expired.</target>
59+
</trans-unit>
60+
<trans-unit id="NrSSfLs" resname="Account is disabled.">
61+
<source>Account is disabled.</source>
62+
<target>Account is disabled.</target>
63+
</trans-unit>
64+
<trans-unit id="O5ZyxHr" resname="Account is locked.">
65+
<source>Account is locked.</source>
66+
<target>Account is locked.</target>
67+
</trans-unit>
68+
<trans-unit id="gd.MOnZ" resname="Too many failed login attempts, please try again later.">
69+
<source>Too many failed login attempts, please try again later.</source>
70+
<target>Too many failed login attempts, please try again later.</target>
71+
</trans-unit>
72+
<trans-unit id="l9VYRj0" resname="Invalid or expired login link.">
73+
<source>Invalid or expired login link.</source>
74+
<target>Invalid or expired login link.</target>
75+
</trans-unit>
76+
<trans-unit id="9qGC3hG" resname="Too many failed login attempts, please try again in %minutes% minute.">
77+
<source>Too many failed login attempts, please try again in %minutes% minute.</source>
78+
<target>Too many failed login attempts, please try again in %minutes% minute.</target>
79+
</trans-unit>
80+
<trans-unit id="AJR3lMs" resname="Too many failed login attempts, please try again in %minutes% minutes.">
81+
<source>Too many failed login attempts, please try again in %minutes% minutes.</source>
82+
<target>Too many failed login attempts, please try again in %minutes% minutes.</target>
83+
</trans-unit>
84+
</body>
85+
</file>
86+
</xliff>

0 commit comments

Comments
 (0)