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

Alternate formatting of translation string interpolation #15

Open
grabner opened this issue Aug 27, 2013 · 0 comments
Open

Alternate formatting of translation string interpolation #15

grabner opened this issue Aug 27, 2013 · 0 comments

Comments

@grabner
Copy link

grabner commented Aug 27, 2013

hi pylons team,

i much prefer python's string.format() string templating rules than the templating provided by translationstring.TranslationString.interpolate(), and have monkey-patched translationstring to use that instead for my projects.

i'd like to make that a bit less hackish though: if i forked translationstring to accept a new parameter "formatter" to TranslationString and TranslationStringFactory (defaulting to the current formatting rules to stay backwards compatible), would you accept the patch?

cheers

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

No branches or pull requests

1 participant