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

Remove forced redirect to English for PNI #4381

Merged
merged 5 commits into from
Mar 25, 2020
Merged

Conversation

TheoChevalier
Copy link
Contributor

@TheoChevalier TheoChevalier commented Mar 20, 2020

Closes #4379

Removing forced /en/ redirect for PNI and adding back language switcher in footer.

https://foundation-s-pni-lang-s-i6oqgg.herokuapp.com/fr/privacynotincluded/

(This time, with the correct branch)

@patjouk patjouk temporarily deployed to foundation-s-pni-lang-s-i6oqgg March 20, 2020 18:49 Inactive
@TheoChevalier TheoChevalier self-assigned this Mar 20, 2020
@patjouk patjouk temporarily deployed to foundation-s-pni-lang-s-i6oqgg March 24, 2020 14:35 Inactive
@patjouk patjouk temporarily deployed to foundation-s-pni-lang-s-i6oqgg March 24, 2020 14:53 Inactive
@patjouk patjouk temporarily deployed to foundation-s-pni-lang-s-i6oqgg March 24, 2020 15:21 Inactive
@@ -408,6 +408,7 @@

LOCALE_PATHS = (
os.path.join(BASE_DIR, 'locale'),
os.path.join(BASE_DIR, 'networkapi/buyersguide/templates/about/locale'),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just realized that files in this folder were correctly extracted, but translations were NOT picked up by Django.
Looks like we need to specify that path, as it’s not the default [app name]/locale

@patjouk patjouk temporarily deployed to foundation-s-pni-lang-s-i6oqgg March 24, 2020 16:12 Inactive
Copy link
Contributor

@Pomax Pomax left a comment

Choose a reason for hiding this comment

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

nice, good new tests =)

Copy link
Collaborator

@mmmavis mmmavis left a comment

Choose a reason for hiding this comment

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

👍

@patjouk patjouk temporarily deployed to foundation-s-pni-lang-s-i6oqgg March 25, 2020 10:22 Inactive
@patjouk patjouk temporarily deployed to foundation-s-pni-lang-s-i6oqgg March 25, 2020 10:46 Inactive
@TheoChevalier TheoChevalier merged commit 7812fb7 into master Mar 25, 2020
@TheoChevalier TheoChevalier deleted the PNI-lang-switcher branch March 25, 2020 11:12
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.

PNI: expose translations
4 participants