[TYPO3-core] RFC #12828: change language .js for ExtJS according to BE language
Stefano Cecere
scecere at krur.com
Sun Nov 29 10:56:12 CET 2009
hi.. this is my first RFC for the ore so please forgive me any
"noviceness" :)
This is a SVN patch request.
Type: Bugfix
Bugtracker references:
http://bugs.typo3.org/view.php?id=12828
Branches:
trunk
Problem:
the ExtJS language file is not correcly included (based on BE user
language) since the variable $this->lang is the t3lib_PageRenderer is not
set.
Solution:
Attached patch sets $this->lang = $GLOBALS['LANG']->lang (correcting the
bug)
hug
stefano
krur.com
Index: t3lib/class.t3lib_pagerenderer.php
--- t3lib/class.t3lib_pagerenderer.php Base (BASE)
+++ t3lib/class.t3lib_pagerenderer.php Locally Modified (Based On LOCAL)
@@ -1178,6 +1178,7 @@
$localeMap['no'] = 'no_BO'; // Norwegian Bokmaal
$localeMap['se'] = 'se_SV'; // Swedish
+ $this->lang = $GLOBALS['LANG']->lang;
\ No newline at end of file
$extJsLang = isset($localeMap[$this->lang]) ? $localeMap[$this->lang]
: $this->lang;
// TODO autoconvert file from UTF8 to current BE charset if
necessary!!!!
More information about the TYPO3-team-core
mailing list