[Localization] : Language Variables in HTML Page are not respecting the Language set in current Session #29946
Labels
Doc : Needs Doc
dotCMS : Localization
Includes i18n and multi-lingual issues
dotCMS : Viewtools
OKR : Customer Support
Owned by Scott
Team : Falcon
Type : Defect
Parent Issue
Reported via Enterprise Support. No ticket number available yet.
Problem Statement
According to our Multi-Site Language Configuration documentation, dotCMS Users/Developers are able to access the current Session via the
$request
object, and update the Language that HTML Pages are being rendered in.However, it seems that such an update is not working as expected when it comes to the
$text
ViewTool returning Language Variables in the updated Language. If your default language is English, it'll keep returning the value of the Language Variable in English.Steps to Reproduce
Site > Templates
portlet.Advanced Template
, and name itMy Custom Template
. Add the following source code:Content > Search
portlet, and create a Language Variable in both English and Spanish:3.1. Language =
English
, Key =customvar
, Value =My website
3.2. Language =
Spanish
, Key =customvar
, Value =Mi sitio web
My Custom Template
you created before namedtest-page
. Create it in both English and Spanish.Acceptance Criteria
Updating the currently selected Language in the Session object must render Language Variables in the specified Language.
dotCMS Version
Version 24.08.20 and older, and latest master.
Proposed Objective
Core Features
Proposed Priority
Priority 2 - Important
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
https://dotcms.slack.com/archives/C028Z3R2D/p1725628920476489
Assumptions & Initiation Needs
No response
Quality Assurance Notes & Workarounds
No response
Sub-Tasks & Estimates
No response
The text was updated successfully, but these errors were encountered: