Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OP-1729: Error translation update. #43

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft

Conversation

Meelad0708
Copy link

Ticket: https://openimis.atlassian.net/browse/OP-1729

Changes:
-Added translations
-Change import to from django.utils.translation import gettext as _

@Meelad0708 Meelad0708 requested a review from a user February 16, 2024 09:47

#: medical_pricelist/gql_mutations.py:221
#: medical_pricelist/gql_mutations.py:320
msgid "Unauthorized"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove one of them, you have two "unathorized" with different capitalization.


#: medical_pricelist/services.py:20 medical_pricelist/services.py:20
#, python-brace-format
msgid "pricelist.mutation.failed_to_delete_{pricelist.model_prefix}"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove curly braces in key.

@@ -48,12 +48,10 @@ def create_or_update_pricelist(
if current_name != incoming_name:
if isinstance(current_pricelist, ServicesPricelist):
if check_unique_name_services_pricelist(incoming_name):
raise ValidationError(
_("mutation.service_name_duplicated"))
raise ValidationError(_("mutation.service_name_duplicated"))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not in scope of this ticket, but can you check this validation bug that you have mentioned? Run it with debugger if possible.

Copy link

sonarcloud bot commented Feb 16, 2024

@Meelad0708 Meelad0708 requested a review from a user February 16, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant