8000 [Security] Add missing French translations for logging throttling by jmsche · Pull Request #40889 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Security] Add missing French translations for logging throttling #40889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4,564 commits into from
Closed

[Security] Add missing French translations for logging throttling #40889

wants to merge 4,564 commits into from

Conversation

jmsche
Copy link
Contributor
@jmsche jmsche commented Apr 21, 2021
Q A
Branch? 5.2
Bug fix? no
New feature? no
Deprecations? no
Tickets Fix #40863 (at least for French)
License MIT
Doc PR N/A

nicolas-grekas and others added 30 commits January 25, 2021 15:44
* 5.1:
  Changed private static array-properties to const static properties newly introduced in 5.1
static properties newly introduced in 5.2
…simonberger)

This PR was merged into the 5.2 branch.

Discussion
----------

Changed private static array-properties to const (5.2)

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

This continues #39959 for 5.2
Just two array-properties and a string property in one class newly added.

/cc @nicolas-grekas

Commits
-------

a5fd0c4 Changed private static array-properties to const static properties newly introduced in 5.2
This PR was merged into the 5.1 branch.

Discussion
----------

Fix typo in test

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

Commits
-------

79c9a1a Fix typo in test
* 5.1:
  Fix typo in test
… constraints (xabbuh)

This PR was merged into the 5.1 branch.

Discussion
----------

[Validator] propagate the object being validated to nested constraints

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #39145
| License       | MIT
| Doc PR        |

Commits
-------

8c1bac9 propagate the object being validated to sub-constraints
…yPointsPass (chalasr)

This PR was merged into the 5.2 branch.

Discussion
----------

[SecurityBundle] Fix referencing aliases from RegisterEntryPointsPass

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | #39881
| License       | MIT
| Doc PR        |  -

Resolving child definitions' classes in this pass unlocks registering it as `TYPE_BEFORE_OPTIMIZATION`, and get rid of the issue reported in #39881.
The parent class resolution logic was borrowed from an existing pass (RegisterEventListenersAndSubscribersPass), that makes it the best solution I can think of.

Commits
-------

8dcc3d6 [SecurityBundle] Fix referencing aliases from RegisterEntryPointPass
* 4.4:
  Fix transient tests
  Fix class resolution in Doctrine EventListenerPass
  [Serializer] Fix tests  marked as incomplete
  [Translator] fix handling plural for floating numbers
  fix redis messenger options with dsn
  Update ConsoleEvents.php
  allow Doctrine persistence 2 too
  [Messenger] Fix transporting non-UTF8 payloads by encoding them using base 64
  add doctrine/persistence as a dev requirement
  Exclude non-initialized properties accessed with getters
* 5.1:
  Fix transient tests
  Fix class resolution in Doctrine EventListenerPass
  [Serializer] Fix tests  marked as incomplete
  propagate the object being validated to sub-constraints
  [Translator] fix handling plural for floating numbers
  fix redis messenger options with dsn
  Update ConsoleEvents.php
  allow Doctrine persistence 2 too
  [Messenger] Fix transporting non-UTF8 payloads by encoding them using base 64
  add doctrine/persistence as a dev requirement
  Exclude non-initialized properties accessed with getters
* 4.4:
  Use createMock() and use import instead of FQCN
* 5.1:
  Use createMock() and use import instead of FQCN
This PR was merged into the 5.1 branch.

Discussion
----------

[FrameworkBundle] add missing use statement

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

Commits
-------

cfab105 add missing use statement
* 5.1:
  add missing use statement
* 5.1:
  More cleanups and fixes
This PR was merged into the 5.1 branch.

Discussion
----------

Use import instead of FQCN

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

Commits
-------

b2fee7a Use import instead of FQCN
* 5.1:
  Use import instead of FQCN
fancyweb and others added 3 commits April 19, 2021 18:07
…Noop when the service is private (fancyweb)

This PR was merged into the 5.2 branch.

Discussion
----------

[DependencyInjection] [AliasDeprecatedPublicServicesPass] Noop when the service is private

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

If the service is already private, I think we can just ignore the tag and do nothing.

Moreover, when we deprecate a public service, if an user already sets its definition to private, it will be transparent instead of throwing.

Commits
-------

00048a9 [DependencyInjection][AliasDeprecatedPublicServicesPass] Noop when the service is private
8000
@@ -70,6 +70,14 @@
<source>Invalid or expired login link.</source>
<target>Invalid or expired login link.</target>
</trans-unit>
<trans-unit id="19">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the only difference between the two message is the singular/plural "minutes" ... shouldn't we use the pluralization feature of translation messages?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the error message comes from here: https://github.com/symfony/symfony/blob/v5.3.0-BETA1/src/Symfony/Component/Security/Core/Exception/TooManyLoginAttemptsAuthenticationException.php#L44

So maybe it would require updating the Exception first.

Copy link
Member
@derrabus derrabus Apr 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we should fix the message key. See my 8000 comment on the issue.

Copy link
Member
@derrabus derrabus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We usually add missing translations to the 4.4 branch, so we don't have to deal with merge conflicts on translation files. Also, as commented on the issue, we should fix the message key first.

@derrabus
Copy link
Member

Sorry for the confusion. We will leave the message keys as they are. Nevertheless, please target the 4.4 branch.

@derrabus derrabus modified the milestones: 5.2, 4.4 Apr 21, 2021
@jmsche jmsche changed the base branch from 5.2 to 4.4 April 30, 2021 14:00
@jmsche jmsche closed this Apr 30, 2021
@jmsche jmsche deleted the login_throttling_french_translation branch April 30, 2021 14:03
@jmsche
Copy link
Contributor Author
jmsche commented Apr 30, 2021

As this PR was automatically closed somehow (maybe by the force-push, I'm not sure) I opened #41003 that targets 4.4 branch as asked.

fabpot added a commit that referenced this pull request May 1, 2021
…hrottling (jmsche)

This PR was merged into the 4.4 branch.

Discussion
----------

[Security] Add missing French translations for logging throttling

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #40863 (at least for French)
| License       | MIT
| Doc PR        | N/A

Note: this PR replaces #40889 as somehow force-push closed the other PR.

Also this one targets 4.4 branch directly :)

Commits
-------

b64efd2 [Security] Add missing French translations for logging throttling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0