From 3cb5ffd25b9604a83cd12935e641dab7c88fba47 Mon Sep 17 00:00:00 2001 From: Yassine Doghri Date: Wed, 24 Jan 2024 16:48:23 +0000 Subject: [PATCH] fix(i18n): escape language strings in form fields to prevent them from disappearing fixes #412 --- themes/cp_admin/contributor/create.php | 4 +- themes/cp_admin/contributor/edit.php | 2 +- themes/cp_admin/episode/create.php | 42 ++++++------- themes/cp_admin/episode/edit.php | 42 ++++++------- themes/cp_admin/episode/persons.php | 8 +-- themes/cp_admin/episode/publish.php | 4 +- themes/cp_admin/episode/publish_date_edit.php | 4 +- themes/cp_admin/episode/publish_edit.php | 4 +- themes/cp_admin/episode/soundbites_new.php | 2 +- themes/cp_admin/episode/video_clips_new.php | 8 +-- themes/cp_admin/fediverse/blocked_actors.php | 6 +- themes/cp_admin/fediverse/blocked_domains.php | 5 +- themes/cp_admin/import/add_to_queue.php | 10 ++-- themes/cp_admin/import/podcast_sync.php | 4 +- .../cp_admin/my_account/change_password.php | 4 +- themes/cp_admin/page/create.php | 4 +- themes/cp_admin/page/edit.php | 4 +- themes/cp_admin/person/create.php | 16 ++--- themes/cp_admin/person/edit.php | 16 ++--- themes/cp_admin/podcast/create.php | 56 ++++++++--------- themes/cp_admin/podcast/edit.php | 60 +++++++++---------- .../cp_admin/podcast/monetization_other.php | 10 ++-- themes/cp_admin/podcast/persons.php | 8 +-- themes/cp_admin/podcast/platforms.php | 4 +- themes/cp_admin/podcast/publish.php | 4 +- themes/cp_admin/podcast/publish_edit.php | 4 +- themes/cp_admin/settings/general.php | 16 ++--- themes/cp_admin/subscription/create.php | 6 +- themes/cp_admin/subscription/edit.php | 4 +- themes/cp_admin/subscription/list.php | 4 +- themes/cp_admin/subscription/suspend.php | 2 +- themes/cp_admin/user/create.php | 6 +- themes/cp_admin/user/edit.php | 2 +- themes/cp_app/podcast/follow.php | 4 +- themes/cp_app/podcast/unlock.php | 2 +- themes/cp_app/post/remote_action.php | 4 +- themes/cp_auth/email_2fa_show.php | 4 +- themes/cp_auth/email_2fa_verify.php | 4 +- themes/cp_auth/email_activate_show.php | 2 +- themes/cp_auth/login.php | 4 +- themes/cp_auth/magic_link_form.php | 2 +- themes/cp_auth/magic_link_set_password.php | 2 +- themes/cp_auth/register.php | 8 +-- themes/cp_install/cache_config.php | 2 +- themes/cp_install/create_superadmin.php | 6 +- themes/cp_install/database_config.php | 12 ++-- themes/cp_install/instance_config.php | 14 ++--- 47 files changed, 226 insertions(+), 219 deletions(-) diff --git a/themes/cp_admin/contributor/create.php b/themes/cp_admin/contributor/create.php index 91b3a94a..f1af932c 100644 --- a/themes/cp_admin/contributor/create.php +++ b/themes/cp_admin/contributor/create.php @@ -17,7 +17,7 @@ @@ -25,7 +25,7 @@ @@ -55,14 +55,14 @@ @@ -119,15 +119,15 @@ @@ -144,8 +144,8 @@ > + label="" + hint="" /> - + diff --git a/themes/cp_admin/episode/edit.php b/themes/cp_admin/episode/edit.php index 43042c89..e506617d 100644 --- a/themes/cp_admin/episode/edit.php +++ b/themes/cp_admin/episode/edit.php @@ -23,9 +23,9 @@ @@ -59,14 +59,14 @@ @@ -120,7 +120,7 @@ @@ -128,8 +128,8 @@ @@ -146,8 +146,8 @@ > @@ -269,12 +269,12 @@ - + diff --git a/themes/cp_admin/episode/persons.php b/themes/cp_admin/episode/persons.php index 16bfcde0..4f346d30 100644 --- a/themes/cp_admin/episode/persons.php +++ b/themes/cp_admin/episode/persons.php @@ -26,8 +26,8 @@ as="MultiSelect" id="persons" name="persons[]" - label="" - hint="" + label="" + hint="" options="" selected="" required="true" @@ -37,8 +37,8 @@ as="MultiSelect" id="roles" name="roles[]" - label="" - hint="" + label="" + hint="" options="" selected="" /> diff --git a/themes/cp_admin/episode/publish.php b/themes/cp_admin/episode/publish.php index 264e73bd..65f68dde 100644 --- a/themes/cp_admin/episode/publish.php +++ b/themes/cp_admin/episode/publish.php @@ -84,8 +84,8 @@ diff --git a/themes/cp_admin/episode/publish_date_edit.php b/themes/cp_admin/episode/publish_date_edit.php index 7346e659..dc465d9d 100644 --- a/themes/cp_admin/episode/publish_date_edit.php +++ b/themes/cp_admin/episode/publish_date_edit.php @@ -25,8 +25,8 @@ diff --git a/themes/cp_admin/episode/publish_edit.php b/themes/cp_admin/episode/publish_edit.php index 797a131d..6b3ac1e9 100644 --- a/themes/cp_admin/episode/publish_edit.php +++ b/themes/cp_admin/episode/publish_edit.php @@ -88,8 +88,8 @@ diff --git a/themes/cp_admin/episode/soundbites_new.php b/themes/cp_admin/episode/soundbites_new.php index 4cae03d3..23a99061 100644 --- a/themes/cp_admin/episode/soundbites_new.php +++ b/themes/cp_admin/episode/soundbites_new.php @@ -16,7 +16,7 @@ diff --git a/themes/cp_admin/episode/video_clips_new.php b/themes/cp_admin/episode/video_clips_new.php index e7cef5c1..f6915693 100644 --- a/themes/cp_admin/episode/video_clips_new.php +++ b/themes/cp_admin/episode/video_clips_new.php @@ -36,7 +36,7 @@ use Modules\MediaClipper\Config\MediaClipper;
@@ -46,17 +46,17 @@ use Modules\MediaClipper\Config\MediaClipper; name="format" isChecked="true" required="true" - hint=""> + hint=""> + hint=""> + hint="">
diff --git a/themes/cp_admin/fediverse/blocked_actors.php b/themes/cp_admin/fediverse/blocked_actors.php index 81b178aa..683ba5c7 100644 --- a/themes/cp_admin/fediverse/blocked_actors.php +++ b/themes/cp_admin/fediverse/blocked_actors.php @@ -14,7 +14,11 @@
- + diff --git a/themes/cp_admin/fediverse/blocked_domains.php b/themes/cp_admin/fediverse/blocked_domains.php index 02d174dc..ec26fda7 100644 --- a/themes/cp_admin/fediverse/blocked_domains.php +++ b/themes/cp_admin/fediverse/blocked_domains.php @@ -14,7 +14,10 @@
- + diff --git a/themes/cp_admin/import/add_to_queue.php b/themes/cp_admin/import/add_to_queue.php index 377b2062..f746a616 100644 --- a/themes/cp_admin/import/add_to_queue.php +++ b/themes/cp_admin/import/add_to_queue.php @@ -18,8 +18,8 @@ @@ -30,7 +30,7 @@ title="" >
- +
@@ -40,7 +40,7 @@ @@ -48,7 +48,7 @@ diff --git a/themes/cp_admin/import/podcast_sync.php b/themes/cp_admin/import/podcast_sync.php index 21470707..d71ad77d 100644 --- a/themes/cp_admin/import/podcast_sync.php +++ b/themes/cp_admin/import/podcast_sync.php @@ -13,8 +13,8 @@ diff --git a/themes/cp_admin/my_account/change_password.php b/themes/cp_admin/my_account/change_password.php index cbafc732..f0731a9e 100644 --- a/themes/cp_admin/my_account/change_password.php +++ b/themes/cp_admin/my_account/change_password.php @@ -15,12 +15,12 @@ diff --git a/themes/cp_admin/page/create.php b/themes/cp_admin/page/create.php index 125196c5..f1e32d23 100644 --- a/themes/cp_admin/page/create.php +++ b/themes/cp_admin/page/create.php @@ -16,7 +16,7 @@ @@ -32,7 +32,7 @@ diff --git a/themes/cp_admin/page/edit.php b/themes/cp_admin/page/edit.php index 8047a1d0..95c5941e 100644 --- a/themes/cp_admin/page/edit.php +++ b/themes/cp_admin/page/edit.php @@ -16,7 +16,7 @@ diff --git a/themes/cp_admin/person/create.php b/themes/cp_admin/person/create.php index 09f15dc6..7316d100 100644 --- a/themes/cp_admin/person/create.php +++ b/themes/cp_admin/person/create.php @@ -16,28 +16,28 @@ + label="" + hint="" /> diff --git a/themes/cp_admin/person/edit.php b/themes/cp_admin/person/edit.php index b31504ed..1d6ff3b0 100644 --- a/themes/cp_admin/person/edit.php +++ b/themes/cp_admin/person/edit.php @@ -16,31 +16,31 @@ diff --git a/themes/cp_admin/podcast/create.php b/themes/cp_admin/podcast/create.php index c2a9ac65..54ab5287 100644 --- a/themes/cp_admin/podcast/create.php +++ b/themes/cp_admin/podcast/create.php @@ -23,21 +23,21 @@ @@ -47,12 +47,12 @@
@@ -65,7 +65,7 @@ @@ -73,14 +73,14 @@ @@ -110,28 +110,28 @@ - + + label="" + hint="" /> + label="" />
@@ -139,7 +139,7 @@ title="" >
- +
@@ -148,14 +148,14 @@ - + @@ -164,7 +164,7 @@ subtitle=""> op3.dev - + + label="" + hint="" /> @@ -184,13 +184,13 @@ + label="" + hint="" /> - + - + diff --git a/themes/cp_admin/podcast/edit.php b/themes/cp_admin/podcast/edit.php index f8ce356b..0e2d9493 100644 --- a/themes/cp_admin/podcast/edit.php +++ b/themes/cp_admin/podcast/edit.php @@ -44,21 +44,21 @@ @@ -69,12 +69,12 @@
@@ -87,7 +87,7 @@ @@ -95,7 +95,7 @@ @@ -103,7 +103,7 @@ @@ -134,31 +134,31 @@ - + + hint="" /> @@ -167,7 +167,7 @@ title="" >
- +
@@ -176,15 +176,15 @@ - + @@ -194,7 +194,7 @@ op3.dev + ->get('Analytics.enableOP3', 'podcast:' . $podcast->id) ? 'true' : 'false' ?>" hint=""> + hint="" /> @@ -216,22 +216,22 @@ - + - + diff --git a/themes/cp_admin/podcast/monetization_other.php b/themes/cp_admin/podcast/monetization_other.php index a59bceca..68704a13 100644 --- a/themes/cp_admin/podcast/monetization_other.php +++ b/themes/cp_admin/podcast/monetization_other.php @@ -18,24 +18,24 @@ + hint="" />
- +
- +
- +
diff --git a/themes/cp_admin/podcast/persons.php b/themes/cp_admin/podcast/persons.php index 6d66001d..66fde64a 100644 --- a/themes/cp_admin/podcast/persons.php +++ b/themes/cp_admin/podcast/persons.php @@ -26,8 +26,8 @@ as="MultiSelect" id="persons" name="persons[]" - label="" - hint="" + label="" + hint="" options="" selected="" required="true" /> @@ -36,8 +36,8 @@ as="MultiSelect" id="roles" name="roles[]" - label="" - hint="" + label="" + hint="" options="" selected="" /> diff --git a/themes/cp_admin/podcast/platforms.php b/themes/cp_admin/podcast/platforms.php index 9de8d804..0e3eaee6 100644 --- a/themes/cp_admin/podcast/platforms.php +++ b/themes/cp_admin/podcast/platforms.php @@ -71,7 +71,7 @@
type}") ?>" + label="type}")) ?>" class="w-full mt-2" id="slug) . '_account_id' ?>" name="slug) . '][account_id]' ?>" diff --git a/themes/cp_admin/podcast/publish.php b/themes/cp_admin/podcast/publish.php index a2427275..06addaf3 100644 --- a/themes/cp_admin/podcast/publish.php +++ b/themes/cp_admin/podcast/publish.php @@ -60,8 +60,8 @@
diff --git a/themes/cp_admin/podcast/publish_edit.php b/themes/cp_admin/podcast/publish_edit.php index 1cca91b9..53919983 100644 --- a/themes/cp_admin/podcast/publish_edit.php +++ b/themes/cp_admin/podcast/publish_edit.php @@ -61,8 +61,8 @@
diff --git a/themes/cp_admin/settings/general.php b/themes/cp_admin/settings/general.php index a7540a95..ee05954e 100644 --- a/themes/cp_admin/settings/general.php +++ b/themes/cp_admin/settings/general.php @@ -25,7 +25,7 @@ use Config\App; @@ -33,7 +33,7 @@ use Config\App; @@ -83,9 +83,9 @@ use Config\App; title="" subtitle="" > - - - + + + diff --git a/themes/cp_admin/subscription/create.php b/themes/cp_admin/subscription/create.php index 19fbd198..0cdff137 100644 --- a/themes/cp_admin/subscription/create.php +++ b/themes/cp_admin/subscription/create.php @@ -18,14 +18,14 @@ diff --git a/themes/cp_admin/subscription/edit.php b/themes/cp_admin/subscription/edit.php index 761ebc2c..11fa30fc 100644 --- a/themes/cp_admin/subscription/edit.php +++ b/themes/cp_admin/subscription/edit.php @@ -27,8 +27,8 @@ diff --git a/themes/cp_admin/subscription/list.php b/themes/cp_admin/subscription/list.php index fdd50a5d..794ad6e5 100644 --- a/themes/cp_admin/subscription/list.php +++ b/themes/cp_admin/subscription/list.php @@ -21,8 +21,8 @@ class="w-full" type="url" name="subscription_link" - label="" - hint="" + label="" + hint="" placeholder="https://…" value="get('Subscription.link', 'podcast:' . $podcast->id) ?>" /> diff --git a/themes/cp_admin/subscription/suspend.php b/themes/cp_admin/subscription/suspend.php index 046ad2af..2861c8b2 100644 --- a/themes/cp_admin/subscription/suspend.php +++ b/themes/cp_admin/subscription/suspend.php @@ -20,7 +20,7 @@ diff --git a/themes/cp_admin/user/edit.php b/themes/cp_admin/user/edit.php index de91027d..61b0c486 100644 --- a/themes/cp_admin/user/edit.php +++ b/themes/cp_admin/user/edit.php @@ -21,7 +21,7 @@ diff --git a/themes/cp_app/podcast/follow.php b/themes/cp_app/podcast/follow.php index ba904824..f67ae71e 100644 --- a/themes/cp_app/podcast/follow.php +++ b/themes/cp_app/podcast/follow.php @@ -56,8 +56,8 @@ diff --git a/themes/cp_app/podcast/unlock.php b/themes/cp_app/podcast/unlock.php index 9a5ec691..5c31c62e 100644 --- a/themes/cp_app/podcast/unlock.php +++ b/themes/cp_app/podcast/unlock.php @@ -50,7 +50,7 @@ class="self-stretch mt-4 text-left" name="token" type="password" - label="" + label="" hint=" esc($podcast->title), ]) ?>" diff --git a/themes/cp_app/post/remote_action.php b/themes/cp_app/post/remote_action.php index adb70991..af0ed7d2 100644 --- a/themes/cp_app/post/remote_action.php +++ b/themes/cp_app/post/remote_action.php @@ -48,8 +48,8 @@ diff --git a/themes/cp_auth/email_2fa_show.php b/themes/cp_auth/email_2fa_show.php index 706c47ec..5bbd581c 100644 --- a/themes/cp_auth/email_2fa_show.php +++ b/themes/cp_auth/email_2fa_show.php @@ -16,8 +16,8 @@ use Modules\Auth\Config\Auth; diff --git a/themes/cp_install/database_config.php b/themes/cp_install/database_config.php index 6fa5c2e2..9a526f24 100644 --- a/themes/cp_install/database_config.php +++ b/themes/cp_install/database_config.php @@ -25,27 +25,27 @@ use Config\Database; diff --git a/themes/cp_install/instance_config.php b/themes/cp_install/instance_config.php index f51a2859..e1f0a228 100644 --- a/themes/cp_install/instance_config.php +++ b/themes/cp_install/instance_config.php @@ -20,26 +20,26 @@ use Modules\Install\Config\Install; + label="" + hint="" />