Last modified by Vincent Massol on 2008/10/31 09:40

Show last authors
1 1 Selecting a tool to manage XWiki Localization
2
3 We definitively need to improve our translations or the XWiki Platform and products as well as support more languages. In order to achieve this we need:
4
5 - a good tool
6 - a way to involve the community
7
8 Our requirements for this tool is as far as I can list them:
9
10 For content types with need to be able to import and export:
11 - support Java Application Resources
12 - support translations in XWiki pages
13 - support translations of full XWiki pages
14
15 The tool should have:
16 - being able to import directly from SVN is a plus
17 - easy export in the right format
18 - organization of translations by applications and files
19 - ways to propose new translations (multiple proposal is nice to have)
20 - ways to review and validate them (with a secure group of reviewers)
21 - a system to detect missing translations
22 - a system to detect outdated translations (the main language translation was changed)
23 - ability to manage big volumes of translations
24 - ability to work on translations by screens of 20 to 50
25 - good UI is necessary
26 - ability to work with multiple people at the same time on the translations
27 - ability to edit multiple translations in one screen is nice to have
28 - direct commit to SVN is nice to have or ability to automatically create a JIRA issue with a patch attached. This solves the issue of reviewing since it gets sent to the list and a reviewer has to assign himself and apply the patch. Other solution includes the ability to send the patch to the mailing list for review.
29 - notification for translators is nice to have
30 - ability to improve the application is nice to have
31 - control our application is nice to have
32 - being able to deliver the translation app as part of XWiki is nice to have
33
34
35 In the last few weeks, Jean-Vincent has worked on a small tool allowing to detect missing translations and propose updates for them. On my side, I've been thinking about a workflow for a community working on translations, and worked on a prototype for it. I also had a look at http://launchpad.net which is an online site launched by Ubuntu which can manage translations. Here is a quick review of all three methods:
36
37 1.1 Simple translation check and edit tool
38
39 This tool allows to read the translations from SVN (currently ApplicationResources), compare them and detect missing translations. It then offers a textarea interface allowing to add the missing translation. A javascript allows to simulteneously scroll the original language text and the translated language text. The tool can then generate a patch than could be sent to JIRA.
40
41 Analysis: while this is a quick and simple way to update translations, it does not allow community work around the existing and new translations. It cannot handle full wiki pages translations. It is also required to handle the patches quickly in order to not have the contributors work on the same thing while we wait for applying the work.
42
43 The application is available at: http://platform.xwiki.org/xwiki/bin/view/Localization/XL10N
44
45 1.1 XWiki L10N application
46
47 The objective of the XWiki L10N application would be to fullfill almost all requirements. The initial version would fullfill probably around 80%. The initial prototype is promising but wil need work to allow concurrent access and faster handling of big volumes of data. Currently the concept is ongoing translation. Reimport of the main language (english) file can be done regularly. The application would become the master for the translations files and these could be generated regularly and commited.
48
49 The main advantage of this solution is that we control it. The main drawback is that we control it and that we need to do all the work.
50
51 The prototype is at http://l10n.myxwiki.org where the main XWiki core translation files have been loaded for a few languages.
52
53 1.1 Launchpad.net
54
55 Launchpad.net allows to import gettext compatible file (it seems possible to convert java resources to that format with some python tools). Once it is loaded on launchpad.net there is a quite extensively developed translation application. The concept seems to work by application version. We need to verity if this is the way we want it to work.
56
57 While registering on launchpad.net I've already seen a few issues linked to the fact that we don't control it:
58
59 - my pot template files have not been approved and loaded yet.
60 - registration email takes a long time to arrive (a single sign on with xwiki.org is much cooler)
61
62 Now launchpad.net is an open source application and we could install it locally (but this might not be easy as it is mixed with other tools).
63
64 The XWiki launchpad project is not yet active since my template have not yet been accepted: http://translations.launchpad.net/xwikil10n
65
66 1.1 Comparative table
67
68 {table}
69 Feature | Importance | Simple translation tool | L10N App | Launchpad
70 support Java Application Resources | Mandatory | YES | YES | convert to gettext necessary
71 support translations in XWiki pages | Mandatory | NOT YET | YES | convert to gettext necessary
72 support translations of full XWiki pages | Nice to have | NOT POSSIBLE | NOT YET | Not sure it's possible
73 being able to import directly from SVN is a plus | Nice to have | YES | YES | Not possible
74 easy export in the right format | Mandatory | Patch only | YES | Not possible
75 organization of translations by applications and files | Mandatory | Need work | YES | YES | YES
76 ways to propose new translations | Mandatory | YES | YES | YES
77 multiple proposal is nice to have | Nice to have | NO | NOT YET | YES
78 ways to review and validate them (with a secure group of reviewers) | Mandatory | NO | YES | YES
79 a system to detect missing translations | Mandatory | YES | YES | YES
80 a system to detect outdated translations (the main language translation was changed) | Nice to have | NO | YES | NO
81 ability to manage big volumes of translations | Mandatory | Test needed | Work needed | YES
82 ability to work on translations by screens of 20 to 50 | Mandatory | N/A | Work needed | Not sure you can quickly edit translations by batches
83 good UI is necessary | Mandatory | OK for what it does | We control it | No control but a lot of work done
84 ability to work with multiple people at the same time on the translations | Nice to have | NO | Work needed | I think it works well
85 ability to edit multiple translations in one screen is nice to have | Nice to have | YES | YES | Not sure
86 direct commit to SVN is nice to have | Nice to have | Patch | Possible | NO
87 notification for translators is nice to have | Nice to have | NO | NO | NO
88 ability to improve the application is nice to have | Nice to have | YES | YES | NO unless we install locally
89 control our application is nice to have | Nice to have | YES | YES | NO unless we install locally
90 being able to deliver the translation app as part of XWiki is nice to have | Nice to have | Need work | YES | NO
91 {table}

Get Connected