Some text formats are broken on Windows:

--

The reason for this is that the configuration entity that contains the pattern for these formats (example for the LONG format):

Array
(
[uuid] => 19278ae1-7bcb-4a64-9804-5891877d4f91
[langcode] => es
[status] => 1
[dependencies] => Array
(
)

[id] => long
[label] => Fecha larga por defecto
[locked] =>
[pattern] => l, F j, Y - H:i
en contexto: formato de fecha PHP
)

contains a line break plus some additional text. In this example the pattern passed to PHP's format date is:

$pattern = << l, F j, Y - H:i
en contexto: formato de fecha PHP
EOT;

So you end up with what can be seen in the screenshot.

CommentFileSizeAuthor
Imagen 1.png62.36 KBdavid_garcia
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

david_garcia created an issue. See original summary.

mpdonadio’s picture

Issue tags: +i18n, +translation, +multilingual

Did you set the translation, or is that the one that shipped with Drupal 8?

mpdonadio’s picture

Title: Some core Date formats are broken on Windows » Spanish date formats are broken
Version: 8.1.x-dev » 8.0.x-dev
Component: datetime.module » language system

Confirmed this w/ a Spanish install on simplytest.me.

These are the bad strings: https://localize.drupal.org/translate/languages/es/translate?project=dru...

I don't know enough about https://localize.drupal.org to get this fixed.

xjm’s picture

Project: Drupal core » localize.drupal.org
Version: 8.0.x-dev » 7.x-1.x-dev
Component: language system » Existing language complaint
Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

Moving to the l.d.o queue.

Has this been fixed already? I do not get any results for the string listing above.

mpdonadio’s picture

Status: Postponed (maintainer needs more info) » Fixed

String doesn't appear on l.d.o anymore, and I just spun up 8.0.2 on simplytest.me, installed as Spanish, and the content page looks normal now.

I think this was the string in question that had the bad translation (the context was added to the translated string), https://localize.drupal.org/translate/languages/es/translate?project=dru...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.