i18n-inflector icon indicating copy to clipboard operation
i18n-inflector copied to clipboard

Problem with char @

Open fresh2nd opened this issue 11 years ago • 0 comments

There is a problem with the gem when you retrieve some text from a database that contains the char "@" and you have some code after that uses @{f:whatever|whenever}.

For example:

body:
     %{discount_details}
     Ya hemos informado a tus @{f:amigas|amigos} del plan

     discount_details: |
         descuento: %{coupon_discount} (%{coupon_description})

If coupon_description value is "Gracias amig@s míos" the output of body will be: Gracias amigamigas del plan when it should be Gracias amig@s míos Ya hemos informado a tus amigos del plan

I fixed my problem with a subsitution from @ to @ but its just a quickfix. Would be perfect if you could fix it the right way. Thanks in advance

fresh2nd avatar Feb 13 '14 18:02 fresh2nd