Nonprinting characters in Tiki source code that make life of translators harder
- Status
- Closed
- Subject
- Nonprinting characters in Tiki source code that make life of translators harder
- Version
- 18.x
- Category
- Consistency
- Usability
- 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
- Related-to
- Description
Once again I stumbled upon texts of Tikis admin GUI had resisted being translated, and later I found that nonprinting characters were hardcoded that will block tra() or tr() from pattern matching. Even spaces can block a translation. I won't make new bug reports for those, but rather use this one as sort of an umbrella bug report which I will amend with comments.
So the first new occurency of nonprinting characters that block translations is found on line 130 of /lib/prefs/tracker.php:
Copy to clipboard'description' => tr("Require users to fill in a tracker form if not done already by prompting them with a modal dialog "),
Those two spaces (yes, two, not one or three...) may look like a little glitch from a dev's perspective, but since they do not print, you cannot translate this string by copy & pasting from the GUI into custom.php giving a translation: The pattern matching cannot find it. There is a workaround, but this may not be so easy for translators with little experience and with small toolboxes (Windows comes with FAR less useful tools for this than Linux...), since if you encounter those, you have to grep through the entirety (!) of Tiki source code to find the origin of the string, to be able to look at it's source code, to be able to copy & paste from there...- Importance
- 4
- Easy to solve?
- 10 easy
- Priority
- 40
- 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
- 7443
- Created
- Sunday 26 July, 2020 17:56:06 UTC
by hman - LastModif
- Friday 22 October, 2021 12:29:14 UTC