8000 feat: pass doctype as context when translating label by barredterra · Pull Request #24903 · frappe/frappe · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: pass doctype as context when translating label #24903

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

Merged
merged 1 commit into from
Feb 18, 2024

Conversation

barredterra
Copy link
Collaborator
@barredterra barredterra commented Feb 16, 2024

Whenever a field label is translated, pass the parent doctype as context. This way, the same label can be translated differently for different doctypes. (The doctype is already passed as context when generating translation files.)

no-docs

@barredterra barredterra requested review from a team, akhilnarang and ankush and removed request for a team February 16, 2024 15:15
@ankush ankush merged commit fc64e8a into frappe:develop Feb 18, 2024
@ankush ankush added the backport version-15-hotfix Backport the PR to v15 label Feb 18, 2024
mergify bot pushed a commit that referenced this pull request Feb 18, 2024
(cherry picked from commit fc64e8a)

# Conflicts:
#	frappe/core/doctype/data_export/data_export.js
@barredterra barredterra deleted the label-context branch February 18, 2024 14:14
ankush pushed a commit that referenced this pull request Feb 19, 2024
#24916)

* feat: pass doctype as context when translating label (#24903)

(cherry picked from commit fc64e8a)

# Conflicts:
#	frappe/core/doctype/data_export/data_export.js

* chore: resolve conflicts

---------

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
frappe-pr-bot pushed a commit that referenced this pull request Feb 20, 2024
# [15.15.0](v15.14.1...v15.15.0) (2024-02-20)

### Bug Fixes

* **calendar:** Replace route in load_last_view ([#24894](#24894)) ([#24928](#24928)) ([2557384](2557384))
* ensure has_value_changed works for Datetime, Date and Time fields (backport [#24919](#24919)) ([#24922](#24922)) ([87e7702](87e7702))
* handle bad cron expressions (backport [#24938](#24938)) ([#24942](#24942)) ([18512d6](18512d6))
* invite contact as user ([4e308e4](4e308e4))
* keep order in `get_values_from_single` ([#24907](#24907)) ([#24924](#24924)) ([d8f663b](d8f663b))
* lower socket timeout for validating email domain ([#24915](#24915)) ([#24918](#24918)) ([796c7c0](796c7c0))
* **page:** Catch LocalStorage quota exception ([#24885](#24885)) ([#24931](#24931)) ([cb3a435](cb3a435))
* send_workflow_action_email ([#24929](#24929)) ([#24934](#24934)) ([7e9eec0](7e9eec0))
* use communication date in timeline ([8bebcb6](8bebcb6))
* **weblist:** Fix "More" button not working ([#24893](#24893)) ([#24926](#24926)) ([4732928](4732928))

### Features

* pass doctype as context when translating label (backport [#24903](#24903)) ([#24916](#24916)) ([6cdc0a7](6cdc0a7))
* Queue selection for webhooks ([#24876](#24876)) ([#24932](#24932)) ([bd2b90c](bd2b90c))

### Performance Improvements

* defer imports during CLI (backport [#24945](#24945)) ([#24946](#24946)) ([a23a758](a23a758))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-15-hotfix Backport the PR to v15
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0