New UI string causes parsing error on .po import

Created on 22 June 2018, about 6 years ago
Updated 21 May 2023, about 1 year ago

Problem/Motivation

There is a new UI string (ID#2651490 on l.d.o) appeared in 8.6.x :

No front page content has been created yet.<br/>Follow the <a target=\"_blank\" href=\"https://www.drupal.org/docs/user_guide/en/index.html\">User Guide</a> to start building your site.

Basically, I welcome the idea to point admins of freshly-installed Drupal sites to the User Guide frontpage, which are now being translated into a dozen of languages, so the link target URL can be localized as well. Great!

However, when the l10n_update module imports the .po files, then this string causes parsing error with its HTML line break element <br/> between its two sentences. As far as I tested out with two .po files containing only this string alone, I found that the per sign ("/")

As it can be seen the German localization team solved the issue by simply removing the "/" char from their translation. In Hungarian I also submitted an other variant to see whether it will seamlessly import next time?

Proposed resolution

Regarding MDN writes in the "Tag omission" section:

"Must have a start tag, and must not have an end tag. In XHTML documents, write this element as <br />".

So the proper format of this HTML element is with an extra space before the per sign, so I plan to attach a patch to remove it from the string.

Remaining tasks

Discuss, Agree, Code, Patch, Commit, Documentate.

User interface changes

No visible changes on UI.

API changes

n.a.

Data model changes

n.a.

OS: Ubuntu 16.04 LTS
Web server: nginx 1.13.12
PHP: 7.1.17 (mem.limit: 512M)
Drupal: 8.5.3

πŸ› Bug report
Status

Closed: cannot reproduce

Version

10.1 ✨

Component
UI textΒ  β†’

Last updated 4 days ago

No maintainer
Created by

πŸ‡­πŸ‡ΊHungary Balu Ertl Budapest πŸ‡ͺπŸ‡Ί

Live updates comments and jobs are added and updated live.
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.69.0 2024