Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292545

system.site.page.front not translatable in UI, but works directly in config

$
0
0

Context:

We're having different front pages (nodes) per language. They have to be technically different, because one is a page with certain paragraphs for a Special Offer and the other one is from a different content type (can't be the same entity here, still both should be the special case "front")

Problem:

Form System > Basic site settings allows to set different variables in UI:

  • Site name
  • Slogan
  • E-Mail
  • Default front page
  • Default 403
  • Default 404

Full form

and shows a "Translate system information" tab. But there only

  • Site name
  • Slogan

can be translated.

Translation form

This was a huge problem for us, so I simply tried to edit de/system.site.yml directly:

page:
  403: ''
  404: /search404
  front: /node/28

imported the config and hey, it works like a charm, just like we knew in Drupal 7. /de now deliveres a different page than /en. But that should be managable for site owners in the UI directly and not only for developers.

Something like this is also described here for example:
https://drupal.stackexchange.com/questions/188923/setting-the-default-fr...

Proposed solution

Expose all Basic site settings for translation in UI. Front page is a very special case and we should not assume it's always the identically same entity targeted!

Thank you!


Viewing all articles
Browse latest Browse all 292545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>