Hey drupalistas

I'm experiencing a very weird issue.
The contact form is multilingual.
I translated the labels.

/en/admin/config/regional/content-language
N/A Contact us Default language: Interface text language selected for page

If I rebuild my cache, then it loses its translation although if I click on "translate" it is still there.
Weird thing, it are only the labels that stay in English.

Upgrading to the latest stable drupal version (8.1.9) did not solve it.

Comments

yvesvanlaer created an issue. See original summary.

tormu’s picture

Version: 8.1.9 » 8.2.5

Same problem.

I have two languages, Finnish and English. Finnish is default. However, most of my config is in English by default, including the field labels.

I have a contact form and it has custom fields. The field labels have English as the original language and they have Finnish translations.

When I rebuild the cache from the site GUI, admin/config/development/performance, and then view the contact form (/contact/xxx), everything is fine - I see the labels in Finnish or English, depending on the language I set.

However, if I do "drush cr" from terminal, all I see is the English labels all the time.

It is also possible that this is related to https://www.drupal.org/node/2650434, though in my case it seems to be quite the opposite - when I clear the cache in Finnish (default) they are set right. No idea what language drush uses when doing cr.

DamienMcKenna’s picture

Version: 8.2.5 » 8.3.7

On a site with 8.3.7 we're having the problem that the confirmation page does not translate the labels at all, regardless of when the caches were cleared.

DamienMcKenna’s picture

Never mind, the confirmation page is custom code X-)

Version: 8.3.7 » 8.3.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Version: 8.3.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Branches prior to 8.8.x are not supported, and Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

quietone’s picture

Status: Active » Closed (cannot reproduce)
Issue tags: +Bug Smash Initiative

@yvesvanlaer, Thank you for reporting this problem. We rely on issue reports like this to improve Drupal core.

I tested this on 8.9.x and 9.3.x, standard install with English and Italian and was not able to reproduce this error. I followed the steps given in #2.

Therefore, closing as cannot reproduce. If you are experiencing this problem reopen the issue, by setting the status to 'Active', and provide complete steps to reproduce the issue (starting from "Install Drupal core").

Thanks!