Fixing translation errors with @placeholders
Posted by spudley on May 16, 2011 at 10:36am
Hi.
I have a problem with a few translations that have been done for our Drupal site.
A number of the translatable strings in our system contain @placeholders for inserting variables into a string at run-time. These are generally fine, but a few of them are breaking when the site is translated.
The problem appears to be due to punctuation on either the original or translated strings.
For example, an original English string may look like this:
@user's picture
But when it's translated (in this case to Danish), it comes out looking like this:
@users billede
Read more