Set al_user_language & session_local.al_user_language always#1070
Closed
plocket wants to merge 1 commit into
Closed
Set al_user_language & session_local.al_user_language always#1070plocket wants to merge 1 commit into
plocket wants to merge 1 commit into
Conversation
I'm unsure how to test this change, but it's a suggestion to handle a user report:
> When I change the language at the beginning of the interview using:
>
> ${ get_language_list(lang_codes=al_interview_languages, current=al_user_language) }
>
> the interview screens translate, but the program assembles English forms. Usually when I get to the code block that determines which ALDocuments are enabled, this check will work:
>
> if session_local.attr("al_user_language") == "es"
>
> For some reason it isn't when I use the get_language_list() function to change the language. If I use the language picker in the menu bar, and cycle es > en > es, then the correct Spanish documents assemble.
This file contains hidden or 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
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.
I'm unsure how to test this change and I'm hunting that down now. It's a suggestion to handle a user report: