From 002adf25920de220428cbf15c9b11003170c1dbc Mon Sep 17 00:00:00 2001 From: Boubaker Khanfir Date: Fri, 7 Jun 2024 12:52:23 +0100 Subject: [PATCH] feat: Upgrae Application Registry configuration - MEED-6996 - Meeds-io/MIPs#139 (#368) --- crowdin.yml | 18 ++++ .../src/main/resources/portlet-instances.json | 23 +++++ .../locale/portlet/LayoutEditor_en.properties | 2 + .../webapp/WEB-INF/conf/configuration.xml | 1 - .../application-registry-configuration.xml | 83 ------------------- 5 files changed, 43 insertions(+), 84 deletions(-) create mode 100644 processes-services/src/main/resources/portlet-instances.json create mode 100644 processes-webapp/src/main/resources/locale/portlet/LayoutEditor_en.properties delete mode 100644 processes-webapp/src/main/webapp/WEB-INF/conf/processes/application-registry-configuration.xml diff --git a/crowdin.yml b/crowdin.yml index becb0cc50..9ddef7af1 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -87,4 +87,22 @@ files: [ "escape_special_characters": 0, "escape_quotes" : 0, }, + { + "source" : "/processes-webapp/src/main/resources/locale/portlet/LayoutEditor_en.properties", + + "translation" : "%original_path%/%file_name%!_%locale_with_underscore%.%file_extension%", + "translation_replace" : { + "_en!": "","ar_SA": "ar","ar_OM": "aro","az_AZ": "az","ca_ES": "ca","ceb_PH": "ceb", + "co_FR": "co","cs_CZ": "cs","de_DE": "de","el_GR": "el","en_US": "en","es_ES": "es_ES","eu_ES": "eu","fa_IR": "fa", + "fi_FI": "fi","fil_PH": "fil","fr_FR": "fr","hi_IN": "hi","hu_HU": "hu","id_ID": "id","it_IT": "it","ja_JP": "ja", + "kab_KAB": "kab","ko_KR": "ko","lt_LT": "lt","ms_MY": "ms","nl_NL": "nl","no_NO": "no","pcm_NG": "pcm","pl_PL": "pl", + "pt_BR": "pt_BR","pt_PT": "pt_PT","ro_RO": "ro","ru_RU": "ru","sk_SK": "sk","sl_SI": "sl","sq_AL": "sq", + "sv_SE": "sv_SE","th_TH": "th","tl_PH": "tl","tr_TR": "tr","uk_UA": "uk","ur_IN": "ur_IN","vi_VN": "vi", + "zh_CN": "zh_CN","zh_TW": "zh_TW", + }, + "dest" : "add__ons/processes/LayoutEditor.properties", + "update_option" : "update_as_unapproved", + "escape_special_characters": 0, + "escape_quotes" : 0, + }, ] \ No newline at end of file diff --git a/processes-services/src/main/resources/portlet-instances.json b/processes-services/src/main/resources/portlet-instances.json new file mode 100644 index 000000000..139ad36ed --- /dev/null +++ b/processes-services/src/main/resources/portlet-instances.json @@ -0,0 +1,23 @@ +{ + "descriptors":[ + { + "nameId":"Processes", + "categoryNameId":"tools", + "portletName":"Processes", + "names":{ + "en":"layout.portletInstance.Processes.name" + }, + "descriptions":{ + "en":"layout.portletInstance.Processes.description" + }, + "illustrationPath":"war:/../skin/DefaultSkin/portletIcons/Processes.png", + "preferences":[ + + ], + "permissions":[ + "*:/platform/administrators" + ], + "system":true + } + ] +} \ No newline at end of file diff --git a/processes-webapp/src/main/resources/locale/portlet/LayoutEditor_en.properties b/processes-webapp/src/main/resources/locale/portlet/LayoutEditor_en.properties new file mode 100644 index 000000000..fd1e4a5f2 --- /dev/null +++ b/processes-webapp/src/main/resources/locale/portlet/LayoutEditor_en.properties @@ -0,0 +1,2 @@ +layout.portletInstance.Processes.name=Processes +layout.portletInstance.Processes.description=Processes Portlet diff --git a/processes-webapp/src/main/webapp/WEB-INF/conf/configuration.xml b/processes-webapp/src/main/webapp/WEB-INF/conf/configuration.xml index 35d964756..08e7b378e 100644 --- a/processes-webapp/src/main/webapp/WEB-INF/conf/configuration.xml +++ b/processes-webapp/src/main/webapp/WEB-INF/conf/configuration.xml @@ -8,5 +8,4 @@ war:/conf/processes/app-center-configuration.xml war:/conf/processes/notification-configuration.xml war:/conf/processes/analytics-configuration.xml - war:/conf/processes/application-registry-configuration.xml \ No newline at end of file diff --git a/processes-webapp/src/main/webapp/WEB-INF/conf/processes/application-registry-configuration.xml b/processes-webapp/src/main/webapp/WEB-INF/conf/processes/application-registry-configuration.xml deleted file mode 100644 index 051d24bb8..000000000 --- a/processes-webapp/src/main/webapp/WEB-INF/conf/processes/application-registry-configuration.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - org.exoplatform.application.registry.ApplicationRegistryService - - Tools.portlets.registry - initListener - org.exoplatform.application.registry.ApplicationCategoriesPlugins - this listener init the portlets are registered in PortletRegister - - - system - true - - - merge - true - - - tools - description - - - Tools - - - Tools - - - Applications for tools - - - - - *:/platform/users - - - - - - - - - Processes - - - tools - - - Processes - - - Processes Portlet - - - portlet - - - processes/Processes - - - - - *:/platform/users - - - - - - - - - - - - -