Loading...
 
Skip to main content

Missing translation call in smarty_tiki/modifier.tiki_short_datetime.php

Status
Closed
Subject
Missing translation call in smarty_tiki/modifier.tiki_short_datetime.php
Version
6.x
Category
  • Error
  • Patch
Feature
Blog
Comment
Date and Time
Submitted by
instantsleep
Lastmod by
instantsleep
Rating
(0)
Description

Showing a comment to a blog entry that has been posted the same day, only the time when the comment was posted is displayed. We use the German translation of TikiWiki, but the English "at" in "at 12:34" is display, not the German "um".
After having a look into the code, it seems the translation function is not called in lib/smarty_tiki/tiki_short_datetime.php

Solution

delete: return empty($intro)? $time:str_replace(array('on', 'On'), array('at', 'At'), $intro).' '.$time;

insert instead: return empty($intro)? $time: tra(str_replace'on', 'On'), array('at', 'At'), $intro.' '.$time;

Importance
3
Priority
15
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
3983
Created
Sunday 28 August, 2011 12:16:27 UTC
by instantsleep
LastModif
Friday 22 March, 2013 15:20:22 UTC


Show PHP error messages