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

[pull] main from carpentries:main #12

Merged
merged 16 commits into from
Dec 15, 2023
Merged

Conversation

pull[bot]
Copy link

@pull pull bot commented Dec 14, 2023

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

zkamvar and others added 16 commits December 12, 2023 11:33
There was a problem with the testing which reveals a bit of a fragile
relationship between the translations and the rest of the varnish data.
Likely the translations need to be set during the build time and kept as
a permanent fixutre.
One of the problems that lead me to 7d9cc2c
was the fact that a test for `build_lesson()` was failing in the
situation where we removed the instructor notes page from the source and
rebuilt it using the instructor note aggregator function without the
`build_lesson()` context.

When `this_lesson()` was called, it clobbered the `$translation` items
and then we got an error in that test because the translation for the
title was not available.

I will reiterate that this problem is almost non-existent because none
of the HTML generating functions are exported nor are they called
directly by users, but it still bothers me. In fact, it would be a good
idea to centralise the translation to a single function and always
assume that the global data will always exist. This would help avoid
confusing errors in the language of the lesson (as opposed to the
language of the user).
ensure country codes; small refactor of translation strings
prevent duplication of callout heading text with markup
@pull pull bot added the ⤵️ pull label Dec 14, 2023
@milanmlft milanmlft merged commit 63067e2 into milanmlft:main Dec 15, 2023
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.

3 participants