From ef169d74188b0d5be5e735dce54da814dcd126af Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Wed, 23 Oct 2024 09:25:14 +1100 Subject: [PATCH 1/5] Add translator note for multilingual strings. --- patterns/banner-poster.php | 7 ++++++- patterns/cta-events-list.php | 14 ++++++++++++-- patterns/event-rsvp.php | 7 ++++++- 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/patterns/banner-poster.php b/patterns/banner-poster.php index 167ac0a8..f9d4ad05 100644 --- a/patterns/banner-poster.php +++ b/patterns/banner-poster.php @@ -21,7 +21,12 @@
-

+

+ +

diff --git a/patterns/cta-events-list.php b/patterns/cta-events-list.php index bb21168e..53b995fe 100644 --- a/patterns/cta-events-list.php +++ b/patterns/cta-events-list.php @@ -61,7 +61,12 @@
-

+

+ +

@@ -123,7 +128,12 @@
-

+

+ +

diff --git a/patterns/event-rsvp.php b/patterns/event-rsvp.php index e22b81e5..cf5cf5fa 100644 --- a/patterns/event-rsvp.php +++ b/patterns/event-rsvp.php @@ -23,7 +23,12 @@
-

+

+ +

From 9bec7bdb20a0471ca62cad22fa5ad260e81bced1 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Wed, 23 Oct 2024 09:28:12 +1100 Subject: [PATCH 2/5] Use same context for sample/placeholder headings. --- patterns/banner-poster.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patterns/banner-poster.php b/patterns/banner-poster.php index f9d4ad05..7e531cbf 100644 --- a/patterns/banner-poster.php +++ b/patterns/banner-poster.php @@ -24,7 +24,7 @@

From 0dcd053ec43ee52e4ee2a630b4ffed3c68e7c14e Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Fri, 25 Oct 2024 09:07:54 +1100 Subject: [PATCH 3/5] Update multilingual string to use `lang` attributes. --- patterns/banner-poster.php | 4 +++- patterns/cta-events-list.php | 8 ++++++-- patterns/event-rsvp.php | 6 ++++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/patterns/banner-poster.php b/patterns/banner-poster.php index 7e531cbf..0c1ee173 100644 --- a/patterns/banner-poster.php +++ b/patterns/banner-poster.php @@ -23,8 +23,10 @@

historias, iсторії, iστορίες”', 'Placeholder heading in four languages.', 'twentytwentyfive' ) + ); ?>

diff --git a/patterns/cta-events-list.php b/patterns/cta-events-list.php index 53b995fe..4e91a24b 100644 --- a/patterns/cta-events-list.php +++ b/patterns/cta-events-list.php @@ -63,8 +63,10 @@

historias, iсторії, iστορίες”', 'Placeholder heading in four languages.', 'twentytwentyfive' ) + ); ?>

@@ -130,8 +132,10 @@

historias, iсторії, iστορίες”', 'Placeholder heading in four languages.', 'twentytwentyfive' ) + ); ?>

diff --git a/patterns/event-rsvp.php b/patterns/event-rsvp.php index cf5cf5fa..ec184346 100644 --- a/patterns/event-rsvp.php +++ b/patterns/event-rsvp.php @@ -24,9 +24,11 @@

- historias, iсторії, iστορίες”', 'Placeholder heading in four languages.', 'twentytwentyfive' ) + ); ?>

From da881fe46b7cec7f44c3a32b166f49cba3da5629 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Fri, 25 Oct 2024 10:06:49 +1100 Subject: [PATCH 4/5] CS --- patterns/event-rsvp.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/patterns/event-rsvp.php b/patterns/event-rsvp.php index ec184346..beda4cb8 100644 --- a/patterns/event-rsvp.php +++ b/patterns/event-rsvp.php @@ -25,11 +25,11 @@

historias, iсторії, iστορίες”', 'Placeholder heading in four languages.', 'twentytwentyfive' ) - ); - ?> + echo wp_kses_post( + /* translators: This string contains the word "Stories" in four different languages with the first item in the locale's language. */ + _x( '“Stories, historias, iсторії, iστορίες”', 'Placeholder heading in four languages.', 'twentytwentyfive' ) + ); + ?>

From d73c8ad00dd34262a864df398ec54c37df030436 Mon Sep 17 00:00:00 2001 From: Peter Wilson <519727+peterwilsoncc@users.noreply.github.com> Date: Fri, 25 Oct 2024 12:24:00 +1100 Subject: [PATCH 5/5] Fix indentation inconsistency Co-authored-by: Sergey Biryukov --- patterns/event-rsvp.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/patterns/event-rsvp.php b/patterns/event-rsvp.php index beda4cb8..1ba58e5a 100644 --- a/patterns/event-rsvp.php +++ b/patterns/event-rsvp.php @@ -24,12 +24,12 @@

- historias, iсторії, iστορίες”', 'Placeholder heading in four languages.', 'twentytwentyfive' ) - ); - ?> + historias, iсторії, iστορίες”', 'Placeholder heading in four languages.', 'twentytwentyfive' ) + ); + ?>