In 4.7.0, theme.inc/theme_form_element formats titles by appending a semicolon and the $required variable. However, although this may be proper for english, other languages (like french) require a non-breaking space before a semicolon.

The suggested patch to theme.inc corrects this behaviour for theme.inc, but it might exist elsewhere within core and need a more generic solution.

The patch for spplied for the french theme.po includes that change and new strings from the updated .pot for 4.7.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fgm’s picture

Status: Active » Needs review

Sorry, forgot to set status.

fgm’s picture

FileSize
739 bytes

Killes told me not to submit tarred patches, so here is the theme.inc patch first.

fgm’s picture

FileSize
2.37 KB

And this is the theme-inc.po patch for the French translation

killes@www.drop.org’s picture

Ok, that should be fixed but not in this way:

t('%title: %required', array('%title' => $title, '%required' => $required));

seems to be better.

fgm’s picture

FileSize
841 bytes

Indeed: it avoids string collision with other semicolons elswehere. Here is the new version of the theme.inc patch

fgm’s picture

FileSize
2.42 KB

And here is the revised patch for the french translation of theme.inc (theme-inc.po)

drumm’s picture

Status: Needs review » Fixed

Comitted to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)