angular-translate / grunt-po2json-angular-translate

grunt plugin to convert po to an angular-translate format
MIT License
8 stars 12 forks source link

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

Open stefankolb opened 10 years ago

stefankolb commented 10 years ago

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