ai/r18n — pull request #79 by kunik (2012-08-07 12:32:04+00:00)
Title: Fixed params substitution for values in format '%n'

There was a bug in :variables filter. When passing values in format of `%n` (where `n` is number, e.g.: `%1`, `%2`, etc.), in some cases everything is messed up cause filter treats substituted values like placeholders:

Localization file:
```yaml
some_translation: 'Param1: %1; Param2: %2 ...'
```

View:
```rb
t.some_translation('%2 p1', 'p2')
```

Result:
```text
Param1: p2 p1; Param2: p2 ...
```

Correct result:
```text
Param1: %2 p1; Param2: p2 ...
```

This can happen when you pass urls with special chars to translations.
I propose my fix and small test for this case.