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 po/R-potools.pot to this package #241

Closed
HenrikBengtsson opened this issue Nov 4, 2021 · 2 comments · Fixed by #246
Closed

Add po/R-potools.pot to this package #241

HenrikBengtsson opened this issue Nov 4, 2021 · 2 comments · Fixed by #246

Comments

@HenrikBengtsson
Copy link

For someone trying to wrap their head around what files are being produced and where, I think it could helpful to include:

po/R-potools.pot

and an example of a language translation, e.g.

po/R-es.pot

to the potools package itself.

@HenrikBengtsson
Copy link
Author

HenrikBengtsson commented Nov 5, 2021

This could also be use to examplify how to use LANGUAGE, LANG, and LC_MESSAGES, and when those needs to/can be set, e.g. before or after R starts.

It can also be use to illustrate what happens if one of the messages is not translated.

These are things that end users as well as developers are gonna wonder about.

@hadley
Copy link
Collaborator

hadley commented Nov 6, 2021

If you use devtools, you might want the dev version of pkgload which will automatically reload the .mo files: r-lib/pkgload#171

To confirm that the translations are working, you might be interested in with_language(), r-lib/withr#180, or the equivalent for base R, https://bugs.r-project.org/show_bug.cgi?id=18055.

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