Tabla de Contenidos

DokuTranslate Plugin

Compatible con DokuWiki

Adora Belle, Angua

plugin Plugin for crowdsourced translation of books

actualizado por última vez en
2016-01-22
Proporciona
Syntax, Admin, Action
Repositorio
Fuente

La extensión no ha sido actualizada en al menos 2 años. Puede que ya no tenga soporte o no sea mantenida y tenga problemas de compatibilidad.

Etiquetado con 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