Maybe we should evaluate expression?
For example, parsing string "nplurals=2; plural=(n != 1);" gives us function "n => n != 1" with mapping true to 1 and false to 0 and get mod 2 (nplurals) we can get msg index. This method I used in JavaScript (just wrapping expression with function definition and the eval)
среда, 21 сентября 2016 г., 10:04:29 UTC+7 пользователь c0d3r85 написал: