Skip to content

Fixes a bug that would prevent replacing multiple placeholders in a single string#7

Open
stefankolb wants to merge 1 commit intoangular-translate:masterfrom
stefankolb:master
Open

Fixes a bug that would prevent replacing multiple placeholders in a single string#7
stefankolb wants to merge 1 commit intoangular-translate:masterfrom
stefankolb:master

Conversation

@stefankolb
Copy link

Example string in .po file:

msgid: "EXAMPLE_ID“
msgstr: "This is a sample with not {replace_one}, not {replace_two}, but {replace_three} placeholders“

OLD: Would be incorrectly parsed, therefore only {replace_one} is handled by angular-translate
NEW: Fixes incorrect parsing, so that all three placeholders in the above example may be handled by angular-translate

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.

1 participant