Loading...
 
Skip to main content

Bugs that cannot be explained?

Status
Closed
Subject
Bugs that cannot be explained?
Version
18.x
Category
  • Bug
  • Consistency
Feature
Admin Interface (UI)
Resolution status
Fixed or Solved
Submitted by
hman
Lastmod by
hman
Rating
(0)
Description

There are also those bugs, whose inner workings look like a miracle to someone who is not familiar with the code.

For instance, I cannot translate "Sticky Popup" from the admin page of calendar. There are two different features by the same GUI (!) name on lines 62 and 826 of /lib/wiki_plugins/wikiplugin_trackerlist.php:

Copy to clipboard
'stickypopup' => [ 'required' => false, 'name' => tra('Sticky Popup'), 'description' => tra('Choose whether the popup tooltip will stay displayed on mouse out (does not stay open by default)'), 'since' => '2.0', 'filter' => 'alpha', 'default' => '', 'options' => [ ['text' => '', 'value' => ''], ['text' => tra('Yes'), 'value' => 'y'], ['text' => tra('No'), 'value' => 'n'] ] ], [...] 'calendarstickypopup' => [ 'required' => false, 'name' => tra('Sticky Popup'), 'description' => tra('Calendar item popups will stay open if set to y (Yes). Not sticky by default'), 'since' => '6.0', 'doctype' => 'calendar', 'filter' => 'alpha', 'default' => 'n', 'options' => [ ['text' => '', 'value' => ''], ['text' => tra('Yes'), 'value' => 'y'], ['text' => tra('No'), 'value' => 'n'] ] ],


As you can see, both (!) call the translation subroutine, and both (!) have a description, so that help string should be visible under a blue question mark icon, next to the feature checkbox on tiki-admin.php?page=calendar, but they don't !! And I cannot translate the name, so it shows only "Sticky Popup" and the checkbox, and that's it.

The reason must lie deeper than what I can see in the code by going over it...

And yes, I did check that the space between "Sticky" and "Popup" is really a space (0x20) and not something weird like a shift-space...

Pls see the attachment.

Files
  1. Bildschirmfoto Vom 2020 07 27 15 56 59
  2. Bildschirmfoto Vom 2020 07 27 15 56 59
Importance
7
Easy to solve?
3
Priority
21
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7445
Created
Monday 27 July, 2020 13:48:02 UTC
by hman
LastModif
Saturday 06 July, 2024 10:21:44 UTC


Show PHP error messages