Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Fix new syntax for escaping with single quotes #797

Merged
merged 3 commits into from Oct 12, 2022

Conversation

thkim1011
Copy link
Contributor

We're adding a new syntax to support escaping in ICU MessageFormat via single quotes. According to official documentation, the behavior is that any characters within single quotes will not be parsed and to use the single quote character in a string, you need to use a pair of consecutive single quotes. See here.

The only changes in this PR is

  • Change all instances of ' to ''.
  • Change {per cent} to {percent} in some English translation, since the former is not valid syntax.

I checked that flutter gen-l10n runs when using the branch in the PR below.

Related PR: flutter/flutter#112390.

@HansMuller
Copy link
Contributor

Looks like some existing tests are failing

Copy link
Member

@guidezpl guidezpl left a comment

Choose a reason for hiding this comment

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

Golden test failures are unrelated

@guidezpl guidezpl merged commit b330ebf into flutter:main Oct 12, 2022
thkim1011 added a commit that referenced this pull request Oct 13, 2022
guidezpl pushed a commit that referenced this pull request Oct 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants