-
Notifications
You must be signed in to change notification settings - Fork 45
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
Fix #432 (url translation) #607
Conversation
I will need to provide the French URLs based on the community's translation since one month. (For easier testing) |
src/member/urls.py
Outdated
name='member_update_' + k) | ||
url(string_concat(_(r'^(?P<pk>\d+)/update/'), k, '/$'), | ||
v.as_view(), | ||
name='member_update_' + internal_name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "internal_name" part of the route get translated, but no the 'member_update_' so we can have named URL like 'member_update_information_basique'.
You could change the implementation to translate the URL but keep route names in English?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@erozqba I improved this part. In fact, I think the route names were in English but the code was a bit confusing... Please check out the latest commit.
Changes Unknown when pulling c5ee5ad on lingxiaoyang:fix_432 into ** on savoirfairelinux:dev**. |
Changes Unknown when pulling e31de04 on lingxiaoyang:fix_432 into ** on savoirfairelinux:dev**. |
@lingxiaoyang this is ready to test? When it's ready, please change the status so I know and I will test again. Thanks a lot! 👍 |
@lingxiaoyang I think that you have some voluntary work :D ... with conflicts... |
@aaboffill Thank you! I'll update it. |
@lingxiaoyang By experience, maybe you need to wait to the last moment to fix the conflicts, there are several PR per week and it's very probably that you will have conflicts again before merge :) |
@aaboffill That's true. I'll now clean this PR a bit and squashing some commits... |
Includes: 1. Unit test in French setting on Travis CI. 2. New translatable strings and their translations are provided. 3. Form wizard URL is translated.
👍 |
Fixes #432 by lingxiaoyang
Changes proposed in this pull request:
urls.py
./fr/
in URL for French.Status
How to verify this change
http://localhost:8000/fr/
, it should be French..po
files)Verify English:
http://localhost:8000
, it should be in English by default.Deployment notes and migration
none
New translatable strings
Additional notes
none