View Single Post
Old 09-07-2014, 05:35 AM   #1
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,560
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Braces in strings

I have a string in my plugin which looks like this:

Code:
<span %(code)s>@{@</span> and <span %(code)s>@}@</span>
but when I try to translate it in transifex (just replace "and" with "y"), I get this error:

Error: The expression '{@ y @}' is not present in the original phrase.

Why is this happening? there are other strings with literal { and } which are not affected. Is there any way to avoid this (other than moving @{@ and @}@ out of the translatable string)?
Jellby is offline   Reply With Quote