[TYPO3-core] RFC#8986: BUG: sys_language_mode does not work (in behalf of Bernd Warken)

Gregor Schreier mailinglist at greart.de
Fri Jul 2 15:46:27 CEST 2010


Hello,

after there was no response here, i will send you a new Patch for TYPO3 4.4.0

Type: Bugfix / New Feature

Bugtracker references:
http://bugs.typo3.org/view.php?id=8986

This works in a running TYPO3 (4.4.0) environment.

Problem:
config.sys_language_mode only affects the page record. There is no content_fallback if the current page is translated, but not all records on it and even not a fallback in Menu.

Preconditions:
- config.sys_language_overlay = 1
- config.sys_language_mode = content_fallback; <uid-list>

Solution:
Implement a new method tslib_cObj->languageOverlay to tslib_content.php
This Method will call in Method CONTENT and RECORD to get the RecordOverlay
Add functionality to t3lib_pageSelect->getPageOverlay to get pages_language_overlay  with mulitple sys_language_uid(s) defined in in(config.sys_language_mode = content_fallback; <uid-list>).  The first hit is set.


This patch implements content_fallback with multiple languages for page-menu generation and content generation.
So you can define multiple alternative-fallback-language-ids for your content and also for your menu.

i.e.: German ist your default language (0), you can now define that in russian TYPO3 will fallback to english, and if there is no content found walk to fallback german and so on...


This Patch also solves this bug:
http://bugs.typo3.org/view.php?id=6009




best regards
Gregor Schreier

Am 28.05.2010 um 10:21 schrieb Steffen Ritter:

> This is an svn patch rquest (in Behalf of Bernd Warken and Michael Stucki)
> 
> BT Reference: http://bugs.typo3.org/view.php?id=8986
> Type: Bugfix
> Brances: 4.3, trunk
> 
> Problem:
> is that config sys_language_mode only affects the page record. There is no content-fallback if the current page is translated, but not all records on it.
> 
> Note:
> Just send the patch to Core List.
> Patch fromm Michal Stucki is from >year, but apllies with some offesets.
> 
> 
> gets my +1 on reading (no testcase present atm)
> 
> <bug_8986_v2.diff>_______________________________________________
> Before posting to this list, please have a look to the posting rules
> on the following websites:
> 
> http://typo3.org/teams/core/core-mailinglist-rules/
> http://typo3.org/development/bug-fixing/diff-and-patch/
> _______________________________________________
> TYPO3-team-core mailing list
> TYPO3-team-core at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-team-core

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100702/945c06f6/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_8986_v3.diff
Type: application/octet-stream
Size: 4894 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100702/945c06f6/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100702/945c06f6/attachment-0003.htm>


More information about the TYPO3-team-core mailing list