Loading...
 
Skip to main content

lib/prefs/permission.php, site.php contain untranslateable text

Status
Closed
Subject
lib/prefs/permission.php, site.php contain untranslateable text
Version
18.x
25.x
Category
  • Consistency
  • Easy for Newbie Dev
  • Less than 30-minutes fix
Feature
Admin Interface (UI)
Resolution status
Fixed or Solved
Submitted by
hman
Lastmod by
hman
Rating
(0)
Description

In lib/prefs/permission.php is a help text that resists all trials to translate it. It does get pumped through tra(), but I cannot translate it even if I copy exactly the string from the PHP source code. I have also tried to substitute the line break that is contained by \n, the newline character. To no avail.

The code in question is this:

Copy to clipboard
function prefs_permission_list() { return [ 'permission_denied_url' => [ 'name' => tra('Send to URL'), 'description' => tra('URL to redirect to on "permission denied"'), 'type' => 'text', 'size' => '50', 'default' => '', 'tags' => ['basic'], ], 'permission_denied_login_box' => [ 'name' => tra('On permission denied, display login module'), 'description' => tra('If an anonymous visitor attempts to access a page for which permission is not granted, Tiki will automatically display the Log-in module. Alternatively, use the Send to URL field to display a specific page (relative to your Tiki installation) instead.'), 'type' => 'flag', 'default' => 'n', 'tags' => ['basic'], ], ]; }


The string in 'description' cannot be translated. And when I grep through the entirety of Tiki 18.6, in no language has anyone managed to translate this part, because in all of the 58 languages that are available in /lang, not a single one custom.php or language.php contains a string starting with "If an anonymous visitor"...

Importance
6
Easy to solve?
10 easy
Priority
60
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7428
Created
Monday 20 July, 2020 22:02:02 UTC
by hman
LastModif
Wednesday 14 September, 2022 16:03:29 UTC


Show PHP error messages