Table of Contents
DokuTranslate Plugin
Compatible with DokuWiki
Adora Belle, Angua
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Installation
Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually. Make sure the installed directory is named dokutranslate
.
On Angua, you also have to apply the following patch to DokuWiki before installing. Otherwise you risk severe breakage of translated pages. The bug is already fixed in Adora Belle.
diff --git a/inc/cache.php b/inc/cache.php index ff78e37..e598baa 100644 --- a/inc/cache.php +++ b/inc/cache.php @@ -69,7 +69,7 @@ class cache { if (!empty($this->depends['files'])) { foreach ($this->depends['files'] as $file) { - if ($this->_time < @filemtime($file)) return false; // cache older than files it depends on? + if ($this->_time <= @filemtime($file)) return false; // cache older than files it depends on? } }
Usage
To use the plugin, you first have to use the admin interface and assign moderator groups to namespaces where you want to translate pages. Moderator group assignment applies to the entire subtree except when overridden by another assignment to subnamespace.
Moderators can then use a checkbox in the edit form to start translation of pages in their assigned namespace. Make sure that the original page contains all the text you want to translate before clicking “Save” because start of translation cannot be reverted.
You can now translate the page one paragraph at a time. Moderators can also write reviews for paragraphs they haven't last edited themselves. These reviews are used to calculate completion status displayed next to links on pages not under translation.
DO NOT use external edits on pages under translation. EVER.
To get the finished translation, append ?do=export_xhtmlbody
to the page URL or use some export plugin.
Change Log
- Merge pull request #1 from splitbrain-forks/php7-signature (2016-01-22 17:55)
- Adjust method signatures to match parent (2016-01-22 17:31)
- Show reviews under edit form (2013-03-26 18:23)
- Highlight the paragraph which is being edited (2013-03-16 16:03)
- Fix vertical position of edit buttons in Adora Belle (2012-11-24 13:55)
- Fix rendering of translation status when there are no internal links on (2012-06-20 19:48)
- Implement translation completion statistics (2012-06-20 15:53)
- Highlight paragraphs waiting for current user's review (2012-06-19 15:18)