Bug #14247
closedCOA_INT objects breaks language settings
0%
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 --- ----------------------------------------------------
- Set default language to Danish
- ----------------------------------------------------
config.sys_language_uid = 0
config.language = dk
config.locale_all = danish - ----------------------------------------------------
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)
Updated by Ingmar Schlecht over 20 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.