Repository navigation
Fix Chinese descriptions of L-n, #n and trailing spaces - #232
Merged
bradymholt merged 2 commits intoDec 3, 2026
Merged
Conversation
bradymholt
reviewed
Dec 3, 2026
bradymholt
left a comment
Owner
There was a problem hiding this comment.
Checked the zh-Hans and zh-Hant output for L-n, LW, L-nW, W, L, # and # lists, alone and mixed with day-of-month, with Verbose on and off. All read correctly and tests pass. I left one small suggestion about the space in the L string.
| </data> | ||
| <data name="CommaOnTheLastX0OfTheMonth" xml:space="preserve"> | ||
| <value>, 每月的最后一个 {0} </value> | ||
| <value>, 每月的最后一个 {0}</value> |
Owner
There was a problem hiding this comment.
With 每月的 now attached to the ordinal, * * * * 5#3 gives "每月的第三个星期五" but * * * * 5L still gives "每月的最后一个 星期五" with a space before the day. I think dropping that space here and in zh-Hant would make the two read the same, with TestLastDayOfTheWeekOfTheMonth updated to match. WDYT?
Suggested change
| <value>, 每月的最后一个 {0}</value> | |
| <value>, 每月的最后一个{0}</value> |
Contributor
Author
There was a problem hiding this comment.
Agreed, done in 5962735 for both zh-Hans and zh-Hant, test updated
bradymholt
approved these changes
Dec 3, 2026
|
The changes in PR were just released in 3.9.0 🎉. |
zzoraemon043
added a commit
to zzoraemon043/zzoraemon043
that referenced
this pull request
Dec 3, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changed and why
Three day descriptions in zh-Hans and zh-Hant don't read as Chinese:
0 0 L-2 * *0 0 * * 5#30 0 9 * * 1#2,1#40 0 * * 5L0 0 15W * *CommaDaysBeforeTheLastDayOfTheMonthput the number in front of a phrase meaning "the few days before the last day of this month", so the count was detached from 天. It now reads "the N days before the last day of each month", matchingCommaOnTheLastDayOfTheMonth(每月的最后一天).#,CommaOnThe+SpaceX0OfTheMonthput 每月 ("monthly") after the day. Chinese puts the month first, so 每月的 moves intoCommaOnTheandSpaceX0OfTheMonthis just{0}, the same split cRonstrue's zh_CN uses (, 限每月的/%s). The#list suffix is then empty, so lists read the same way.CommaOnTheLastX0OfTheMonthandCommaOnTheX0OfTheMonthended with a space, which ended up at the end of the description (the existing tests asserted it).zh-Hant gets the same changes (每月的最後一天的前 N 天, 每月的第三個星期五). I compared 31 locales x 43 expressions before and after: only zh-Hans and zh-Hant output changed, in the L-n, #, L and W descriptions.
Checklist
dotnet test test/Test.csprojpasses (1636 passed, 11 skipped)TestLastDayOffsetandTestMultipleNthDayOfWeekadded for both locales; the updated and added zh assertions fail before the change, 20 failures)<Description>(see CONTRIBUTING.md)