Skip to content
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

Revert string format token changes made for Rubocop #3128

Merged
merged 2 commits into from
Mar 15, 2022

Conversation

briri
Copy link
Contributor

@briri briri commented Mar 14, 2022

We switched the way we handle string formatting tokens when we upgraded Rubocop. Rubocop's new default is to use %<variable>s instead of %{variable}.

This has caused quite a bit of confusion for our translators, and I discovered today that Translation.io is not properly auto-translating these. It takes %<variable>s some text and translates it to %<variable> s un peu de texte. Note the space between the closing bracket '>' and the 's' character.

This update reverts the changes we made to use %<variable>s and updates the .rubocop.yml file to enforce use of the template style, %{variable} going forward.

Once merged, translations will need to be resynced!

@briri briri changed the base branch from master to development March 14, 2022 17:24
@briri
Copy link
Contributor Author

briri commented Mar 14, 2022

FYI @benjaminfaure and @hbayindir

@briri
Copy link
Contributor Author

briri commented Mar 14, 2022

brakeman issue is just a deprecation warning about Ruby 2.6.3 EOL which we are aware of

@raycarrick-ed
Copy link
Contributor

Changes all look fine.

@raycarrick-ed raycarrick-ed merged commit 0759291 into development Mar 15, 2022
@briri briri mentioned this pull request Apr 6, 2022
@briri briri deleted the revert-string-format-tokens branch June 15, 2022 19:24
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.

2 participants