Loading...
 
Skip to main content

Incomprehensible string for translation

Status
Open
Subject
Incomprehensible string for translation
Version
18.x
Category
  • Consistency
Feature
i18n (Multilingual, l10n, Babelfish)
UI / UX (User interface and experience)
Resolution status
New
Submitted by
hman
Lastmod by
hman
Rating
(0)
Related-to
Description

I have learned that "support request" is now used just for paid support. But I need support not from external programmers, but from the very devs who wrote this. There is a (actually quite many, but I'll start with a prime example) string that is fed into tra() that I don't understand.

/templates/wiki_plugin/wikiplugin_snarf.tpl contains this call to tr() (via tr in curly braces) in line 1:

Copy to clipboard
{tr}{$snarfParams.ajax|escape:html}{/tr}


What does that mean? Obviously it's a call to a PHP variable to be inserted in runtime. But why is the output fed into tr() and not one step earlier the contents of said variable? And how is this supposed to be translated? Of course, in language.php it could be directed upon itself (with key==value), but then why feeding into the translation function in the first place?

And as I wrote, this is just one example, more than half a dozen others are there, too... Enigma to me...

Thanks
hman

Files
  1. Quotes
Importance
3
Easy to solve?
10 easy
Priority
30
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7735
Created
Tuesday 27 April, 2021 18:38:11 UTC
by hman
LastModif
Saturday 06 July, 2024 10:21:44 UTC


Show PHP error messages