Multilingual support of strings in second language website

Created on 26 January 2023, over 1 year ago
Updated 13 March 2023, over 1 year ago

Hi everyone
It would be nice to add enhancement to Drupal and make a universal platform in every aspect.
Here is an issue report of localization system. Multilingual support of Drupal 9.x and Drupal 10.x requires much much careful attention.

Problem/Motivation

If you plan to support specific languages, let say Spanish as the default and English as the secondary and you require to make an identical or similar experience across both sites by enabling content translation feature, then creating content structure such as Taxonomy, Blocks, Menu, Views in primary language (Spanish) and provide translation for the mentioned building blocks, and at last make the language URL detection activated for both user interface and content retrieval the result in the second language is not happily displayed! The whole titles and descriptions of Taxonomy, Blocks, Menu, Views which suppose to be retrieved from translation strings of English appears in text with default/primary language.

Steps to reproduce

Regenerate the issue with simplytest.me
1-Setup Drupal 9.x or Drupal 10.0.2 sandbox.
2-Login and add all multilingual features to the site.
3-Add an additional language (Spanish) in this case and make it the default language.
4-Go to language detection setting and make sure language detection based on URL is finely adjusted. (en for English and es for Spanish)
5-From the language content setting enable language translation for the Taxonomy of Tags and make all the fields selected if not.
6-Go to Taxonomy page click on Tags and add a translated title and description for the English language. Save the settings, make sure the vocabulary default language is adjusted to site default language and leave the page.
7-View the Taxonomy page in the second language site (English) you would encounter not with supposed translated strings of Tags title but with title in default language.

Proposed resolution

In admin pages and in site-wide aspect (in second site) this issue has been seen and it should be related to content detection mechanism which Drupal uses to detect the page language and content.

🐛 Bug report
Status

Closed: duplicate

Version

10.1

Component
Configuration 

Last updated 5 days ago

Created by

🇮🇷Iran tsotoodeh

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @tsotoodeh
  • 🇮🇷Iran tsotoodeh

    Please find attached the supporting evidence.

  • Status changed to Postponed: needs info over 1 year ago
  • 🇺🇸United States cilefen

    The URL has /en in the screenshot and the interface is in English. I do not understand the nature of the bug.

  • Status changed to Active over 1 year ago
  • 🇮🇷Iran tsotoodeh

    The URL has /en in the screenshot and the interface is in English. I do not understand the nature of the bug.

    Hey cilefen,
    Sure the interface UI detection is working fine, but how about the translated string in which it is supposed to be an English string?
    The page language is English but the Vocabulary titles are in Spanish! Same for menu items, views titles as well.

  • Status changed to Needs work over 1 year ago
  • 🇩🇪Germany sleitner

    I can reproduce this problem with non english URL. Title and description are not shown translated, translation is available.

    All ConfigEntity based lists are loaded "OverrideFree", existing translations are not loaded.
    Tested with these, but there are more:
    Contact forms /admin/structure/contact
    Menus /admin/structure/menu
    Blocks /admin/structure/block (regions are translated)
    Display modes /admin/structure/display-modes/view
    Form modes /admin/structure/display-modes/form
    Taxonomie /admin/structure/taxonomy
    Comments /admin/structure/comment
    Content types /admin/structure/types
    Views /admin/structure/views

  • Status changed to Closed: duplicate over 1 year ago
Production build 0.71.5 2024