-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
Log in when current language different from English #524
Comments
The corresponding
|
Unfortunately it's not always easy to find things in the docs:
|
Gosh, I googled this sooo hard... Thank you! Thanks a lot! On the other hand, now after I provided this patch, it honestly seems a bit more sustainable to make the login language-neutral in the first place... |
Now I understand what |
It looks like this is resolved, so this can be closed. Thanks @jonathanjfshaw for providing the answer! |
v3.4.1. – I have a French site here. Actually it's just language negotiation set to use Domain instead of path prefixes. And I have an
edit.feature
with a scenario that just ensures certain roles can log in and edit random nodes:Logging in using the English base URL
english-site.localhost
works just fine. But running the same test against the French base URLfrensh-site.localhost
gives me following error:I then might have found the culprit here:
drupalextension/src/Drupal/DrupalExtension/Context/RawDrupalContext.php
Lines 550 to 552 in 50ff0f4
When I change the above to use the
name
attributes of the input elements and the translated "Log in" string it starts working again.Do we need to fix this? Or is there already some
getTranslationFromContext
kind of functionality implemented at some place and I only need to define adefault_language
or something like that in mybehat.yml
?Refs #93
The text was updated successfully, but these errors were encountered: