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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x] Support brackets in translation strings #9380

Merged
merged 1 commit into from Jan 23, 2024

Conversation

jasonvarga
Copy link
Member

@jasonvarga jasonvarga commented Jan 23, 2024

Closes #9375

Technically this only supports the literal (s) at the end of the string, but for now that's okay. The regex could be improved but I couldn't figure it out. 馃槃

The change to the regex looks bigger than it really is. I split it into multiple lines for better clarity. The only thing that was actually added was .'(?:\(s\))?'

@jasonvarga jasonvarga merged commit b18025a into 4.x Jan 23, 2024
37 checks passed
@jasonvarga jasonvarga deleted the support-brackets-in-translations branch January 23, 2024 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Localization strings won't translate because of brackets?
1 participant