Project

General

Profile

Actions

Bug #14247

closed

COA_INT objects breaks language settings

Added by Peter Klein almost 20 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Should have
Category:
Frontend
Target version:
-
Start date:
2004-07-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.6.1
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When using a COA_INT object, the language settings get ignored..
So everything gets renderes using the default (english) language..

1st time you view the page after clearing the cache it works fine, but next time you view the page it reverts to english.. See example..

Example code:

-- cut --
  1. ----------------------------------------------------
  2. Set default language to Danish
  3. ----------------------------------------------------
    config.sys_language_uid = 0
    config.language = dk
    config.locale_all = danish
  4. ----------------------------------------------------

temp.coa = COA
temp.coa {
10 = TEXT
10.data = date:U
10.strftime = %A %d %B %y %H:%M:%S
10.wrap = <br>Current date/time in a COA Object=|<br>
}

temp.coaint = COA_INT
temp.coaint {
10 = TEXT
10.data = date:U
10.strftime = %A %d %B %y %H:%M:%S
10.wrap = <br>Current date/time in a COA_INT Object=|<br>
}

page.777 < temp.coa
page.888 < temp.coaint
-- cut --

This gives an output like this:

Current date/time in a COA Object=torsdag 22 juli 04 18:05:27

Current date/time in a COA_INT Object=Thursday 22 July 04 18:05:35

(issue imported from #M238)


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Feature #14253: Setlocale does not work when page is cachedClosedIngmar Schlecht2004-07-26

Actions
Actions #1

Updated by Ingmar Schlecht over 19 years ago

Yes, setlocale seems not to be executed when a page is cached.
That results in wrong locales for non cached content like advCalendar.

Actions #2

Updated by Ingmar Schlecht over 19 years ago

Kasper has solved this in CVS.

Actions

Also available in: Atom PDF