Difference between revisions of "Talk:Translations"

From SME Server
Jump to navigationJump to search
Line 1: Line 1:
== Translations aided with pootle ==
 
The Goal is to manage SME translations with Pootle hosted on contribs.org. The current method excellent as it is makes it hard to find missing strings and to easily replace them.
 
 
Test pootle site: http://translate.unixlan.com.ar/
 
 
Once we have everything worked out how to interact with pootle and the formmagick stuff then I'll get something up on contribs.org that everyone can use.  It would be really nice if we could automate the extraction/import of files that need to be translated into pootle but first things first. 
 
 
[[User:Slords|Slords]] 18:23, 24 January 2008 (MST)
 
 
== xml2po ==
 
 
see http://wiki.contribs.org/Xml2po
 
 
 
==bugs==
 
==bugs==
  
Line 17: Line 4:
  
 
*[[Bugzilla:3782]]  
 
*[[Bugzilla:3782]]  
 
== Subversion ==
 
 
Translations are under version control, browseable via viewvc at http://www.unixlan.com.ar/viewvc
 
 
The system has an automatic commit for translations.
 
 
Developers upload new or updated .pot files in the templates repository.
 
Changes are pushed to the other language .po files automatically.
 
  
 
==Translation Workflow==
 
==Translation Workflow==

Revision as of 19:35, 8 March 2008

bugs

Bugs related to Pootle based translations are linked here

Translation Workflow

Draft suggestions ...

.po files

  • gettext strings are in various files in cvs
we use xgettext to creates .pot files from the original files to by extracting gettext strings [1]
developers load these into pootle as .pot template files using subversion
  • .po files have been converted to UTF-8, they will be converted back to ISO-8859-1 when patching SME
  • changes to original files, ie changed gettext strings, have to be tracked as usual in the bug tracker
these are imported into the template .pot files using subversion
  • at some point we diff updated po files against cvs po files, the patch is checked and applied.

FormMagick files

  • these are XML files with a <base> and <trans> pair of strings
we create .po files from the english versions
using subversion we load these into pootle as .pot template files
see http://wiki.contribs.org/Xml2po
  • changes to original files, have to be tracked as usual in the bug tracker
<base> strings only have to be added (or removed) to the cvs xml file for english
  • at some point we apply the new translation back to the xml file

then diff against cvs, make patch, check and apply

[1] smeserver-locale.src.rpm smefetchpo