Minor multilingual function not implemented

Created on 17 January 2022, over 3 years ago
Updated 31 January 2023, over 2 years ago

Problem/Motivation

Hi everyone,
I have recently examined the Drupal book module and found some minor issue with multilingual feature which thought that it is useful to report it back.
1- If you add two language to a Drupal setup and want to rename the titles in the second language from Structure>Book all the titles in the primary language would change instead of the translated titles.
2- The book page title on the navigation template does not change with respect to interface language or the content language.

Steps to reproduce

1- Install Drupal 9.3.x
2- Install two language
3- Install book module, enable content translation
4- Create a book content and add some pages

Issue with content retrieval in respect to language:
5- Visit Admin>Structure>Book in the second language and view the book page titles

Issue with book title function not translated in navigation template. {{ book_title }}
5- After creating some book pages view the travers link title.

<h2>{{ 'Book traversal links for'|t }} {{ book_title }}</h2>

Proposed resolution

Probably calling a language function such as has-translation or language-context function would retrieve book title in accordance with the content language.
Thanks

๐Ÿ› Bug report
Status

Active

Version

9.5

Component
Bookย  โ†’

Last updated 1 day ago

  • Maintained by
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States @pwolanin
Created by

๐Ÿ‡ฎ๐Ÿ‡ทIran tsotoodeh

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.71.5 2024