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
- 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+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 3983
- Created
- Sunday 28 August, 2011 12:16:27 UTC
by instantsleep - LastModif
- Friday 22 March, 2013 15:20:22 UTC