DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:dokutranslate

DokuTranslate Plugin

Compatible with DokuWiki

Adora Belle, Angua

plugin Plugin for crowdsourced translation of books

Last updated on
2016-01-22
Provides
Syntax, Admin, Action
Repository
Source

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Tagged with books, translation

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

plugin/dokutranslate.txt · Last modified: 2020-02-24 13:28 by Aleksandr

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki