Loading...
 

Create a tool that extracts all text to be displayed

Status
Open
Subject
Create a tool that extracts all text to be displayed
Version
18.x
Category
  • Feature request
Feature
i18n (Multilingual, l10n, Babelfish)
Resolution status
New
Submitted by
hman
Lastmod by
hman
Rating
(0)
Related-to
Description

Creating a translation of Tiki Wiki is a really arduous task, more like a project (I have spent more than half a month already, almost fulltime).

No one will want to do this more than once, at least I don't. The problem is, that in order to render a good translation, you have to see a text in it's context. The task is so tremendously labour intensive, because you have to backtrack clicking everything, activating everything, then deactivating everything, trying to provoke all errors etc. pp. et. al.

Now comes the problem of Tiki improvements. With every new release of Tiki, from the smallest bugfix to the biggest new release of a LTS possibly comes new text. And even correcting a single character that was part of a typo immediately leads to the translation vanishing into thin air because the pattern matching of tra() won't catch it any longer. The translation remains in the language file, but is never displayed again.

So everything will have to be re-checked., time and again.

Since Tiki Wiki does not have one file of text that resides in constants, you cannot simply generate a diff to see what has changed, and thus needs new (or altered) translations.

Therefore a tool would be necessary that extracts all text to be displayed. That tool could then also look up if there are pre-existing translations of those strings, and present them, too. As a side effect, such a tool could help developers to guard their code against strings NOT passed into tra() or tr (which makes translating them impossible).

In the first stage, such a tool could simply produce one file as output, in later development could be interactive. Such a tool would be a necessry prerequiste for version advancement of Tiki, because without it, all (!) translations are rendered into "status unknown" with any change of code.

Side remark: Such a tool does not necessarily have to be part of Tiki. It could make development easier it at first it would be stand-alone.

Importance
7
Easy to solve?
2
Priority
14
Demonstrate Bug (Tiki 19+)
Please demonstrate your bug on show2.tiki.org
 About show2.tiki.org

To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.

Version: Create show2.tiki.org instance
Demonstrate Bug (older Tiki versions)
 Show.tiki.org is currently unavailable

Unable to connect to show.tikiwiki.org. Please let us know of the problem so that we can do something about it. Thanks.

Ticket ID
7511
Created
Tuesday 25 August, 2020 09:52:55 GMT-0000
by hman
LastModif
Tuesday 09 March, 2021 19:09:21 GMT-0000

Attachments

 filenamecreatedhitscommentversionfiletype 
tra_dedup.js.txt 26 Mar 21 19:45 GMT-00000Deduplicated output of tra_extract. Strings from *.js.
tra_dedup.php.txt 26 Mar 21 19:43 GMT-00000Deduplicated output of tra_extract. Strings from *.php, *.tpl, excluding *.js.
heredoc_extract.php 10 May 21 07:51 GMT-00000heredoc_extract, a preprocessor tool to extract Javascript from Tiki's PHP files. Version 1.7.
duplicate_error_js.txt 26 Mar 21 20:03 GMT-00000Log file from deduplicating the Javascript file
duplicate_error_php.txt 26 Mar 21 20:04 GMT-00000Log file from deduplicating the PHP & templates file
tra_extract_raw.js.txt 26 Mar 21 20:12 GMT-00000Raw output of tra_extract, without deduplication. Strings from *.js, in the format of language.js.
tra_extract_raw.txt 26 Mar 21 20:09 GMT-00000Raw output of tra_extract, without deduplication. Strings from *.php, *.tpl.
deduptest_js.php 26 Mar 21 11:27 GMT-00000Tra dedup js, a tool to deduplicate the output of tra_extract2, for the Javascript file.
deduptest_php2.php 26 Mar 21 21:30 GMT-00000Tra dedup php, a tool to deduplicate the output of tra_extract2, for the PHP & template file.


Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki development and should correspond to documentation keywords.

Each feature in Tiki has a wiki page which regroups all the bugs, requests for enhancements, etc. It is somewhat a form of wiki-based project management. You can also express your interest in a feature by adding it to your profile. You can also try out the Dynamic filter.

Accessibility (WAI & 508)
Accounting
Administration
Ajax
Articles & Submissions
Backlinks
Banner
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Calendar
Category
Chat
Comment
Communication Center
Consistency
Contacts Address book
Contact us
Content template
Contribution
Cookie
Copyright
Credits
Custom Home (and Group Home Page)
Database MySQL - MyISAM
Database MySQL - InnoDB
Date and Time
Debugger Console
Diagram
Directory (of hyperlinks)
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
DogFood
Draw -superseded by Diagram
Dynamic Content
Preferences
Dynamic Variable
External Authentication
FAQ
Featured links
Feeds (RSS)
File Gallery
Forum
Friendship Network (Community)
Gantt
Group
Groupmail
Help
History
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
jQuery
Kaltura video management
Kanban
Karma
Live Support
Logs (system & action)
Lost edit protection
Mail-in
Map
Menu
Meta Tag
Missing features
Visual Mapping
Mobile
Mods
Modules
MultiTiki
MyTiki
Newsletter
Notepad
OS independence (Non-Linux, Windows/IIS, Mac, BSD)
Organic Groups (Self-managed Teams)
Packages
Payment
PDF
Performance Speed / Load / Compression / Cache
Permission
Poll
Profiles
Quiz
Rating
Realname
Report
Revision Approval
Scheduler
Score
Search engine optimization (SEO)
Search
Security
Semantic links
Share
Shopping Cart
Shoutbox
Site Identity
Slideshow
Smarty Template
Social Networking
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Staging and Approval
Stats
Survey
Syntax Highlighter (Codemirror)
Tablesorter
Tags
Task
Tell a Friend
Terms and Conditions
Theme
TikiTests
Federated Timesheets
Token Access
Toolbar (Quicktags)
Tours
Trackers
TRIM
User Administration
User Files
User Menu
Watch
Webmail and Groupmail
WebServices
Wiki History, page rename, etc
Wiki plugins extends basic syntax
Wiki syntax text area, parser, etc
Wiki structure (book and table of content)
Workspace and perspectives
WYSIWTSN
WYSIWYCA
WYSIWYG
XMLRPC
XMPP




Useful Tools