-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Example and note with usage of trimmed option in blocktrans #4479
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
Conversation
4efc04e
to
fdbb930
Compare
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.
Yup !
Sorry for launching ideas and leaving it to others to implement, I could have done that myself... Thank you !
docs/i18n.rst
Outdated
.. note:: | ||
|
||
The previous multi-lines examples also use the ``trimmed`` option. | ||
This remove newline characters and replace any whitespace at the beginning and end of a line, |
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.
removes ... replaces
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.
Thanks!
3 sentences, 2 mistakes. At least is not 3/3. I'm improving my skills 😝
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.
Language is hard. :)
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.
Shouldn’t it be "multi-line examples", (without the s after line), though ?
(Not 100% sure)
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.
Uh, yes, it should. 😅
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.
OK! I reached the best score: 3/3 🥇
Thanks!
👍 |
Update our docs to suggest the usage of
trimmed
option when usingblocktrans
in templates.Django docs: https://docs.djangoproject.com/en/1.9/topics/i18n/translation/#blocktrans-template-tag