Looking at the code for st() in Drupal 7, it does support contexts. However, the parsing code in potx does not support for that. We should fix that. $t() is a common shorthand for st() or t(), so that should be fixed too.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | st-context-parsing.patch | 8.37 KB | gábor hojtsy |
Comments
Comment #1
gábor hojtsyAttached patch implements support for this and includes test coverage. Also found this issue while building tests for this: #1039552: Add test coverage for context support in format_plural().
Comment #2
gábor hojtsyOk, committed to Drupal 7.x-1.x. Need to be backported.
Comment #3
gábor hojtsySame patch applied cleanly to Drupal 6 version, committed there too.