From a76d05828e424bd3f62d8e89e917767816189199 Mon Sep 17 00:00:00 2001 From: Oleg Ryazancev Date: Fri, 22 Mar 2024 16:42:01 +0300 Subject: [PATCH] Update messages.properties --- .../src/main/resources/messages/messages.properties | 2 ++ .../src/main/resources/messages/messages.properties | 1 + auth/src/main/resources/messages/messages.properties | 2 ++ .../src/main/resources/messages/messages.properties | 2 ++ logo/src/main/resources/messages/messages.properties | 1 + mail/src/main/resources/messages/messages.properties | 4 +++- .../src/main/resources/messages/messages.properties | 12 +++++------- .../src/main/resources/messages/messages.properties | 2 ++ .../src/main/resources/messages/messages.properties | 6 +++--- .../src/main/resources/messages/messages.properties | 3 ++- .../src/main/resources/messages/messages.properties | 5 +++-- 11 files changed, 26 insertions(+), 14 deletions(-) diff --git a/admin/src/main/resources/messages/messages.properties b/admin/src/main/resources/messages/messages.properties index 81d3975..487cc85 100644 --- a/admin/src/main/resources/messages/messages.properties +++ b/admin/src/main/resources/messages/messages.properties @@ -1,7 +1,9 @@ +#EXCEPTION MESSAGES OS-ADMIN-101-400=Invalid request status: {0} OS-ADMIN-201-404=Request not found by this id: {0} OS-ADMIN-SERVICE_UNAVAILABLE-503=The {0} service is currently unavailable. Please try again later OS-ADMIN-SECURITY=Security Exception: {0} OS-ADMIN-INTERNAL-500=Internal: {0} +#SERVICE MESSAGES service.admin.change_status_request=Request to {0} {1} with id: {2} was successfully sent service.admin.toggle_account_lock_request=Request to set locked to: {0} of user with id: {1} was successfully sent diff --git a/api-gateway/src/main/resources/messages/messages.properties b/api-gateway/src/main/resources/messages/messages.properties index 023b9fe..782ca04 100644 --- a/api-gateway/src/main/resources/messages/messages.properties +++ b/api-gateway/src/main/resources/messages/messages.properties @@ -1,3 +1,4 @@ +#EXCEPTION MESSAGES OS-API_GATEWAY-101-401=Unauthorized OS-API_GATEWAY-102-401=Unauthorized request OS-API_GATEWAY-103-401=Insufficient privileges for admin microservice diff --git a/auth/src/main/resources/messages/messages.properties b/auth/src/main/resources/messages/messages.properties index 52d324c..f0754c7 100644 --- a/auth/src/main/resources/messages/messages.properties +++ b/auth/src/main/resources/messages/messages.properties @@ -1,3 +1,4 @@ +#EXCEPTION MESSAGES OS-AUTH-101-403=Access denied. We're sorry {0}, but this account was deleted at {1} OS-AUTH-102-403=Invalid refresh token OS-AUTH-201-400=This email address has already been confirmed @@ -11,4 +12,5 @@ OS-AUTH-403-404=The user was not found with this customer id {0} OS-AUTH-SERVICE_UNAVAILABLE-503=The {0} service is currently unavailable. Please try again later OS-AUTH-SECURITY=Security Exception: {0} OS-AUTH-INTERNAL-500=Internal: {0} +#SERVICE MESSAGES service.auth.email_confirmed_successfully=Email confirmed successfully! diff --git a/customer/src/main/resources/messages/messages.properties b/customer/src/main/resources/messages/messages.properties index c002ef7..8f3fb22 100644 --- a/customer/src/main/resources/messages/messages.properties +++ b/customer/src/main/resources/messages/messages.properties @@ -1,3 +1,4 @@ +#EXCEPTION MESSAGES OS-CUSTOMER-101-403=You do not have permission to access this customer with id: {0} OS-CUSTOMER-102-403=You do not have permission to access this notifications OS-CUSTOMER-103-403=You do not have permission to access this private notification with id: {0} @@ -8,4 +9,5 @@ OS-CUSTOMER-301-404=Customer not found with this ID: {0} OS-CUSTOMER-SERVICE_UNAVAILABLE-503=The {0} service is currently unavailable. Please try again later OS-CUSTOMER-SECURITY=Security Exception: {0} OS-CUSTOMER-INTERNAL-500=Internal: {0} +#SERVICE MESSAGES service.customer.deleted=Customer with id: {0} was successfully deleted diff --git a/logo/src/main/resources/messages/messages.properties b/logo/src/main/resources/messages/messages.properties index 2987519..c1f09c9 100644 --- a/logo/src/main/resources/messages/messages.properties +++ b/logo/src/main/resources/messages/messages.properties @@ -1,3 +1,4 @@ +#EXCEPTION MESSAGES OS-LOGO-101-400=Logo upload failed: {0} OS-LOGO-102-400=Logo must have name OS-LOGO-INTERNAL-500=Internal: {0} diff --git a/mail/src/main/resources/messages/messages.properties b/mail/src/main/resources/messages/messages.properties index 745b1ec..0c8abb1 100644 --- a/mail/src/main/resources/messages/messages.properties +++ b/mail/src/main/resources/messages/messages.properties @@ -1,5 +1,7 @@ +#EXCEPTION MESSAGES +OS-MAIL-INTERNAL-500=Internal: {0} +#SERVICE MESSAGES service.mail.rejected_registration_subject=Dear {0}! Your registration request were rejected! service.mail.accepted_registration_subject=Dear {0}! Your registration request were accepted! service.mail.confirm_mail_subject=Please, confirm your email address service.mail.registration_welcome_subject=Thank you for registration, {0}! -OS-MAIL-INTERNAL-500=Internal: {0} diff --git a/notification/src/main/resources/messages/messages.properties b/notification/src/main/resources/messages/messages.properties index d7b0f16..c80e94d 100644 --- a/notification/src/main/resources/messages/messages.properties +++ b/notification/src/main/resources/messages/messages.properties @@ -1,3 +1,8 @@ +#EXCEPTION MESSAGES +OS-NOTIFICATION-101-404={0} notification with id {1} not found +OS-NOTIFICATION-201-400=Invalid scope provided +OS-NOTIFICATION-SERVICE_UNAVAILABLE-503=The {0} service is currently unavailable. Please try again later +OS-NOTIFICATION-INTERNAL-500=Internal: {0} #CONTENT MESSAGES content.notification.product_reg_accepted.header=Product Registration Accepted content.notification.product_reg_accepted.body=Dear User, your request to register the new product '{0}' has been accepted. The product has been successfully registered. @@ -23,10 +28,3 @@ content.notification.object_activate.header={0} Was Activated content.notification.object_activate.body=Dear User, '{0}' was activated. content.notification.new_reg_request_received.header=New Registration Request content.notification.new_reg_request_received.body=Dear admin, you have new registration request of {0}. -#EXCEPTION MESSAGES -OS-NOTIFICATION-101-404={0} notification with id {1} not found -OS-NOTIFICATION-201-400=Invalid scope provided -OS-NOTIFICATION-SERVICE_UNAVAILABLE-503=The {0} service is currently unavailable. Please try again later -OS-NOTIFICATION-INTERNAL-500=Internal: {0} - - diff --git a/organization/src/main/resources/messages/messages.properties b/organization/src/main/resources/messages/messages.properties index b186a44..3fcb072 100644 --- a/organization/src/main/resources/messages/messages.properties +++ b/organization/src/main/resources/messages/messages.properties @@ -1,3 +1,4 @@ +#EXCEPTION MESSAGES OS-ORGANIZATION-101-403=You do not have permission to access this {0} with id {1} OS-ORGANIZATION-102-403=Access denied because your account is locked OS-ORGANIZATION-103-403=Access denied because your email has not been confirmed @@ -8,5 +9,6 @@ OS-ORGANIZATION-301-404=Organization not found with this id {0} OS-ORGANIZATION-SERVICE_UNAVAILABLE-503=The {0} service is currently unavailable. Please try again later OS-ORGANIZATION-SECURITY=Security Exception: {0} OS-ORGANIZATION-INTERNAL-500=Internal: {0} +#SERVICE MESSAGES service.organization.logo_uploaded=Logo successfully uploaded to organization with id: {0}. File name: {1} service.organization.deleted=Organization with id: {0} successfully deleted diff --git a/product/src/main/resources/messages/messages.properties b/product/src/main/resources/messages/messages.properties index 03be8c9..8367a0d 100644 --- a/product/src/main/resources/messages/messages.properties +++ b/product/src/main/resources/messages/messages.properties @@ -1,3 +1,4 @@ +#EXCEPTION MESSAGES OS-PRODUCT-101-403=You do not have permission to access this {0} with id {1} OS-PRODUCT-102-403=Access denied because your account is locked OS-PRODUCT-103-403=Access denied because your email has not been confirmed @@ -6,8 +7,7 @@ OS-PRODUCT-201-400=A product with this name already exists OS-PRODUCT-301-404=Product not found by id: {0} OS-PRODUCT-302-404=Product not found by organization id: {0} OS-PRODUCT-SERVICE_UNAVAILABLE-503=The {0} service is currently unavailable. Please try again later -OS-PRODUCT-INTERNAL-500=Internal: {0} OS-PRODUCT-SECURITY=Security Exception: {0} - +OS-PRODUCT-INTERNAL-500=Internal: {0} +#SERVICE MESSAGES service.product.deleted=Product was successfully deleted - diff --git a/purchase/src/main/resources/messages/messages.properties b/purchase/src/main/resources/messages/messages.properties index 59368dc..911b09b 100644 --- a/purchase/src/main/resources/messages/messages.properties +++ b/purchase/src/main/resources/messages/messages.properties @@ -1,6 +1,7 @@ +#EXCEPTION MESSAGES OS-PURCHASE-101-404=Purchase not found with this id: {0} OS-PURCHASE-201-400=The customer does not have enough funds to purchase the product OS-PURCHASE-301-409=No products are currently available in stock OS-PURCHASE-SERVICE_UNAVAILABLE-503=The {0} service is currently unavailable. Please try again later -OS-PURCHASE-INTERNAL-500=Internal: {0} OS-PURCHASE-SECURITY=Security Exception: {0} +OS-PURCHASE-INTERNAL-500=Internal: {0} diff --git a/review/src/main/resources/messages/messages.properties b/review/src/main/resources/messages/messages.properties index 0e2add2..ebd4e8d 100644 --- a/review/src/main/resources/messages/messages.properties +++ b/review/src/main/resources/messages/messages.properties @@ -1,6 +1,7 @@ +#EXCEPTION MESSAGES OS-REVIEW-101-400=A review with the same purchase ID: {0} already exists OS-REVIEW-SERVICE_UNAVAILABLE-503=The {0} service is currently unavailable. Please try again later -OS-REVIEW-INTERNAL-500=Internal: {0} OS-REVIEW-SECURITY=Security Exception: {0} - +OS-REVIEW-INTERNAL-500=Internal: {0} +#SERVICE MESSAGES service.review.deleted={0} reviews was successfully deleted