CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #5940

Today & Yesterday in function formatLastPostDate($content,$conf) uses only English locallang

Status:Needs Feedback Start date:2010-01-09
Priority:Could have Due date:
Assignee:- % Done:

0%

Category:Forum
Target version:-

Description

In post of today and yesterday the function formatLastPostDate in \ext\mm_forum\pi1\class.tx_mmforum_pi1.php
returns only the English names for today and yesterday and not the German ones. Can you reproduce this error?

If I replace the date-today in $this->pi_getLL('date-today') I get the German term of the locallang. I do not know why, but the function pi_getLL($key,$alt='',$hsc=FALSE) in typo3\sysext\cms\tslib\class.tslib_pibase.php
but isset($this->LOCAL_LANG[$this->LLkey][$key]) returns not 1.$this->LLkey is "de"
$key is "date-today" debug($this->LOCAL_LANG); returns the attached file.
As you can see it does not include

<!-- Added in 0.1.8 -->
<label index="board-rating">Bewertung</label>
<label index="user-rating">Bewertung</label>
<label index="date-today">Heute</label>
<label index="date-yesterday">Gestern</label>


This bug drives me crazy. I really hope I am not the only one with this problem. :) Ideas and help is appreciated.

History

#1 Updated by Hauke Hainover 3 years ago

• Category set to Forum

#2 Updated by Ines Willenbrockover 3 years ago

• Status changed from New to Accepted

Hi,
I can reproduce that error at least for 1.8.1.
regards, Ines

#3 Updated by Hauke Hainover 3 years ago

Now I am relieved, thank you!
I have this problem also with the latest SVN version.

#4 Updated by Peter Schusterover 3 years ago

I can not reproduce this. For me everything works fine. On current trunk and 1.8.1

#5 Updated by Ines Willenbrockover 3 years ago

http://www.inline-club-hannover.de/forum.html should be an 1.8.2 with some custom patches.

Any ideas where to look?

regards, Ines

#6 Updated by Peter Schusterover 3 years ago

Could you try to set these locallang labels via typoscript?
If this solves the problem there is a bug in provided locallang data. If not the bug is inside the function to fetch the data.

#7 Updated by Ines Willenbrockover 3 years ago

as long as this is correct there is no change in the behavior of the forum, it still shows "yesterday".
the locallang.xml seems fine.

plugin.tx_mmforum_pi1._LOCAL_LANG.de.date-yesterday = Gestern


regards, Ines

#8 Updated by Ines Willenbrockabout 3 years ago

• Target version set to 1.9.0

If it's not too much work, I'd love to see this in 1.8.4 but 1.9.0 is fine by me

regards - Ines

#9 Updated by Martin Helmichabout 3 years ago

• Status changed from Accepted to Needs Feedback

This appear to be a translation server issue.

Some of the labels added in 1.8 have not yet found their way into the german translation from the translation server. Altough the german translation shipped directly with the mm_forum is more current than the translation server version, the latter seems to overrule the language file from the extension directory.

Oddly, removing the german translation from typo3conf/l10n/de and forcing a new update using the translation manager seems to solve the issue.

#10 Updated by Hauke Hainabout 3 years ago

I deleted the whole mm_forum folder and single files. Always the "translation handling" in the extension manager did nothing. Ther was always the message "O.K.". Du you have any idea?

#11 Updated by Martin Helmichabout 3 years ago

I believe you can force a translation update by deleting the typo3temp/llxml directory.

#12 Updated by Martin Helmichabout 3 years ago

• Target version deleted (1.9.0)

Cleared targed version until the source of this issue has been resolved.

#13 Updated by Jan Schreieralmost 3 years ago

Martin Helmich wrote:

Cleared targed version until the source of this issue has been resolved.

is it possible that there are some problems with a change from - to . as separator?
In the locallang file from the translation server e. g. an entry looks like:
and the same line from the 1.9.0 extension from pi3\locallang.xml looks like

sorry for just guessing but I jus ran into a similar problem which only affects those translations where there is a . in the name. for those entries the value from pi3\locallang.xml is taken.

#14 Updated by Ines Willenbrockover 2 years ago

With an clean install of TYPO3 4.3.5 and mm_forum 1.9.1 I couldn't reproduce this, even after updating translations via extension manager.

It seems to me that it's mostly fixed?

regards - Ines

#15 Updated by Pascal no-lastname-givenover 2 years ago

Hi all,

I'm having the same issue with the combo 4.4.4 and 1.9.1 with the Dutch translation.
It seems the 1.8 added fields have not made it into the translation.
Would it be possible for a workaround to allow setting the values in the TS or is the existence/definition of the label in the xml file required for this?

Thanks,
Pascal

Also available in: Atom PDF