Skip to content

Commit

Permalink
minor #53417 [Translation] Add missing translations using ChatGPT (ni…
Browse files Browse the repository at this point in the history
…colas-grekas)

This PR was merged into the 5.4 branch.

Discussion
----------

[Translation] Add missing translations using ChatGPT

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

This is a follow up of #53404

The process around the maintenance of our translation files is too heavy currently. I feel like spending hours on the topic, and I guess it's the same for contributors.

Instead, I propose to account for the GPT tools that are really good at translating our short messages.

In order to still allow and call for human review,  I propose to use the `state="needs-review-translation"` on `<target>` tags as defined by XLIFF.

With some help from carsonbot, we'll be able to call for reviews per language. My proposal would be to make it able to send PRs that remove the `state` attribute but call for reviews by a native speaker before we could merge. We could even make the reviewer the author of the git commit if we want to keep some sort of history on the topic.

~`@thunderer` I'd prefer being explicit about using GPT. I'm going to replace your PRs by this one sorry.~

Commits
-------

2bbbff9 Add missing translations using ChatGPT
  • Loading branch information
fabpot committed Jan 6, 2024
2 parents b68e8a5 + 2bbbff9 commit 355081e
Show file tree
Hide file tree
Showing 43 changed files with 252 additions and 244 deletions.
66 changes: 33 additions & 33 deletions src/Symfony/Component/Form/Resources/translations/validators.cy.xlf
Expand Up @@ -4,135 +4,135 @@
<body>
<trans-unit id="28">
<source>This form should not contain extra fields.</source>
<target state="needs-translation">This form should not contain extra fields.</target>
<target state="needs-review-translation">Ni ddylai'r ffurflen gynnwys meysydd ychwanegol.</target>
</trans-unit>
<trans-unit id="29">
<source>The uploaded file was too large. Please try to upload a smaller file.</source>
<target state="needs-translation">The uploaded file was too large. Please try to upload a smaller file.</target>
<target state="needs-review-translation">Roedd y ffeil a uwchlwythwyd yn rhy fawr. Ceisiwch uwchlwytho ffeil llai.</target>
</trans-unit>
<trans-unit id="30">
<source>The CSRF token is invalid. Please try to resubmit the form.</source>
<target state="needs-translation">The CSRF token is invalid. Please try to resubmit the form.</target>
<target state="needs-review-translation">Mae'r tocyn CSRF yn annilys. Ceisiwch ailgyflwyno'r ffurflen.</target>
</trans-unit>
<trans-unit id="99">
<source>This value is not a valid HTML5 color.</source>
<target state="needs-translation">This value is not a valid HTML5 color.</target>
<target state="needs-review-translation">Nid yw'r gwerth hwn yn lliw HTML5 dilys.</target>
</trans-unit>
<trans-unit id="100">
<source>Please enter a valid birthdate.</source>
<target state="needs-translation">Please enter a valid birthdate.</target>
<target state="needs-review-translation">Nodwch ddyddiad geni dilys.</target>
</trans-unit>
<trans-unit id="101">
<source>The selected choice is invalid.</source>
<target state="needs-translation">The selected choice is invalid.</target>
<target state="needs-review-translation">Mae'r dewis a ddewiswyd yn annilys.</target>
</trans-unit>
<trans-unit id="102">
<source>The collection is invalid.</source>
<target state="needs-translation">The collection is invalid.</target>
<target state="needs-review-translation">Mae'r casgliad yn annilys.</target>
</trans-unit>
<trans-unit id="103">
<source>Please select a valid color.</source>
<target state="needs-translation">Please select a valid color.</target>
<target state="needs-review-translation">Dewiswch liw dilys.</target>
</trans-unit>
<trans-unit id="104">
<source>Please select a valid country.</source>
<target state="needs-translation">Please select a valid country.</target>
<target state="needs-review-translation">Dewiswch wlad ddilys.</target>
</trans-unit>
<trans-unit id="105">
<source>Please select a valid currency.</source>
<target state="needs-translation">Please select a valid currency.</target>
<target state="needs-review-translation">Dewiswch arian cyfred dilys.</target>
</trans-unit>
<trans-unit id="106">
<source>Please choose a valid date interval.</source>
<target state="needs-translation">Please choose a valid date interval.</target>
<target state="needs-review-translation">Dewiswch ystod dyddiadau dilys.</target>
</trans-unit>
<trans-unit id="107">
<source>Please enter a valid date and time.</source>
<target state="needs-translation">Please enter a valid date and time.</target>
<target state="needs-review-translation">Nodwch ddyddiad ac amser dilys.</target>
</trans-unit>
<trans-unit id="108">
<source>Please enter a valid date.</source>
<target state="needs-translation">Please enter a valid date.</target>
<target state="needs-review-translation">Nodwch ddyddiad dilys.</target>
</trans-unit>
<trans-unit id="109">
<source>Please select a valid file.</source>
<target state="needs-translation">Please select a valid file.</target>
<target state="needs-review-translation">Dewiswch ffeil ddilys.</target>
</trans-unit>
<trans-unit id="110">
<source>The hidden field is invalid.</source>
<target state="needs-translation">The hidden field is invalid.</target>
<target state="needs-review-translation">Mae'r maes cudd yn annilys.</target>
</trans-unit>
<trans-unit id="111">
<source>Please enter an integer.</source>
<target state="needs-translation">Please enter an integer.</target>
<target state="needs-review-translation">Nodwch rif cyfan.</target>
</trans-unit>
<trans-unit id="112">
<source>Please select a valid language.</source>
<target state="needs-translation">Please select a valid language.</target>
<target state="needs-review-translation">Dewiswch iaith ddilys.</target>
</trans-unit>
<trans-unit id="113">
<source>Please select a valid locale.</source>
<target state="needs-translation">Please select a valid locale.</target>
<target state="needs-review-translation">Dewiswch leoliad dilys.</target>
</trans-unit>
<trans-unit id="114">
<source>Please enter a valid money amount.</source>
<target state="needs-translation">Please enter a valid money amount.</target>
<target state="needs-review-translation">Nodwch swm arian dilys.</target>
</trans-unit>
<trans-unit id="115">
<source>Please enter a number.</source>
<target state="needs-translation">Please enter a number.</target>
<target state="needs-review-translation">Nodwch rif.</target>
</trans-unit>
<trans-unit id="116">
<source>The password is invalid.</source>
<target state="needs-translation">The password is invalid.</target>
<target state="needs-review-translation">Mae'r cyfrinair yn annilys.</target>
</trans-unit>
<trans-unit id="117">
<source>Please enter a percentage value.</source>
<target state="needs-translation">Please enter a percentage value.</target>
<target state="needs-review-translation">Nodwch werth canran.</target>
</trans-unit>
<trans-unit id="118">
<source>The values do not match.</source>
<target state="needs-translation">The values do not match.</target>
<target state="needs-review-translation">Nid yw'r gwerthoedd yn cyfateb.</target>
</trans-unit>
<trans-unit id="119">
<source>Please enter a valid time.</source>
<target state="needs-translation">Please enter a valid time.</target>
<target state="needs-review-translation">Nodwch amser dilys.</target>
</trans-unit>
<trans-unit id="120">
<source>Please select a valid timezone.</source>
<target state="needs-translation">Please select a valid timezone.</target>
<target state="needs-review-translation">Dewiswch barth amser dilys.</target>
</trans-unit>
<trans-unit id="121">
<source>Please enter a valid URL.</source>
<target state="needs-translation">Please enter a valid URL.</target>
<target state="needs-review-translation">Nodwch URL dilys.</target>
</trans-unit>
<trans-unit id="122">
<source>Please enter a valid search term.</source>
<target state="needs-translation">Please enter a valid search term.</target>
<target state="needs-review-translation">Nodwch derm chwilio dilys.</target>
</trans-unit>
<trans-unit id="123">
<source>Please provide a valid phone number.</source>
<target state="needs-translation">Please provide a valid phone number.</target>
<target state="needs-review-translation">Darparwch rif ffôn dilys.</target>
</trans-unit>
<trans-unit id="124">
<source>The checkbox has an invalid value.</source>
<target state="needs-translation">The checkbox has an invalid value.</target>
<target state="needs-review-translation">Mae gan y blwch ticio werth annilys.</target>
</trans-unit>
<trans-unit id="125">
<source>Please enter a valid email address.</source>
<target state="needs-translation">Please enter a valid email address.</target>
<target state="needs-review-translation">Nodwch gyfeiriad e-bost dilys.</target>
</trans-unit>
<trans-unit id="126">
<source>Please select a valid option.</source>
<target state="needs-translation">Please select a valid option.</target>
<target state="needs-review-translation">Dewiswch opsiwn dilys.</target>
</trans-unit>
<trans-unit id="127">
<source>Please select a valid range.</source>
<target state="needs-translation">Please select a valid range.</target>
<target state="needs-review-translation">Dewiswch ystod ddilys.</target>
</trans-unit>
<trans-unit id="128">
<source>Please enter a valid week.</source>
<target state="needs-translation">Please enter a valid week.</target>
<target state="needs-review-translation">Nodwch wythnos ddilys.</target>
</trans-unit>
</body>
</file>
Expand Down
Expand Up @@ -12,7 +12,7 @@
</trans-unit>
<trans-unit id="30">
<source>The CSRF token is invalid. Please try to resubmit the form.</source>
<target>CSRF tokena ez da egokia.</target>
<target state="needs-review-translation">CSRF tokena baliogabea da. Mesedez, saiatu berriro formularioa bidaltzen.</target>
</trans-unit>
<trans-unit id="99">
<source>This value is not a valid HTML5 color.</source>
Expand Down
Expand Up @@ -12,7 +12,7 @@
</trans-unit>
<trans-unit id="30">
<source>The CSRF token is invalid. Please try to resubmit the form.</source>
<target>CSRF nøkkelen er ugyldig.</target>
<target state="needs-review-translation">CSRF-tokenen er ugyldig. Vennligst prøv å sende inn skjemaet på nytt.</target>
</trans-unit>
<trans-unit id="99">
<source>This value is not a valid HTML5 color.</source>
Expand Down
Expand Up @@ -12,7 +12,7 @@
</trans-unit>
<trans-unit id="30">
<source>The CSRF token is invalid. Please try to resubmit the form.</source>
<target>CSRF-nøkkelen er ikkje gyldig.</target>
<target state="needs-review-translation">CSRF-teiknet er ugyldig. Ver venleg og prøv å sende inn skjemaet på nytt.</target>
</trans-unit>
<trans-unit id="99">
<source>This value is not a valid HTML5 color.</source>
Expand Down
Expand Up @@ -12,7 +12,7 @@
</trans-unit>
<trans-unit id="30">
<source>The CSRF token is invalid. Please try to resubmit the form.</source>
<target>CSRF nøkkelen er ugyldig.</target>
<target state="needs-review-translation">CSRF-tokenen er ugyldig. Vennligst prøv å sende inn skjemaet på nytt.</target>
</trans-unit>
<trans-unit id="99">
<source>This value is not a valid HTML5 color.</source>
Expand Down
Expand Up @@ -68,7 +68,7 @@
</trans-unit>
<trans-unit id="112">
<source>Please select a valid language.</source>
<target state="needs-translation">Please select a valid language.</target>
<target state="needs-review-translation">Ju lutem zgjidhni një gjuhë të vlefshme.</target>
</trans-unit>
<trans-unit id="113">
<source>Please select a valid locale.</source>
Expand Down
Expand Up @@ -72,7 +72,7 @@
</trans-unit>
<trans-unit id="19">
<source>Too many failed login attempts, please try again in %minutes% minute.</source>
<target state="needs-translation">Too many failed login attempts, please try again in %minutes% minute.</target>
<target state="needs-review-translation">Te veel mislukte aanmeldpogings, probeer asseblief weer oor %minutes% minuut.</target>
</trans-unit>
</body>
</file>
Expand Down
Expand Up @@ -4,75 +4,75 @@
<body>
<trans-unit id="1">
<source>An authentication exception occurred.</source>
<target state="needs-translation">An authentication exception occurred.</target>
<target state="needs-review-translation">Digwyddodd eithriad dilysu.</target>
</trans-unit>
<trans-unit id="2">
<source>Authentication credentials could not be found.</source>
<target state="needs-translation">Authentication credentials could not be found.</target>
<target state="needs-review-translation">Ni ellid dod o hyd i ddogfennau dilysu.</target>
</trans-unit>
<trans-unit id="3">
<source>Authentication request could not be processed due to a system problem.</source>
<target state="needs-translation">Authentication request could not be processed due to a system problem.</target>
<target state="needs-review-translation">Ni ellid prosesu cais dilysu oherwydd problem gyda'r system.</target>
</trans-unit>
<trans-unit id="4">
<source>Invalid credentials.</source>
<target state="needs-translation">Invalid credentials.</target>
<target state="needs-review-translation">Dogfennau annilys.</target>
</trans-unit>
<trans-unit id="5">
<source>Cookie has already been used by someone else.</source>
<target state="needs-translation">Cookie has already been used by someone else.</target>
<target state="needs-review-translation">Mae rhywun arall eisoes wedi defnyddio'r cwcis.</target>
</trans-unit>
<trans-unit id="6">
<source>Not privileged to request the resource.</source>
<target state="needs-translation">Not privileged to request the resource.</target>
<target state="needs-review-translation">Heb y fraint i ofyn am yr adnodd.</target>
</trans-unit>
<trans-unit id="7">
<source>Invalid CSRF token.</source>
<target state="needs-translation">Invalid CSRF token.</target>
<target state="needs-review-translation">Tocyn CSRF annilys.</target>
</trans-unit>
<trans-unit id="9">
<source>No authentication provider found to support the authentication token.</source>
<target state="needs-translation">No authentication provider found to support the authentication token.</target>
<target state="needs-review-translation">Heb ddod o hyd i ddarparwr dilysu i gefnogi'r tocyn dilysu.</target>
</trans-unit>
<trans-unit id="10">
<source>No session available, it either timed out or cookies are not enabled.</source>
<target state="needs-translation">No session available, it either timed out or cookies are not enabled.</target>
<target state="needs-review-translation">Dim sesiwn ar gael, naill ai mae wedi dod i ben neu nid yw cwcis wedi'u galluogi.</target>
</trans-unit>
<trans-unit id="11">
<source>No token could be found.</source>
<target state="needs-translation">No token could be found.</target>
<target state="needs-review-translation">Heb ddod o hyd i docyn.</target>
</trans-unit>
<trans-unit id="12">
<source>Username could not be found.</source>
<target state="needs-translation">Username could not be found.</target>
<target state="needs-review-translation">Heb ddod o hyd i enw defnyddiwr.</target>
</trans-unit>
<trans-unit id="13">
<source>Account has expired.</source>
<target state="needs-translation">Account has expired.</target>
<target state="needs-review-translation">Mae'r cyfrif wedi dod i ben.</target>
</trans-unit>
<trans-unit id="14">
<source>Credentials have expired.</source>
<target state="needs-translation">Credentials have expired.</target>
<target state="needs-review-translation">Mae'r dogfennau wedi dod i ben.</target>
</trans-unit>
<trans-unit id="15">
<source>Account is disabled.</source>
<target state="needs-translation">Account is disabled.</target>
<target state="needs-review-translation">Mae'r cyfrif wedi'i analluogi.</target>
</trans-unit>
<trans-unit id="16">
<source>Account is locked.</source>
<target state="needs-translation">Account is locked.</target>
<target state="needs-review-translation">Mae'r cyfrif wedi'i gloi.</target>
</trans-unit>
<trans-unit id="17">
<source>Too many failed login attempts, please try again later.</source>
<target state="needs-translation">Too many failed login attempts, please try again later.</target>
<target state="needs-review-translation">Gormod o ymdrechion mewngofnodi wedi methu, ceisiwch eto'n hwyrach.</target>
</trans-unit>
<trans-unit id="18">
<source>Invalid or expired login link.</source>
<target state="needs-translation">Invalid or expired login link.</target>
<target state="needs-review-translation">Dolen mewngofnodi annilys neu wedi dod i ben.</target>
</trans-unit>
<trans-unit id="19">
<source>Too many failed login attempts, please try again in %minutes% minute.</source>
<target state="needs-translation">Too many failed login attempts, please try again in %minutes% minute.</target>
<target state="needs-review-translation">Gormod o ymdrechion mewngofnodi wedi methu, ceisiwch eto ymhen %minutes% munud.</target>
</trans-unit>
</body>
</file>
Expand Down
Expand Up @@ -72,7 +72,7 @@
</trans-unit>
<trans-unit id="19">
<source>Too many failed login attempts, please try again in %minutes% minute.</source>
<target state="needs-translation">Too many failed login attempts, please try again in %minutes% minute.</target>
<target state="needs-review-translation">Нэвтрэх оролдлого ихээр амжилтгүй болсон, %minutes% минутын дараа дахин оролдоно уу.</target>
</trans-unit>
</body>
</file>
Expand Down

0 comments on commit 355081e

Please sign in to comment.