Using Pootle for translation

Version 1 by RobertMalovec
on May 12, 2008 06:27.

compared with
Current by wewek
on May 14, 2008 08:10.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (6)

View page history
h1. Using Pootle for OS.o Messages Translation
One possibility to translate SW messages for OpenSolaris is using [http://translate.sourceforge.net/wiki/pootle/index Pootle]. [Pootle|http://translate.sourceforge.net/wiki/pootle/index]. Since there are several file formats used in OpenSolaris, one must use [Translate Toolkit|http://translate.sourceforge.net/wiki/toolkit/index Translate Toolkit] to convert (and back-convert) different sources to po file format that Pootle can work with. However there are several obstacles that prevent from using Pootle on OpenSolaris messages directly, without modifications. The section below contains list of modifications and steps (workarounds) that we had to execute before using original Solaris po files in Pootle (and in Solaris)

Detail analysis of current problems can be found in the section *QA Report*.
Following issues were identified on [http://www.opensolaris.org/os/project/nv-g11n/documents/repository/ G11n Live repository|http://www.opensolaris.org/os/project/nv-g11n/documents/repository/] from 2007-07-30. (_hg clone ssh://anon@hg.opensolaris.org/hg/nv-g11n/messages_, modul messages).

h2. Changes in Solaris po files
h3. Wrong structure of some Po files
Missing quotes at the end of line for some mgstrs in _SUNW_OST_OSCMD.po_ causes the file cannot be transformed to mo file by _msgmft._ This is not related to Pootle, but to integration into OpenSolaris. Related Bug ID: [http://bugs.opensolaris.org/view_bug.do?bug_id=6586805 6586805] [6586805|http://bugs.opensolaris.org/view_bug.do?bug_id=6586805] Missing quotes at the end of line in .po files (Solved by _poval_pootle.sh_, the double quotes are added).
{panel}
(on) *Solaris po files cannot contain blank* *{_}msgstr{_}*
h1. QA Report
Source of the majority of problems using [http://translate.sourceforge.net/ Pootle] [Pootle|http://translate.sourceforge.net/] editing tool for translation of OpenSolaris .po files is the incompatibility of Sun .po files and GNU gettext .po files. These differences are causing numerous problems (see bellow the Pootle specific problems and .po files incompatibility lists).

h2. The incompatibility of Sun .po files and GNU gettext .po files
All the Pootle specific problems were solved by our script. This script does not make the Solaris .po files compatible with GNU gettext tools, but enables to profit of Pootle translation tool.
_poval_pootle.sh_ can be downloaded from [http://pootle.malovec.org/poval_pootle.sh] [here|http://pootle.malovec.org/poval_pootle.sh]

This is not final version of _poval_pootle.sh_ script. Read the comments in the header of script to get help on usage. Pay attention when rewriting sed code, it is sensitive on white spaces at the end of lines.
* Corrupted msgstr enteries.
h3. popy_check.py can be dowloaded from [http://pootle.malovec.org/popy_check.py_] [here|http://pootle.malovec.org/popy_check.py_]


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact