Prefix and suffix on numeric fields do not allow to add spacing

Created on 1 August 2012, almost 13 years ago
Updated 14 February 2023, over 2 years ago

Note: this is a follow up of issue #483474: Help text for number suffix doesn't make spacing clear for the 6.x CCK module, though IMO this is not a documentation issue, but an incorrect implementation.

The prefix and suffix on numeric fields:
- do not add spaces
- do not allow to add spacing (e.g. by enclosing it in a span)
- do not document this in the help text, they even suggest it otherwise: Separate singular and plural values with a pipe ('pound|pounds'). With this help text the result will be the unexpected 1pound resp. 5pounds.

Workaround:
Add spaces yourself, but doing so will turn this issue into a translator's gotcha.

Because of the translation issues, I think that this should be solved in code by adding a span around the prefix and suffix.

Feature request
Status

RTBC

Version

9.5

Component
Field 

Last updated about 17 hours ago

Created by

🇫🇷France fietserwin Le Mont-Dore

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024