From 8ad711529bc173e44d25ebaf451171f1daa428b2 Mon Sep 17 00:00:00 2001 From: Konstantin Kolos Date: Tue, 24 Sep 2024 18:54:12 +0300 Subject: [PATCH 1/5] Translation for Publish & Feature --- installation/sql/mysql/base.sql | 14 +++++++------- installation/sql/postgresql/base.sql | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/installation/sql/mysql/base.sql b/installation/sql/mysql/base.sql index 6301dfdc950c9..e8ef9f56f4ae7 100644 --- a/installation/sql/mysql/base.sql +++ b/installation/sql/mysql/base.sql @@ -77,13 +77,13 @@ INSERT INTO `#__assets` (`id`, `parent_id`, `lft`, `rgt`, `level`, `name`, `titl (55, 18, 94, 95, 2, 'com_modules.module.87', 'Sample Data', '{}'), (56, 8, 20, 37, 2, 'com_content.workflow.1', 'COM_WORKFLOW_BASIC_WORKFLOW', '{}'), (57, 56, 21, 22, 3, 'com_content.stage.1', 'COM_WORKFLOW_BASIC_STAGE', '{}'), -(58, 56, 23, 24, 3, 'com_content.transition.1', 'Unpublish', '{}'), -(59, 56, 25, 26, 3, 'com_content.transition.2', 'Publish', '{}'), -(60, 56, 27, 28, 3, 'com_content.transition.3', 'Trash', '{}'), -(61, 56, 29, 30, 3, 'com_content.transition.4', 'Archive', '{}'), -(62, 56, 31, 32, 3, 'com_content.transition.5', 'Feature', '{}'), -(63, 56, 33, 34, 3, 'com_content.transition.6', 'Unfeature', '{}'), -(64, 56, 35, 36, 3, 'com_content.transition.7', 'Publish & Feature', '{}'), +(58, 56, 23, 24, 3, 'com_content.transition.1', 'UNPUBLISH', '{}'), +(59, 56, 25, 26, 3, 'com_content.transition.2', 'PUBLISH', '{}'), +(60, 56, 27, 28, 3, 'com_content.transition.3', 'TRASH', '{}'), +(61, 56, 29, 30, 3, 'com_content.transition.4', 'ARCHIVE', '{}'), +(62, 56, 31, 32, 3, 'com_content.transition.5', 'FEATURE', '{}'), +(63, 56, 33, 34, 3, 'com_content.transition.6', 'UNFEATURE', '{}'), +(64, 56, 35, 36, 3, 'com_content.transition.7', 'PUBLISH_AND_FEATURE', '{}'), (65, 1, 143, 144, 1, 'com_privacy', 'com_privacy', '{}'), (66, 1, 145, 146, 1, 'com_actionlogs', 'com_actionlogs', '{}'), (67, 18, 76, 77, 2, 'com_modules.module.88', 'Latest Actions', '{}'), diff --git a/installation/sql/postgresql/base.sql b/installation/sql/postgresql/base.sql index 9ade1f50e49a8..304f6de35c86e 100644 --- a/installation/sql/postgresql/base.sql +++ b/installation/sql/postgresql/base.sql @@ -83,13 +83,13 @@ INSERT INTO "#__assets" ("id", "parent_id", "lft", "rgt", "level", "name", "titl (55, 18, 94, 95, 2, 'com_modules.module.87', 'Sample Data', '{}'), (56, 8, 20, 37, 2, 'com_content.workflow.1', 'COM_WORKFLOW_BASIC_WORKFLOW', '{}'), (57, 56, 21, 22, 3, 'com_content.stage.1', 'COM_WORKFLOW_BASIC_STAGE', '{}'), -(58, 56, 23, 24, 3, 'com_content.transition.1', 'Unpublish', '{}'), -(59, 56, 25, 26, 3, 'com_content.transition.2', 'Publish', '{}'), -(60, 56, 27, 28, 3, 'com_content.transition.3', 'Trash', '{}'), -(61, 56, 29, 30, 3, 'com_content.transition.4', 'Archive', '{}'), -(62, 56, 31, 32, 3, 'com_content.transition.5', 'Feature', '{}'), -(63, 56, 33, 34, 3, 'com_content.transition.6', 'Unfeature', '{}'), -(64, 56, 35, 36, 3, 'com_content.transition.7', 'Publish & Feature', '{}'), +(58, 56, 23, 24, 3, 'com_content.transition.1', 'UNPUBLISH', '{}'), +(59, 56, 25, 26, 3, 'com_content.transition.2', 'PUBLISH', '{}'), +(60, 56, 27, 28, 3, 'com_content.transition.3', 'TRASH', '{}'), +(61, 56, 29, 30, 3, 'com_content.transition.4', 'ARCHIVE', '{}'), +(62, 56, 31, 32, 3, 'com_content.transition.5', 'FEATURE', '{}'), +(63, 56, 33, 34, 3, 'com_content.transition.6', 'UNFEATURE', '{}'), +(64, 56, 35, 36, 3, 'com_content.transition.7', 'PUBLISH_AND_FEATURE', '{}'), (65, 1, 143, 144, 1, 'com_privacy', 'com_privacy', '{}'), (66, 1, 145, 146, 1, 'com_actionlogs', 'com_actionlogs', '{}'), (67, 18, 76, 77, 2, 'com_modules.module.88', 'Latest Actions', '{}'), From f3beec219c056407bf5af2a892ea8fe067ec415a Mon Sep 17 00:00:00 2001 From: Konstantin Kolos Date: Tue, 24 Sep 2024 20:39:30 +0300 Subject: [PATCH 2/5] Files for translation strings in #__assets --- .../com_admin/sql/updates/mysql/5.2.0-2024-09-24.sql | 7 +++++++ .../com_admin/sql/updates/postgresql/5.2.0-2024-09-24.sql | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 administrator/components/com_admin/sql/updates/mysql/5.2.0-2024-09-24.sql create mode 100644 administrator/components/com_admin/sql/updates/postgresql/5.2.0-2024-09-24.sql diff --git a/administrator/components/com_admin/sql/updates/mysql/5.2.0-2024-09-24.sql b/administrator/components/com_admin/sql/updates/mysql/5.2.0-2024-09-24.sql new file mode 100644 index 0000000000000..0721f07e12ff4 --- /dev/null +++ b/administrator/components/com_admin/sql/updates/mysql/5.2.0-2024-09-24.sql @@ -0,0 +1,7 @@ +UPDATE `#__assets` SET `title` = 'PUBLISH' WHERE `title`= 'Publish'; +UPDATE `#__assets` SET `title` = 'UNPUBLISH' WHERE `title`= 'Unpublish'; +UPDATE `#__assets` SET `title` = 'TRASH' WHERE `title`= 'Trash'; +UPDATE `#__assets` SET `title` = 'ARCHIVE' WHERE `title`= 'Archive'; +UPDATE `#__assets` SET `title` = 'FEATURE' WHERE `title`= 'Feature'; +UPDATE `#__assets` SET `title` = 'UNFEATURE' WHERE `title`= 'Unfeature'; +UPDATE `#__assets` SET `title` = 'PUBLISH_AND_FEATURE' WHERE `title`= 'Publish & Feature'; diff --git a/administrator/components/com_admin/sql/updates/postgresql/5.2.0-2024-09-24.sql b/administrator/components/com_admin/sql/updates/postgresql/5.2.0-2024-09-24.sql new file mode 100644 index 0000000000000..b70dcda34c46d --- /dev/null +++ b/administrator/components/com_admin/sql/updates/postgresql/5.2.0-2024-09-24.sql @@ -0,0 +1,7 @@ +UPDATE "#__assets" SET "title" = 'PUBLISH' WHERE "title"= 'Publish'; +UPDATE "#__assets" SET "title" = 'UNPUBLISH' WHERE "title"= 'Unpublish'; +UPDATE "#__assets" SET "title" = 'TRASH' WHERE "title"= 'Trash'; +UPDATE "#__assets" SET "title" = 'ARCHIVE' WHERE "title"= 'Archive'; +UPDATE "#__assets" SET "title" = 'FEATURE' WHERE "title"= 'Feature'; +UPDATE "#__assets" SET "title" = 'UNFEATURE' WHERE "title"= 'Unfeature'; +UPDATE "#__assets" SET "title" = 'PUBLISH_AND_FEATURE' WHERE "title"= 'Publish & Feature'; From aabd45afbe501e45ca9c6d6d009ba96180216b88 Mon Sep 17 00:00:00 2001 From: Konstantin Kolos Date: Tue, 24 Sep 2024 21:01:40 +0300 Subject: [PATCH 3/5] Another condition for translation for #__assets --- .../sql/updates/mysql/5.2.0-2024-09-24.sql | 14 +++++++------- .../sql/updates/postgresql/5.2.0-2024-09-24.sql | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/administrator/components/com_admin/sql/updates/mysql/5.2.0-2024-09-24.sql b/administrator/components/com_admin/sql/updates/mysql/5.2.0-2024-09-24.sql index 0721f07e12ff4..df45f22814047 100644 --- a/administrator/components/com_admin/sql/updates/mysql/5.2.0-2024-09-24.sql +++ b/administrator/components/com_admin/sql/updates/mysql/5.2.0-2024-09-24.sql @@ -1,7 +1,7 @@ -UPDATE `#__assets` SET `title` = 'PUBLISH' WHERE `title`= 'Publish'; -UPDATE `#__assets` SET `title` = 'UNPUBLISH' WHERE `title`= 'Unpublish'; -UPDATE `#__assets` SET `title` = 'TRASH' WHERE `title`= 'Trash'; -UPDATE `#__assets` SET `title` = 'ARCHIVE' WHERE `title`= 'Archive'; -UPDATE `#__assets` SET `title` = 'FEATURE' WHERE `title`= 'Feature'; -UPDATE `#__assets` SET `title` = 'UNFEATURE' WHERE `title`= 'Unfeature'; -UPDATE `#__assets` SET `title` = 'PUBLISH_AND_FEATURE' WHERE `title`= 'Publish & Feature'; +UPDATE `#__assets` SET `title` = 'PUBLISH' WHERE `name` LIKE 'com_content.transition.%' AND `title`= 'Publish'; +UPDATE `#__assets` SET `title` = 'UNPUBLISH' WHERE `name` LIKE 'com_content.transition.%' AND `title`= 'Unpublish'; +UPDATE `#__assets` SET `title` = 'TRASH' WHERE `name` LIKE 'com_content.transition.%' AND `title`= 'Trash'; +UPDATE `#__assets` SET `title` = 'ARCHIVE' WHERE `name` LIKE 'com_content.transition.%' AND `title`= 'Archive'; +UPDATE `#__assets` SET `title` = 'FEATURE' WHERE `name` LIKE 'com_content.transition.%' AND `title`= 'Feature'; +UPDATE `#__assets` SET `title` = 'UNFEATURE' WHERE `name` LIKE 'com_content.transition.%' AND `title`= 'Unfeature'; +UPDATE `#__assets` SET `title` = 'PUBLISH_AND_FEATURE' WHERE `name` LIKE 'com_content.transition.%' AND `title`= 'Publish & Feature'; diff --git a/administrator/components/com_admin/sql/updates/postgresql/5.2.0-2024-09-24.sql b/administrator/components/com_admin/sql/updates/postgresql/5.2.0-2024-09-24.sql index b70dcda34c46d..48605475c6d39 100644 --- a/administrator/components/com_admin/sql/updates/postgresql/5.2.0-2024-09-24.sql +++ b/administrator/components/com_admin/sql/updates/postgresql/5.2.0-2024-09-24.sql @@ -1,7 +1,7 @@ -UPDATE "#__assets" SET "title" = 'PUBLISH' WHERE "title"= 'Publish'; -UPDATE "#__assets" SET "title" = 'UNPUBLISH' WHERE "title"= 'Unpublish'; -UPDATE "#__assets" SET "title" = 'TRASH' WHERE "title"= 'Trash'; -UPDATE "#__assets" SET "title" = 'ARCHIVE' WHERE "title"= 'Archive'; -UPDATE "#__assets" SET "title" = 'FEATURE' WHERE "title"= 'Feature'; -UPDATE "#__assets" SET "title" = 'UNFEATURE' WHERE "title"= 'Unfeature'; -UPDATE "#__assets" SET "title" = 'PUBLISH_AND_FEATURE' WHERE "title"= 'Publish & Feature'; +UPDATE "#__assets" SET "title" = 'PUBLISH' WHERE "name" LIKE 'com_content.transition.%' AND "title"= 'Publish'; +UPDATE "#__assets" SET "title" = 'UNPUBLISH' WHERE "name" LIKE 'com_content.transition.%' AND "title"= 'Unpublish'; +UPDATE "#__assets" SET "title" = 'TRASH' WHERE "name" LIKE 'com_content.transition.%' AND "title"= 'Trash'; +UPDATE "#__assets" SET "title" = 'ARCHIVE' WHERE "name" LIKE 'com_content.transition.%' AND "title"= 'Archive'; +UPDATE "#__assets" SET "title" = 'FEATURE' WHERE "name" LIKE 'com_content.transition.%' AND "title"= 'Feature'; +UPDATE "#__assets" SET "title" = 'UNFEATURE' WHERE "name" LIKE 'com_content.transition.%' AND "title"= 'Unfeature'; +UPDATE "#__assets" SET "title" = 'PUBLISH_AND_FEATURE' WHERE "name" LIKE 'com_content.transition.%' AND "title"= 'Publish & Feature'; From a3afd8bbabf17bca56d0261a334cf2037a7d9264 Mon Sep 17 00:00:00 2001 From: Quy Date: Sat, 28 Sep 2024 14:08:03 -0700 Subject: [PATCH 4/5] Update administrator/components/com_admin/sql/updates/mysql/5.2.0-2024-09-24.sql --- .../sql/updates/mysql/5.2.0-2024-09-24.sql | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/administrator/components/com_admin/sql/updates/mysql/5.2.0-2024-09-24.sql b/administrator/components/com_admin/sql/updates/mysql/5.2.0-2024-09-24.sql index df45f22814047..1592aba38893f 100644 --- a/administrator/components/com_admin/sql/updates/mysql/5.2.0-2024-09-24.sql +++ b/administrator/components/com_admin/sql/updates/mysql/5.2.0-2024-09-24.sql @@ -1,7 +1,7 @@ -UPDATE `#__assets` SET `title` = 'PUBLISH' WHERE `name` LIKE 'com_content.transition.%' AND `title`= 'Publish'; -UPDATE `#__assets` SET `title` = 'UNPUBLISH' WHERE `name` LIKE 'com_content.transition.%' AND `title`= 'Unpublish'; -UPDATE `#__assets` SET `title` = 'TRASH' WHERE `name` LIKE 'com_content.transition.%' AND `title`= 'Trash'; -UPDATE `#__assets` SET `title` = 'ARCHIVE' WHERE `name` LIKE 'com_content.transition.%' AND `title`= 'Archive'; -UPDATE `#__assets` SET `title` = 'FEATURE' WHERE `name` LIKE 'com_content.transition.%' AND `title`= 'Feature'; -UPDATE `#__assets` SET `title` = 'UNFEATURE' WHERE `name` LIKE 'com_content.transition.%' AND `title`= 'Unfeature'; -UPDATE `#__assets` SET `title` = 'PUBLISH_AND_FEATURE' WHERE `name` LIKE 'com_content.transition.%' AND `title`= 'Publish & Feature'; +UPDATE `#__assets` SET `title` = 'PUBLISH' WHERE `name` LIKE 'com_content.transition.%' AND `title` = 'Publish'; +UPDATE `#__assets` SET `title` = 'UNPUBLISH' WHERE `name` LIKE 'com_content.transition.%' AND `title` = 'Unpublish'; +UPDATE `#__assets` SET `title` = 'TRASH' WHERE `name` LIKE 'com_content.transition.%' AND `title` = 'Trash'; +UPDATE `#__assets` SET `title` = 'ARCHIVE' WHERE `name` LIKE 'com_content.transition.%' AND `title` = 'Archive'; +UPDATE `#__assets` SET `title` = 'FEATURE' WHERE `name` LIKE 'com_content.transition.%' AND `title` = 'Feature'; +UPDATE `#__assets` SET `title` = 'UNFEATURE' WHERE `name` LIKE 'com_content.transition.%' AND `title` = 'Unfeature'; +UPDATE `#__assets` SET `title` = 'PUBLISH_AND_FEATURE' WHERE `name` LIKE 'com_content.transition.%' AND `title` = 'Publish & Feature'; From 048f044f7e00091efccee3e6bc3bc1edf1d32f39 Mon Sep 17 00:00:00 2001 From: Quy Date: Sat, 28 Sep 2024 14:08:36 -0700 Subject: [PATCH 5/5] Update administrator/components/com_admin/sql/updates/postgresql/5.2.0-2024-09-24.sql --- .../sql/updates/postgresql/5.2.0-2024-09-24.sql | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/administrator/components/com_admin/sql/updates/postgresql/5.2.0-2024-09-24.sql b/administrator/components/com_admin/sql/updates/postgresql/5.2.0-2024-09-24.sql index 48605475c6d39..8da7f706d58f6 100644 --- a/administrator/components/com_admin/sql/updates/postgresql/5.2.0-2024-09-24.sql +++ b/administrator/components/com_admin/sql/updates/postgresql/5.2.0-2024-09-24.sql @@ -1,7 +1,7 @@ -UPDATE "#__assets" SET "title" = 'PUBLISH' WHERE "name" LIKE 'com_content.transition.%' AND "title"= 'Publish'; -UPDATE "#__assets" SET "title" = 'UNPUBLISH' WHERE "name" LIKE 'com_content.transition.%' AND "title"= 'Unpublish'; -UPDATE "#__assets" SET "title" = 'TRASH' WHERE "name" LIKE 'com_content.transition.%' AND "title"= 'Trash'; -UPDATE "#__assets" SET "title" = 'ARCHIVE' WHERE "name" LIKE 'com_content.transition.%' AND "title"= 'Archive'; -UPDATE "#__assets" SET "title" = 'FEATURE' WHERE "name" LIKE 'com_content.transition.%' AND "title"= 'Feature'; -UPDATE "#__assets" SET "title" = 'UNFEATURE' WHERE "name" LIKE 'com_content.transition.%' AND "title"= 'Unfeature'; -UPDATE "#__assets" SET "title" = 'PUBLISH_AND_FEATURE' WHERE "name" LIKE 'com_content.transition.%' AND "title"= 'Publish & Feature'; +UPDATE "#__assets" SET "title" = 'PUBLISH' WHERE "name" LIKE 'com_content.transition.%' AND "title" = 'Publish'; +UPDATE "#__assets" SET "title" = 'UNPUBLISH' WHERE "name" LIKE 'com_content.transition.%' AND "title" = 'Unpublish'; +UPDATE "#__assets" SET "title" = 'TRASH' WHERE "name" LIKE 'com_content.transition.%' AND "title" = 'Trash'; +UPDATE "#__assets" SET "title" = 'ARCHIVE' WHERE "name" LIKE 'com_content.transition.%' AND "title" = 'Archive'; +UPDATE "#__assets" SET "title" = 'FEATURE' WHERE "name" LIKE 'com_content.transition.%' AND "title" = 'Feature'; +UPDATE "#__assets" SET "title" = 'UNFEATURE' WHERE "name" LIKE 'com_content.transition.%' AND "title" = 'Unfeature'; +UPDATE "#__assets" SET "title" = 'PUBLISH_AND_FEATURE' WHERE "name" LIKE 'com_content.transition.%' AND "title" = 'Publish & Feature';