translation errors

Events happening in the community are now at Drupal community events on www.drupal.org.
spudley's picture

Fixing translation errors with @placeholders

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
Subscribe with RSS Syndicate content