Skip to content

Onattach translations#4613

Closed
MichaelChirico wants to merge 7 commits intomasterfrom
onattach-translations
Closed

Onattach translations#4613
MichaelChirico wants to merge 7 commits intomasterfrom
onattach-translations

Conversation

@MichaelChirico
Copy link
Copy Markdown
Member

A quick follow up to #4610 (despite the large diff).

Basically trying to address the issue raised in https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17860 by removing non-strings from translation.

Also added some notes for release about bumping the po header version tag.

@MichaelChirico MichaelChirico added the translation issues/PRs related to message translation projects label Jul 17, 2020
R/onAttach.R Outdated
if (!isTRUE(getOption("datatable.quiet"))) { # new option in v1.12.4, #3489
packageStartupMessage("data.table ", v, if(dev)paste0(" IN DEVELOPMENT built ",d,g),
" using ", getDTthreads(verbose=FALSE), " threads (see ?getDTthreads). Latest news: r-datatable.com")
dev_tag = if (dev) gettextf(" IN DEVELOPMENT built %s%s", d, g, domain="R-data.table") else ""
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

a bit ugly but xgettext ignores the strings passed to ... of gettextf for translation -- even if those strings are gettext themselves. so we have to pull this translation out of the gettextf call for it to work.

ditto below

msgstr ""
"Project-Id-Version: data.table 1.12.5\n"
"POT-Creation-Date: 2020-07-17 14:38\n"
"Project-Id-Version: data.table 1.12.9\n"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

strange that this doesn't bump automatically. it seems to do so in the .pot file.

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 17, 2020

Codecov Report

Merging #4613 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4613   +/-   ##
=======================================
  Coverage   99.61%   99.61%           
=======================================
  Files          73       73           
  Lines       14224    14224           
=======================================
  Hits        14169    14169           
  Misses         55       55           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1a8a390...bc391ab. Read the comment docs.

Michael Chirico added 2 commits July 18, 2020 10:22
@MichaelChirico
Copy link
Copy Markdown
Member Author

Superseded by #5056

@MichaelChirico MichaelChirico deleted the onattach-translations branch June 29, 2021 07:35
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.

1 participant