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

fix: translate Update default_success_action.py #43295

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

doancan
Copy link
Contributor

@doancan doancan commented Sep 19, 2024

The _(doctype) inside get_message is removed from the .format() method. The reason is that _(doctype) would attempt to translate the doctype itself, which is generally not required since the doctypes in doctype_list are system-level terms. The main string "{0} has been submitted successfully" should be translated, and then it should receive the doctype name as an argument.

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Sep 19, 2024
@doancan doancan changed the title Update default_success_action.py :fix translate Update default_success_action.py Sep 19, 2024
@doancan doancan changed the title :fix translate Update default_success_action.py fix: translate Update default_success_action.py Sep 19, 2024
Copy link

stale bot commented Oct 5, 2024

This pull request has been automatically marked as inactive because it has not had recent activity. It will be closed within 3 days if no further activity occurs, but it only takes a comment to keep a contribution alive :) Also, even if it is closed, you can always reopen the PR when you're ready. Thank you for contributing.

@stale stale bot added the inactive label Oct 5, 2024
@ruthra-kumar ruthra-kumar self-requested a review October 16, 2024 06:26
@ruthra-kumar ruthra-kumar self-assigned this Oct 16, 2024
The _(doctype) inside get_message is removed from the .format() method. The reason is that _(doctype) would attempt to translate the doctype itself, which is generally not required since the doctypes in doctype_list are system-level terms. The main string "{0} has been submitted successfully" should be translated, and then it should receive the doctype name as an argument.
@stale stale bot removed the inactive label Oct 18, 2024
@ruthra-kumar ruthra-kumar merged commit ee8cae1 into frappe:develop Oct 18, 2024
12 of 13 checks passed
ruthra-kumar added a commit that referenced this pull request Oct 18, 2024
…-43295

fix: translate Update default_success_action.py (backport #43295)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-15-hotfix needs-tests This PR needs automated unit-tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants