Project

General

Profile

Actions

Bug #46748

closed

Custom languages won't be displayed in the frontend

Added by David Gurk over 11 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2013-03-28
Due date:
% Done:

0%

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

Description

In typo3conf/extTables.php I added the following lines:

$GLOBALS['TYPO3_CONF_VARS']['SYS']['localization']['locales']['user'] = array(
    'de_AT' => 'German (Austria)',
    'de_CH' => 'German (Swiss)',
);

$GLOBALS['TYPO3_CONF_VARS']['SYS']['localization']['locales']['dependencies'] = array(
   'de_AT' => array('de'),
   'de_CH' => array('de'),
);

It seems that the function "initialize()" won't be executed in the class "typo3_src-4.6.18/t3lib/l10n/class.t3lib_l10n_locales.php", when the function $locales->getLocales() is called in the class "typo3_src-4.6.18/typo3/sysext/cms/tslib/class.tslib_fe.php" in line 4751.

"var_dump($locales->getLocales());" only outputs the normal array without the new localizations.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #46688: Bugfix for "L10n fallback" (#44099) does not work for local languages like "at" (Austria)ClosedXavier Perseguers2013-03-26

Actions
Actions #1

Updated by Gerrit Code Review over 11 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/19672

Actions #2

Updated by Gerrit Code Review over 11 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/19672

Actions #3

Updated by Gerrit Code Review over 11 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/19672

Actions #4

Updated by David Gurk over 11 years ago

Hi!

Please, can someone explain how the updates by "Gerrit Code Review" deal with this ticket? I try to understand this context.

Thank you.

Actions #5

Updated by Anja Leichsenring over 11 years ago

we had a typo in the commit message, providing a wrong issue number. So the patch sets where bound to this ticket they don't belong to.

Actions #6

Updated by Anja Leichsenring over 11 years ago

  • Status changed from Under Review to New
Actions #7

Updated by David Gurk over 11 years ago

Hi,

I uploaded an example in this report:
http://forge.typo3.org/issues/46688#note-9

So it should be possible to understand my problem.

Thanks

Actions #8

Updated by David Gurk over 11 years ago

Okay, it's a bit odd.

I moved the code for "$GLOBALS['TYPO3_CONF_VARS']['SYS']['localization']['locales']['user'] ..." from "typo3conf/extTables.php" to "typo3conf/localconf.php".

tadaaa It works. -_-°

The really odd thing is, that I have the following line in my localconf.php:
$typo_db_extTableDef_script = 'extTables.php';

So I think this "issue" can be closed.

Actions #9

Updated by Ernesto Baschny over 11 years ago

  • Target version deleted (2194)
Actions #10

Updated by Georg Ringer almost 10 years ago

  • Status changed from New to Closed
  • Is Regression set to No

closed as requested

Actions

Also available in: Atom PDF