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

[#7945] Translate aria-label attributes #7947

Merged
merged 6 commits into from Nov 30, 2023
Merged

Conversation

amercader
Copy link
Member

@amercader amercader commented Nov 28, 2023

Fixes #7945

For HTML templates we just wrap the value in the {{ _() }} function so they get extracted. For markup that is generated from JS modules, we need to find the attribute and replace the value with the translated string. "Close" was not extracted up until now, so once this is merged we'll need to run extract_messages so it goes to the pot file > Transifex > po files (in 2.10.2 and 2.11.0)

Fixes #7945

For HTML templates we just wrap the value in the `{{ _() }}` function so
they get extracted. For markup that is generated from JS modules, we
need to find the attribute and replace the value with the translated
string. "Close" was not extracted up until now, so one this is merged
we'll need to run `extract_messages` so it goes to the pot file >
Transifex > po files (in 2.10.2 and 2.11.0)
Copy link
Member

@pdelboca pdelboca left a comment

Choose a reason for hiding this comment

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

@amercader looks good! Check my comment, probably in that context we cannot call to this._()

ckanext/datastore/assets/js/api-info.js Outdated Show resolved Hide resolved
@pdelboca pdelboca self-assigned this Nov 29, 2023
@amercader
Copy link
Member Author

Thanks @pdelboca , should be all good now

@pdelboca pdelboca merged commit a92365d into master Nov 30, 2023
7 of 8 checks passed
@pdelboca pdelboca deleted the 7945-translate-aria-labels branch November 30, 2023 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aria-labels without translations
2 participants