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

Add Danish language option #1985

Closed
LDalby opened this issue Jan 3, 2022 · 4 comments
Closed

Add Danish language option #1985

LDalby opened this issue Jan 3, 2022 · 4 comments
Labels
feature a feature request or enhancement translation 🌏

Comments

@LDalby
Copy link
Contributor

LDalby commented Jan 3, 2022

Hi and happy New Year!

I can see from the blog post on the release of pkgdown 2.0.0 that translations are now possible. I'd like to add Danish as an option since this would be very handy for some of our internal work at AU.

Could you point me in the right direction for this?

@hadley
Copy link
Member

hadley commented Jan 3, 2022

Sure! Thanks for working on this 😄 The translation tooling is a bit in flux, so you'll need to start by getting the dev version of potools and pkgload:

devtools::install_github("MichaelChirico/potools")
devtools::install_github("r-lib/pkgload")

Then read the intro to potools for translators: https://michaelchirico.github.io/potools/articles/translators.html

Next you can run potools::po_create("dk") and fill in the translations in po/R-dk.po.

To check your work, you can add lang: dk to _pkgdown.yml then run:

potools::po_compile()
devtools::load_all()
build_home() # or build_site()

That will build a local Korean version of the pkgdown site which should open automatically in your browser.

@LDalby
Copy link
Contributor Author

LDalby commented Jan 3, 2022

A Korean version? I certainly hope not 😉

I'll see if I can get this going asap. Thanks for the help so far.

@LDalby
Copy link
Contributor Author

LDalby commented Jan 6, 2022

Right, this is done now.
I guess you'd like the PR to only contain the R-dk.po file right?

@hadley
Copy link
Member

hadley commented Jan 6, 2022

@LDalby whatever is easiest for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement translation 🌏
Projects
None yet
Development

No branches or pull requests

2 participants