-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Remove untranslatable on_date
key
#24106
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
4785128
Add ability to tune the relative-time elements in `TimeSince` functions
yardenshoham a54bcb0
Avoid escaping quotes
yardenshoham a8b06c6
Merge branch 'main' into tense-past
yardenshoham fd4e20b
Fix quotes
yardenshoham eab3049
Merge branch 'main' into tense-past
yardenshoham 9955b2c
improve
wxiaoguang f746425
Drop `duration`
yardenshoham f949758
Remove `on_date`
yardenshoham 24a4039
remove untranslatable word
wxiaoguang b130c9e
Format package view date
yardenshoham daecc08
Fix render
yardenshoham 5bf5d41
fmt
yardenshoham d8e73a5
fix lint
wxiaoguang 2a4fe6e
Revert "tense=auto support"
wxiaoguang 46226d3
Merge branch 'main' into tense-past
yardenshoham d0df687
Merge branch 'main' into tense-past
yardenshoham File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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.
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.
We should remove this
on_date
. It's not translatable.TimeSince
should only be used inside other translatable strings, let other strings have proper wordingUh oh!
There was an error while loading. Please reload this page.
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.
Even in English, I do not think it is fine.
In the list, it doesn't need the
on
word: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.
Unrelated to this PR, #24074 is tracking this
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.
After this PR this
on
in your screenshot will disappearThere 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.
I think it is related .... it really doesn't look right.
In old code, there is no
on
prefix of the TimeSince output either, thison
prefix was just added recently, so I do not think it is necessary.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.
Hmm .... in history , IIRC the
TimeSince
always used relative date, then<relative-time>
changed the behavior.Now, we just make
<relative-time>
always usetense=past
, then it behave like the old TimeSince , then everything should be fine, and just like before.Correct me if I am wrong.
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.
If the date was in the future, it probably rendered
in X days
. Withtense=past
it will rendernow
. That's what I'm worried about...BTW feel free to push changes here, I won't block (you have better historical context here then me)
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.
Yes, the
on <date>
format is new with the element. We could for now opt to always set past tense and remove theon
translation to restore old behaviour, but I do prefer theon
format for far-past dates as well, but it needs to be worked out first how to correctly translate that format (#24074).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.
Thank you very much for the trust, I will try it myself to see whether I really understand the problem (see you in a few hours) 😄
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.
That's no problem, GH also did that.