Skip to content
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

Bug Report: update pt translations #1098

Closed
philsf opened this issue Jan 8, 2022 · 4 comments · Fixed by #1099
Closed

Bug Report: update pt translations #1098

philsf opened this issue Jan 8, 2022 · 4 comments · Fixed by #1099

Comments

@philsf
Copy link

philsf commented Jan 8, 2022

This issue is a followup to #1097. It includes some translations of commonly used strings in gtsummary for the pt language:

New strings:

  • added two new lines in add_p.tbl_summary for McNemar test (with/ without continuity correction)
  • added a new line for Paired t-test
  • SE / standard error

Changes to previously translations:

  • t-test: now mentions Welch correction (as per the en string)
  • RR: translated as Risk Ratio (instead of Relative Risk)
  • CI (et al): changed to IC in pt (similar to fr)
  • p-value: Capitalized (for consistency with q-value)
  • One-way ANOVA: different choice of translation, consistent with books/tutorials in pt
  • random intercept logistic regression: transation is now closer to the original meaning
  • IQR: translated as AIQ
  • Variance

Note that the RR string is proposed to change (from relative risk to risk ratio). If this is not approriate, let me know and I will revert the translation back to "relative risk".

Attached below is a CSV with all lines changed from data-raw/gtsummary_translated.xlsx

pt_updates.csv

@philsf
Copy link
Author

philsf commented Jan 8, 2022

The CSV was exported from the original XLSX with readr, and it is encoded in UTF-8. I hope this makes encoding issues easier to deal with.

@philsf
Copy link
Author

philsf commented Jan 8, 2022

It works wonderful for all the translations I tested (thanks). However I just stumbled in a missing one: t-test without Welch correction.

is it too late to add this last one?

@ddsjoberg
Copy link
Owner

@philsf not too late! You can just add it here, and I'll copy it in

@philsf
Copy link
Author

philsf commented Jan 8, 2022

en = "Two Sample t-test"
pt = "Teste t para amostras independentes"

Updated CSV below

pt_updates.csv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants