Project

General

Profile

Actions

Bug #14333

closed

"Page is being generated" should be translated

Added by Stanislas Rolland about 20 years ago. Updated over 18 years ago.

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

0%

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

Description

The message
"Page is being generated.
If this message does not disappear within 30 seconds, please reload."
should be translated in the current language.

Located in:
class.tslib_fe.php Line 1742
(issue imported from #M381)

Actions #1

Updated by Ingmar Schlecht about 20 years ago

AFAIK it's not possible to determine the language as early in the rendering process as this message is generated.

Setting resolution to "won't fix".

Actions #2

Updated by Stanislas Rolland about 20 years ago

Using property message_page_is_being_generated, the whole html message may be overridden in config section of TS template setup. Moreover, this can be done based on a language condition. Hence, there must be a way to determine the language to be used.

The property message_page_is_being_generated forces to override the whole HTML message, not just the text . A property like message_page_is_being_generated_text may allow to translate in TS setup, but then, why not do it through normal translation mechanisms?

Actions #3

Updated by Michael Stucki about 19 years ago

The typoscript config array is available at this point, but no language stuff has been initialized so far.

I think message_page_is_being_generated was not usable at all until now, so I guess I can just switch it instead of adding another new property once again.

Agreed?

Actions #4

Updated by Stanislas Rolland about 19 years ago

I was able to use message_page_is_being_generated. The problem is that it overrides too much. Therefore I had to modify tslib_fe. Anyways, reusing it is fine with me.

But, then, why not use the normal localization mechanism in order to translate this message?

Actions #5

Updated by Michael Stucki about 19 years ago

Hi Stanislas,

But, then, why not use the normal localization mechanism in order to translate this message?

I have no time to check it but think that $GLOBALS['LANG'] does not exist at this point. Can you please check that? In this case I think it would be fine to get the default text from a translation file, depending on the value of the configured language.

Actions #6

Updated by Stanislas Rolland about 19 years ago

You're right, Michael. Language and locale are set, but $GLOBALS['LANG'] is not yet available at that point. So, it has to be done through TS setup.

Actions #7

Updated by Michael Stucki almost 19 years ago

Fixed in CVS, see ChangeLog for details.

Actions

Also available in: Atom PDF