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

Allow N_ as a decorator #15

Merged
merged 1 commit into from
Sep 5, 2017
Merged

Allow N_ as a decorator #15

merged 1 commit into from
Sep 5, 2017

Conversation

ikapelyukhin
Copy link
Contributor

@ikapelyukhin ikapelyukhin commented Aug 29, 2017

N_ tells gettext that the string needs translation and adds it to .po file (without substituting it with the localized string).

@highb
Copy link
Contributor

highb commented Sep 5, 2017

👍 I wasn't aware of N_, but I see it in the API docs. Thank you for contributing! :)

@highb highb merged commit ecaceec into puppetlabs:master Sep 5, 2017
@ikapelyukhin
Copy link
Contributor Author

@highb There's also Nn_, maybe it makes sense to add it as well?

@highb
Copy link
Contributor

highb commented Sep 5, 2017

Looks like there is also p_, s_ and then combinations of those with n_. https://github.com/mutoh/gettext I'll make an issue for it, and we can add those in a future release.

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 this pull request may close these issues.

2 participants