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

(ORCH-1232) Add a standard function for marking strings for extraction #18

Conversation

nicklewis
Copy link
Contributor

Previously, the only way to mark a string for extraction was to either
use a translation function or use a project-specific marker function and
update the make target accordingly. This commit provides a standard
i18n/mark function which has no behavior beyond returning its argument,
but which serves as a designated way to extract strings without
translating them.

This is important for cases where the string needs to be translated
dynamically but is defined at compile time. In particular, it allows for
commonly-used strings to be defined in a variables and used in multiple
places.

Previously, the only way to mark a string for extraction was to either
use a translation function or use a project-specific marker function and
update the make target accordingly. This commit provides a standard
i18n/mark function which has no behavior beyond returning its argument,
but which serves as a designated way to extract strings without
translating them.

This is important for cases where the string needs to be translated
dynamically but is defined at compile time. In particular, it allows for
commonly-used strings to be defined in a variables and used in multiple
places.
@briancain briancain merged commit d52fc41 into puppetlabs:master May 25, 2016
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.

None yet

2 participants