sharifulin / mojolicious-plugin-i18n

Internationalization Plugin for Mojolicious 5.x and higher
11 stars 11 forks source link

Removes [_1]..[_2] from fail_with() output #2

Closed ProtoPlex closed 11 years ago

ProtoPlex commented 11 years ago

Fixes an issue with fail_with() subroutine when template uses line parameters for a string, but no key in %Lexicon is found: Was:

[% c.l("Main [_1] Page [_1]",1,2) %]

=> Main [_1] Page [_1] Is:

[% c.l("Main [_1] Page [_1]",1,2) %]

=> Main 1 Page 2
sharifulin commented 11 years ago

Спасибо, я уже об этом думал, делал через экранирование :-) Только тест ещё нужен, на след недели приму патч