From d37a4bf42f3b7ffe1381086fb20721dbb24f24ec Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Tue, 2 Dec 2025 17:20:23 +0900 Subject: [PATCH 1/4] Add border.radiusSizes to theme-i18n.json --- assets/theme-i18n.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/assets/theme-i18n.json b/assets/theme-i18n.json index 1b7a8d0d..8ceaee85 100644 --- a/assets/theme-i18n.json +++ b/assets/theme-i18n.json @@ -52,6 +52,13 @@ } ] }, + "border": { + "radiusSizes": [ + { + "name": "Border radius size name" + } + ] + }, "blocks": { "*": { "typography": { @@ -96,6 +103,13 @@ "name": "Space size name" } ] + }, + "border": { + "radiusSizes": [ + { + "name": "Border radius size name" + } + ] } } } From 0fceca82ac7a481a8dd3ce2e6e7c34fede4247e3 Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Tue, 2 Dec 2025 17:26:47 +0900 Subject: [PATCH 2/4] Add test --- features/makepot.feature | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/features/makepot.feature b/features/makepot.feature index c292be88..e874345d 100644 --- a/features/makepot.feature +++ b/features/makepot.feature @@ -3696,6 +3696,11 @@ Feature: Generate a POT file of a WordPress project "fontSizes": [ { "name": "Small", "slug": "small", "size": "13px" } ] + }, + "border": { + "radiusSizes": [ + { "slug": "soft", "size": "6px", "name": "Soft corners" } + ] } } } @@ -3732,6 +3737,11 @@ Feature: Generate a POT file of a WordPress project msgctxt "Font size name" msgid "Small" """ + And the foo-theme/foo-theme.pot file should contain: + """ + msgctxt "Border radius size name" + msgid "Soft corners" + """ And the foo-theme/foo-theme.pot file should contain: """ msgctxt "Style variation name" @@ -3756,6 +3766,11 @@ Feature: Generate a POT file of a WordPress project "palette": [ { "slug": "black", "color": "#000000", "name": "Black" } ] + }, + "border": { + "radiusSizes": [ + { "slug": "soft", "size": "6px", "name": "Soft corners for paragraph" } + ] } } } @@ -3774,6 +3789,11 @@ Feature: Generate a POT file of a WordPress project msgctxt "Color name" msgid "Black" """ + And the foo-theme/foo-theme.pot file should contain: + """ + msgctxt "Border radius size name" + msgid "Soft corners for paragraph" + """ Scenario: Extract strings from style variations Given an empty foo-theme directory From c9b43a21a6c204033dbf94ec547e8468f45b9928 Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Tue, 2 Dec 2025 17:41:17 +0900 Subject: [PATCH 3/4] Revert "Add test" This reverts commit 0fceca82ac7a481a8dd3ce2e6e7c34fede4247e3. --- features/makepot.feature | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/features/makepot.feature b/features/makepot.feature index e874345d..c292be88 100644 --- a/features/makepot.feature +++ b/features/makepot.feature @@ -3696,11 +3696,6 @@ Feature: Generate a POT file of a WordPress project "fontSizes": [ { "name": "Small", "slug": "small", "size": "13px" } ] - }, - "border": { - "radiusSizes": [ - { "slug": "soft", "size": "6px", "name": "Soft corners" } - ] } } } @@ -3737,11 +3732,6 @@ Feature: Generate a POT file of a WordPress project msgctxt "Font size name" msgid "Small" """ - And the foo-theme/foo-theme.pot file should contain: - """ - msgctxt "Border radius size name" - msgid "Soft corners" - """ And the foo-theme/foo-theme.pot file should contain: """ msgctxt "Style variation name" @@ -3766,11 +3756,6 @@ Feature: Generate a POT file of a WordPress project "palette": [ { "slug": "black", "color": "#000000", "name": "Black" } ] - }, - "border": { - "radiusSizes": [ - { "slug": "soft", "size": "6px", "name": "Soft corners for paragraph" } - ] } } } @@ -3789,11 +3774,6 @@ Feature: Generate a POT file of a WordPress project msgctxt "Color name" msgid "Black" """ - And the foo-theme/foo-theme.pot file should contain: - """ - msgctxt "Border radius size name" - msgid "Soft corners for paragraph" - """ Scenario: Extract strings from style variations Given an empty foo-theme directory From 37adeb8d0ec4b4d8eb59f7292e7be41b5cc85874 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 10 Dec 2025 11:36:51 +0100 Subject: [PATCH 4/4] Reapply "Add test" This reverts commit c9b43a21a6c204033dbf94ec547e8468f45b9928. --- features/makepot.feature | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/features/makepot.feature b/features/makepot.feature index c292be88..e874345d 100644 --- a/features/makepot.feature +++ b/features/makepot.feature @@ -3696,6 +3696,11 @@ Feature: Generate a POT file of a WordPress project "fontSizes": [ { "name": "Small", "slug": "small", "size": "13px" } ] + }, + "border": { + "radiusSizes": [ + { "slug": "soft", "size": "6px", "name": "Soft corners" } + ] } } } @@ -3732,6 +3737,11 @@ Feature: Generate a POT file of a WordPress project msgctxt "Font size name" msgid "Small" """ + And the foo-theme/foo-theme.pot file should contain: + """ + msgctxt "Border radius size name" + msgid "Soft corners" + """ And the foo-theme/foo-theme.pot file should contain: """ msgctxt "Style variation name" @@ -3756,6 +3766,11 @@ Feature: Generate a POT file of a WordPress project "palette": [ { "slug": "black", "color": "#000000", "name": "Black" } ] + }, + "border": { + "radiusSizes": [ + { "slug": "soft", "size": "6px", "name": "Soft corners for paragraph" } + ] } } } @@ -3774,6 +3789,11 @@ Feature: Generate a POT file of a WordPress project msgctxt "Color name" msgid "Black" """ + And the foo-theme/foo-theme.pot file should contain: + """ + msgctxt "Border radius size name" + msgid "Soft corners for paragraph" + """ Scenario: Extract strings from style variations Given an empty foo-theme directory