Take care of source strings SPACE in Translate UI

Created on 14 June 2012, over 12 years ago
Updated 9 February 2023, almost 2 years ago

Problem/Motivation

t() records the strings well but translate UI don't present data properly. all "Beginning & Ending SPACES, 2+ SPACES in between of words" are removed in all browsers.

e.g.,
original string (saved in DB / html soruce code):
<-beginning SPACE |2+-> <-2+| SPACE ending->

Translate UI:
<-beginning SPACE |2+-> <-2+| SPACE ending->

(http://drupal.org/node/1452188#comment-6117034)

Steps to reproduce

Install Umami
Goto en/admin/config/regional/translate
Change the translation for 'Home' to <-beginning SPACE |2+-> <-2+| SPACE ending->
Goto /es
Notice that the multiple spaces have been reduced to just one.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

10.1 ✨

Component
LocaleΒ  β†’

Last updated 10 days ago

Created by

πŸ‡­πŸ‡°Hong Kong droplet

Live updates comments and jobs are added and updated live.
  • Needs backport to D6

    After being applied to the 7.x branch, it should be considered for backport to the 6.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

  • Needs backport to D7

    After being applied to the 8.x branch, it should be considered for backport to the 7.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

Sign in to follow issues

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