Multilingual support of strings in second language website

Created on 12 February 2023, over 1 year ago
Updated 26 November 2023, 10 months 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

9.5

Component
Language system 

Last updated 1 day ago

  • Maintained by
  • 🇩🇪Germany @sun
Created by

🇮🇷Iran tsotoodeh

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

Comments & Activities

Production build 0.71.5 2024