Skip to content

chore: added exceptions to be translatable#140

Merged
igobranco merged 4 commits intonau/teak.masterfrom
Tiago-Salles/issues/800-translatable-exceptions
Mar 16, 2026
Merged

chore: added exceptions to be translatable#140
igobranco merged 4 commits intonau/teak.masterfrom
Tiago-Salles/issues/800-translatable-exceptions

Conversation

@Tiago-Salles
Copy link
Copy Markdown
Contributor

Related to: fccn/nau-technical#800

@Tiago-Salles Tiago-Salles requested a review from igobranco March 16, 2026 11:25
@Tiago-Salles Tiago-Salles force-pushed the Tiago-Salles/issues/800-translatable-exceptions branch 2 times, most recently from d82a3db to 24d352f Compare March 16, 2026 11:30
Copy link
Copy Markdown
Member

@igobranco igobranco left a comment

Choose a reason for hiding this comment

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

@Tiago-Salles now you have to translate to Portuguese the strings... on: nau_openedx_extensions/locale/pt_PT/LC_MESSAGES/django.po

@Tiago-Salles Tiago-Salles force-pushed the Tiago-Salles/issues/800-translatable-exceptions branch from 24d352f to 06da265 Compare March 16, 2026 14:35
Copy link
Copy Markdown
Member

@igobranco igobranco left a comment

Choose a reason for hiding this comment

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

@Tiago-Salles That is not how translations work on Django. We need to talk!

@Tiago-Salles
Copy link
Copy Markdown
Contributor Author

@Tiago-Salles That is not how translations work on Django. We need to talk!

This is a very common way of translating in Django, which is inclusively being applied in other filters, such as:

https://github.com/fccn/nau-openedx-extensions/blob/nau/teak.master/nau_openedx_extensions/enrollment_by_domain/domain_filter.py#L9

https://github.com/fccn/nau-openedx-extensions/blob/nau/teak.master/nau_openedx_extensions/enrollment_by_domain/domain_filter.py#L94

Let's talk, as I am not getting what you mean.

@Tiago-Salles Tiago-Salles force-pushed the Tiago-Salles/issues/800-translatable-exceptions branch from 06da265 to 9097e3b Compare March 16, 2026 17:45
@Tiago-Salles Tiago-Salles force-pushed the Tiago-Salles/issues/800-translatable-exceptions branch from 9097e3b to 808c8f6 Compare March 16, 2026 21:35
The check missing translations had an issue because the validation wasn't being applied to all languages.
@igobranco
Copy link
Copy Markdown
Member

@Tiago-Salles Just to let you know, I have added a couple of commits to your branch. To fix the translations CI.

@igobranco igobranco self-requested a review March 16, 2026 22:13
@igobranco igobranco merged commit 43c86c8 into nau/teak.master Mar 16, 2026
3 checks passed
@igobranco
Copy link
Copy Markdown
Member

Merged!

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.

2 participants