Skip to content

Message fixes for the C code - #6504

Merged
MichaelChirico merged 20 commits into
masterfrom
message-fixes
Sep 20, 2024
Merged

MichaelChirico merged 20 commits into
masterfrom
message-fixes

Conversation

@aitap

@aitap aitap commented Sep 17, 2024 •

Copy link
Copy Markdown
Member

This solves some of the obvious issues in #6503. I can expand on the more tough or less obvious ones when we decide which ones to fix and how.

  • regenerate po/data.table.pot

Otherwise it's very hard to translate without pgettext() in a language
where "there is no <x>" is translated as "<x> is absent"
This will avoid potential word order issues.
.Last.value is a variable in the global environment. .Last.updated belongs to the data.table package.
@github-actions

github-actions Bot commented Sep 17, 2024 •

Copy link
Copy Markdown

Comparison Plot

Generated via commit 384fe62

Download link for the artifact containing the test results: ↓ atime-results.zip

Time taken to finish the standard R installation steps: 3 minutes and 22 seconds

Time taken to run atime::atime_pkg on the tests: 6 minutes and 53 seconds

@aitap
aitap requested a review from tdhock as a code owner September 17, 2024 13:10
Comment thread src/fread.c
Comment thread src/fsort.c Outdated

@MichaelChirico MichaelChirico left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! A few small questions. Fixes basically look good.

@MichaelChirico MichaelChirico added the translation issues/PRs related to message translation projects label Sep 17, 2024
Comment thread src/fread.c Outdated
Comment thread src/fmelt.c Outdated
Comment thread src/fmelt.c Outdated
Comment thread src/fmelt.c Outdated
Comment thread src/fsort.c Outdated
Comment thread src/fread.c
Comment thread src/fmelt.c Outdated
aitap and others added 4 commits September 18, 2024 17:23
Hopefully the compiler will be smart enough to inline it back.

Co-authored-by: Michael Chirico <[email protected]>
@aitap
aitap requested a review from ben-schwen as a code owner September 18, 2024 15:14
@MichaelChirico

Copy link
Copy Markdown
Member

Don't regenerate the .pot file in this PR, save it for a follow-up

Comment thread src/fsort.c Outdated
Comment thread src/fsort.c Outdated
Comment thread src/fsort.c
if (verbose) {
Rprintf(_("%zu by excluding 0 and 1 counts\n"), MSBsize);
}
MSBsize = shrinkMSB(MSBsize, msbCounts, order, verbose);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I might have assumed this helper would be by-reference on MSBsize; OTOH, it's a single size_t and this is only done once in fsort(). The impact should not be noticed.

@MichaelChirico MichaelChirico left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great work + progress! I think this is ready to merge. We can always do more PRs with more fixes :)

@MichaelChirico
MichaelChirico merged commit 0e257a8 into master Sep 20, 2024
@MichaelChirico
MichaelChirico deleted the message-fixes branch September 20, 2024 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

translation issues/PRs related to message translation projects

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants