forked from carpentries/sandpaper
-
Notifications
You must be signed in to change notification settings - Fork 1
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] l2d from carpentries:main #52
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Update translation and data flow vignettes
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.
milanmlft
approved these changes
Dec 13, 2023
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
Release sandpaper 0.16.0
milanmlft
approved these changes
Dec 14, 2023
auto-merge was automatically disabled
December 14, 2023 16:49
Head branch was pushed to by a user without write access
milanmlft
approved these changes
Dec 14, 2023
- translation pair of success/failure tests moved into `expect_set_translate()` function in helper-translate.R - expect_false(identical()) changed to expect_failure(expect_setequal()) to produce more informative error messages when they occur
auto-merge was automatically disabled
December 15, 2023 19:29
Head branch was pushed to by a user without write access
This updates the translation strategy to apply the translations during the lesson metadata setup. This allows us to cache the translations for the build process which offers two advantages: 1. translations live in one place 2. the build process is still run in the user's language so that errors will remain in that language.
refactor translations
finalise translate tests
Add `inLanguage` metadata item; Release 0.16.2
milanmlft
approved these changes
Dec 21, 2023
milanmlft
closed this pull request by merging all changes
into
LearnToDiscover:l2d
in
Dec 21, 2023
da2ad38
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by pull[bot]
Can you help keep this open source service alive? 💖 Please sponsor : )