Nonsensical (at first look) "translation" of icons
- Status
- Open
- Subject
- Nonsensical (at first look) "translation" of icons
- Version
- 18.x
21.x Regression - Category
- Error
- Easy for Newbie Dev
- Less than 30-minutes fix
- Feature
- Toolbars, Quicktags and Smileys
- Resolution status
- New
- Submitted by
- hman
- Lastmod by
- hman
- Rating
- Description
In /lib/toolbars/toolbarslib.php several calls for icon FILES get translated. Why would the file names or paths of icon files be translated?
This is just a (very) minor issue, but unnecessarily inflates language.php in all target languages. Example:
Copy to clipboardswitch ($tagName) { case 'bold': $label = tra('Bold'); $icon = tra('img/icons/text_bold.png'); $iconname = 'bold'; $wysiwyg = 'Bold'; $syntax = '__text__'; break;With this, a translator could exchange toolbar icons (or their paths) in his/her translation. But what would be the use case for that? 22 icon file names are pumped through tra() in total... Maybe there is some deeper logic, but I don't get it 😉
- Importance
- 1 low
- Easy to solve?
- 10 easy
- Priority
- 10
- 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
- 7723
- Created
- Saturday 10 April, 2021 20:30:35 UTC
by hman - LastModif
- Monday 15 August, 2022 13:29:15 UTC