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

Release 1.71.0 #4543

Merged
merged 81 commits into from
Feb 3, 2022
Merged
Show file tree
Hide file tree
Changes from 80 commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
4196e68
Update gutenberg ref
dcalhoun Sep 7, 2021
989ad07
Update gutenberg ref
dcalhoun Sep 7, 2021
40ed443
Generate bundle
dcalhoun Sep 8, 2021
983f4c3
Update gutenberg ref
dcalhoun Sep 8, 2021
8fc364d
Generate bundle
dcalhoun Sep 8, 2021
0793f3d
Update gutenberg ref
dcalhoun Sep 8, 2021
7f7b8ae
Generate bundle
dcalhoun Sep 8, 2021
580b6f5
Update gutenberg ref
dcalhoun Sep 9, 2021
7486dbb
Generate bundle
dcalhoun Sep 9, 2021
4ea5d3d
Update release notes
dcalhoun Sep 9, 2021
31ab226
Update gutenberg ref
dcalhoun Sep 9, 2021
cdd60f3
Generate bundle
dcalhoun Sep 9, 2021
7a758dc
Fix headings of i18n section in README
fluiddot Jan 13, 2022
660d8f7
Improve string replacements for android lint rules
fluiddot Jan 18, 2022
c1807c0
Update Android localization strings file
fluiddot Jan 18, 2022
49c8cba
Update Gutenberg ref
fluiddot Jan 20, 2022
a39b60c
Bump Jest version to v27
fluiddot Jan 21, 2022
d000016
Revert wrong prettier package in package-lock.json
fluiddot Jan 21, 2022
3991c82
Use default jest environment
fluiddot Jan 21, 2022
be8113d
Remove unused jest config property
fluiddot Jan 21, 2022
6ea14fb
Update jetpack editor setup tests
fluiddot Jan 21, 2022
e0daf25
Update Gutenberg ref
fluiddot Jan 21, 2022
d53be70
Refactor gb-mobile tests
fluiddot Jan 21, 2022
3e27bcb
Rename jest-junit output env variable
fluiddot Jan 21, 2022
6c14c28
Rename ellipsis pattern in strings2android
fluiddot Jan 21, 2022
8b3d612
Update Gutenberg ref
fluiddot Jan 21, 2022
3d93d49
Update editor rendering test case
fluiddot Jan 21, 2022
7273f34
Update Gutenberg ref with merge commit
fluiddot Jan 21, 2022
6169e94
Merge pull request #4499 from wordpress-mobile/update/bump-jest-versi…
fluiddot Jan 21, 2022
2c582b0
Merge branch 'develop' into merge_release_1.70.0_to_develop
fluiddot Jan 21, 2022
8df8472
Merge pull request #4494 from wordpress-mobile/merge_release_1.70.0_t…
fluiddot Jan 21, 2022
febc0d5
Merge pull request #4484 from wordpress-mobile/fix/android-strings-hy…
fluiddot Jan 21, 2022
3a668f6
Merge pull request #4462 from wordpress-mobile/fix/headings-i18n-sect…
fluiddot Jan 24, 2022
f088e34
Remove unused JSON asset files
dcalhoun Dec 22, 2021
df9a79f
Update Gutenberg version
dcalhoun Jan 24, 2022
2e96685
Merge branch 'develop' of github.com:wordpress-mobile/gutenberg-mobil…
dcalhoun Jan 24, 2022
9c09d36
Fix release notes
dcalhoun Jan 25, 2022
8556826
Merge pull request #4401 from wordpress-mobile/chore/remove-unused-js…
dcalhoun Jan 25, 2022
6663a94
Update gutenberg submodule hash to 78aca5635d87d44d39e4e99e7c14da634a…
wpmobilebot Jan 26, 2022
944b796
Update gutenberg submodule hash to cc0bd522bc36fe7f426f34cd3f22a6f195…
wpmobilebot Jan 26, 2022
700cd76
Update gutenberg submodule hash to 2b512a517f9ac595c018dd47659b221e27…
wpmobilebot Jan 26, 2022
e7ec3ef
Update gutenberg submodule hash to 589d5d8fe8e9192a49bf3a64e192e52294…
wpmobilebot Jan 26, 2022
ae966a2
Update Gutenberg version
dcalhoun Jan 27, 2022
5132ac0
Generate bundle
dcalhoun Jan 27, 2022
be20def
Update Gutenberg ref with merge commit
fluiddot Jan 27, 2022
6d8d4d1
Update release notes
fluiddot Jan 27, 2022
77e79b1
Merge pull request #4515 from wordpress-mobile/version-toolkit/gutenb…
fluiddot Jan 27, 2022
5e9fff7
Update gutenberg submodule hash to 6fe0b79db593f43448db6cf87a117afa1c…
wpmobilebot Jan 27, 2022
b0ac2a6
Update gutenberg submodule hash to ab647c071ac25398664959f0ae863299c4…
wpmobilebot Jan 27, 2022
5f760a1
Update Release notes
Jan 31, 2022
56ba837
Update Gutenberg ref
Jan 31, 2022
3bd6c9b
Update gutenberg submodule hash to 8a7ce482c8856fc5373818640753c47a97…
wpmobilebot Jan 31, 2022
82bea53
Update GB hash
hypest Jan 31, 2022
867d2ba
Merge pull request #4519 from wordpress-mobile/version-toolkit/gutenb…
Jan 31, 2022
13c4796
Point to the merged to trunk Gutenberg hash
hypest Feb 1, 2022
75c4c14
Merge branch 'develop' into version-toolkit/gutenberg/rnmobile/38375-…
hypest Feb 1, 2022
f0a02ed
Merge pull request #4527 from wordpress-mobile/version-toolkit/gutenb…
hypest Feb 1, 2022
e03cb09
Update gutenberg submodule hash to 2ee87deabfe75fcf96439656757deafce5…
wpmobilebot Feb 1, 2022
09c83b5
Update gutenberg submodule hash to 9a57ec24310f7cd3da4cdceca2dfa6b948…
wpmobilebot Feb 2, 2022
5830dd6
Await asynchronous initializeEditor return
dcalhoun Feb 2, 2022
997d8d2
Update Gutenberg ref with merge commit
fluiddot Feb 2, 2022
d3f7371
Merge pull request #4531 from wordpress-mobile/version-toolkit/gutenb…
fluiddot Feb 2, 2022
1163fc4
Merge branch 'develop' of github.com:wordpress-mobile/gutenberg-mobil…
dcalhoun Feb 2, 2022
15ae7b9
Update Gutenberg version
dcalhoun Feb 2, 2022
110da32
Merge pull request #4536 from wordpress-mobile/version-toolkit/gutenb…
dcalhoun Feb 2, 2022
90d351b
Update Gutenberg version
dcalhoun Feb 2, 2022
712eee9
Merge branch 'develop' of github.com:wordpress-mobile/gutenberg-mobil…
dcalhoun Feb 2, 2022
e577eb6
Generate bundle
dcalhoun Feb 2, 2022
f9333d8
Merge pull request #3930 from wordpress-mobile/feature/image-block-re…
dcalhoun Feb 2, 2022
a42d032
Merge branch 'develop' of github.com:wordpress-mobile/gutenberg-mobil…
dcalhoun Feb 2, 2022
8c727a5
Remove duplicative release note entry
dcalhoun Feb 2, 2022
45c462a
Update Gutenberg version
dcalhoun Feb 2, 2022
35b462f
Merge pull request #4540 from wordpress-mobile/merge_release_1.70.1_t…
Feb 3, 2022
edf459f
Release script: Update gb mobile version to 1.71.0
Feb 3, 2022
bdbb82a
Release script: Update gutenberg ref
Feb 3, 2022
bf4546c
Release script: Update bundle for: 1.71.0
Feb 3, 2022
af7c504
Update RELEASE-NOTES with 1.71.0 changes
Feb 3, 2022
9375a2a
Update reference to Gutenberg
Feb 3, 2022
1516df8
Update Gutenberg reference
Feb 3, 2022
654b367
Apply changes to bundle
Feb 3, 2022
696e2f2
Merge remote-tracking branch 'origin/trunk' into release/1.71.0
mchowning Feb 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ jobs:
name: Run Checks
command: bin/ci-checks-js.sh
environment:
JEST_JUNIT_OUTPUT: "reports/test-results/android-test-results.xml"
JEST_JUNIT_OUTPUT_FILE: "reports/test-results/android-test-results.xml"
- store_test_results:
path: ./reports/test-results
android-device-checks:
Expand Down Expand Up @@ -223,7 +223,7 @@ jobs:
environment:
TEST_RN_PLATFORM: android
TEST_ENV: sauce
JEST_JUNIT_OUTPUT: "/home/circleci/test-results/android-test-results.xml"
JEST_JUNIT_OUTPUT_FILE: "/home/circleci/test-results/android-test-results.xml"
- store_test_results:
path: /home/circleci/test-results
- when:
Expand Down Expand Up @@ -319,7 +319,7 @@ jobs:
npm run device-tests<<parameters.is-canary>>
no_output_timeout: 1200
environment:
JEST_JUNIT_OUTPUT: "reports/test-results/ios-test-results.xml"
JEST_JUNIT_OUTPUT_FILE: "reports/test-results/ios-test-results.xml"
- store_test_results:
path: ./reports/test-results
- run:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,13 @@ const pluginTranslations = [
];
```

## Caveats
### Caveats
- Strings that are only used in the native version, and reference a [context](https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/#disambiguation-by-context), won't be included in the localization strings files hence, they won't be translated. This is a limitation in the format of the localization strings files.
- Localization strings files don’t support domains, so the strings extracted from plugins that are only used in the native version, will be unified in the same file, which might involve string conflicts.

## Troubleshooting
### Troubleshooting

### A string is missing the translation
#### A string is missing the translation
This can be produced by several causes, check the following steps in order to identify the source:
- Verify that the string uses the `__` i18n function or similar ([reference](https://github.com/WordPress/gutenberg/blob/trunk/packages/i18n/README.md)).
- Check for warnings in the output when running `i18n:update` NPM command, especially the following ones:
Expand Down
4 changes: 4 additions & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Unreleased
---

1.71.0
---
* [*] Image block: Replacing the media for an image set as featured prompts to update the featured image [https://github.com/wordpress-mobile/gutenberg-mobile/pull/3930]
mchowning marked this conversation as resolved.
Show resolved Hide resolved
* [***] Font size and line-height support for text-based blocks used in block-based themes [https://github.com/wordpress-mobile/gutenberg-mobile/pull/4519]

1.70.1
---
Expand Down
49 changes: 40 additions & 9 deletions bin/strings2android.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,52 @@ function escapeResourceXML( unsafeXMLValue ) {
} );
}

/**
* Replacement for complying the TypographyDashes Android lint rule.
* Reference: https://android.googlesource.com/platform/tools/base/+/master/lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks/TypographyDetector.java#58
*
* @param {string} XMLValue input to apply replacement.
* @return {string} valid string passing TypographyDashes Android lint rule.
*/
function replaceHyphenInNumberRanges( XMLValue ) {
return XMLValue.replace( /(\d+\s*)(-)(\s*\d+)/gm, function(
match,
p1,
p2,
p3
) {
// Make sure that if there is no space before digit there isn't
// one on the left either -- since we don't want to consider
// "1 2 -3" as a range from 2 to 3
const isNegativeNumber = p3[ 0 ] !== ' ' && p1[ p1.length - 1 ] === ' ';

return [ p1, p3 ].join( isNegativeNumber ? p2 : '–' );
} );
}

/**
* Replacement for complying the TypographyEllipsis Android lint rule.
* Reference: https://android.googlesource.com/platform/tools/base/+/master/lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks/TypographyDetector.java#106
*
* @param {string} XMLValue input to apply replacements.
* @return {string} valid string passing TypographyEllipsis Android lint rule.
*/
const THREE_DOTS_PATTERN = /(\.\.\.)/gm;
function replaceEllipsis( XMLValue ) {
return XMLValue.replace( THREE_DOTS_PATTERN, '…' );
}

/**
* Android specifics replacements.
*
* @param {string} XMLValue input to apply replacements.
* @return {string} valid string passing Android linter rules.
* @return {string} valid string passing Android lint rules.
*/
function androidReplacements( XMLValue ) {
return XMLValue.replace( /(-|\.\.\.)/gm, function( character ) {
switch ( character ) {
case '-':
return '–'; // Android lint rule: TypographyDashes.
case '...':
return '…'; // Android lint rule: TypographyEllipsis
}
} );
return [ replaceHyphenInNumberRanges, replaceEllipsis ].reduce(
( value, replacement ) => replacement( value ),
XMLValue
);
}

/**
Expand Down
12 changes: 6 additions & 6 deletions bundle/android/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<string name="gutenberg_native_1_s_2_s_is_3_s_4_s" tools:ignore="UnusedResources">%1$s. %2$s is %3$s %4$s.</string>
<!-- translators: 1: From block title, e.g. Paragraph. 2: To block title, e.g. Header. -->
<string name="gutenberg_native_1_s_transformed_to_2_s" tools:ignore="UnusedResources">%1$s transformed to %2$s</string>
<string name="gutenberg_native_add_a_new_block_at_any_time_by_tapping_on_the_icon_in_the_toolbar" tools:ignore="UnusedResources">Add a new block at any time by tapping on the + icon in the toolbar on the bottom left. </string>
<string name="gutenberg_native_add_a_new_block_at_any_time_by_tapping_on_the_icon_in_the_toolbar" tools:ignore="UnusedResources">Add a new block at any time by tapping on the + icon in the toolbar on the bottom left.</string>
<string name="gutenberg_native_add_a_shortcode" tools:ignore="UnusedResources">Add a shortcode…</string>
<string name="gutenberg_native_add_alt_text" tools:ignore="UnusedResources">Add alt text</string>
<string name="gutenberg_native_add_audio" tools:ignore="UnusedResources">ADD AUDIO</string>
Expand Down Expand Up @@ -99,12 +99,12 @@
<string name="gutenberg_native_customize_blocks" tools:ignore="UnusedResources">Customize blocks</string>
<string name="gutenberg_native_customize_gradient" tools:ignore="UnusedResources">Customize Gradient</string>
<string name="gutenberg_native_cut_block" tools:ignore="UnusedResources">Cut block</string>
<string name="gutenberg_native_describe_the_purpose_of_the_image_leave_empty_if_the_image_is_pur" tools:ignore="UnusedResources">Describe the purpose of the image. Leave empty if the image is purely decorative. </string>
<string name="gutenberg_native_describe_the_purpose_of_the_image_leave_empty_if_the_image_is_pur" tools:ignore="UnusedResources">Describe the purpose of the image. Leave empty if the image is purely decorative.</string>
<string name="gutenberg_native_dismiss" tools:ignore="UnusedResources">Dismiss</string>
<string name="gutenberg_native_double_tap_and_hold_to_edit" tools:ignore="UnusedResources">Double tap and hold to edit</string>
<string name="gutenberg_native_double_tap_to_add_a_block" tools:ignore="UnusedResources">Double tap to add a block</string>
<string name="gutenberg_native_double_tap_to_add_a_link" tools:ignore="UnusedResources">Double tap to add a link.</string>
<string name="gutenberg_native_double_tap_to_change_unit" tools:ignore="UnusedResources">doubletap to change unit</string>
<string name="gutenberg_native_double_tap_to_change_unit" tools:ignore="UnusedResources">double-tap to change unit</string>
<string name="gutenberg_native_double_tap_to_edit_button_text" tools:ignore="UnusedResources">Double tap to edit button text</string>
<string name="gutenberg_native_double_tap_to_edit_label_text" tools:ignore="UnusedResources">Double tap to edit label text</string>
<string name="gutenberg_native_double_tap_to_edit_placeholder_text" tools:ignore="UnusedResources">Double tap to edit placeholder text</string>
Expand Down Expand Up @@ -291,7 +291,7 @@ translators: Block name. %s: The localized block name -->
<!-- translators: %s: social link name e.g: "Instagram". -->
<string name="gutenberg_native_s_has_url_set" tools:ignore="UnusedResources">%s has URL set</string>
<!-- translators: Missing block alert title. %s: The localized block name -->
<string name="gutenberg_native_s_is_not_fully_supported" tools:ignore="UnusedResources">\'%s\' is not fullysupported</string>
<string name="gutenberg_native_s_is_not_fully_supported" tools:ignore="UnusedResources">\'%s\' is not fully-supported</string>
<!-- translators: %s: embed block variant's label e.g: "Twitter". -->
<string name="gutenberg_native_s_link" tools:ignore="UnusedResources">%s link</string>
<!-- translators: %s: embed block variant's label e.g: "Twitter". -->
Expand Down Expand Up @@ -356,8 +356,8 @@ translators: %s: Select control option value e.g: "Auto, 25%". -->
<string name="gutenberg_native_what_is_alt_text" tools:ignore="UnusedResources">What is alt text?</string>
<string name="gutenberg_native_width_settings" tools:ignore="UnusedResources">Width Settings</string>
<string name="gutenberg_native_wordpress_media_library" tools:ignore="UnusedResources">WordPress Media Library</string>
<string name="gutenberg_native_x_axis_position" tools:ignore="UnusedResources">XAxis Position</string>
<string name="gutenberg_native_y_axis_position" tools:ignore="UnusedResources">YAxis Position</string>
<string name="gutenberg_native_x_axis_position" tools:ignore="UnusedResources">X-Axis Position</string>
<string name="gutenberg_native_y_axis_position" tools:ignore="UnusedResources">Y-Axis Position</string>
<string name="gutenberg_native_you_can_edit_this_block_using_the_web_version_of_the_editor" tools:ignore="UnusedResources">You can edit this block using the web version of the editor.</string>
<string name="gutenberg_native_you_can_rearrange_blocks_by_tapping_a_block_and_then_tapping_the" tools:ignore="UnusedResources">You can rearrange blocks by tapping a block and then tapping the up and down arrows that appear on the bottom left side of the block to move it above or below other blocks.</string>
</resources>
Loading