Changes

From SME Server
Jump to navigationJump to search
1,387 bytes removed ,  05:20, 8 March 2008
Line 47: Line 47:     
=== Pootle for developers ===
 
=== Pootle for developers ===
You can add your own locale contribs at Pootle. The community will can translate your contrib into various languages.
+
Lexicons for rpms in smecontribs are automatically added to pootle. The community can now translate your contrib into various languages.
   −
Before this, you must convert your FormMagick panel (FM for short) to POT file, because Pootle can only handle POT and PO files. POT = PO Template.
+
A patch is automatically created at .../patch. You then apply this to your contrib to apply the new translations.  
   −
Stephen Noble will publish soon as possible the necesary scripts files to convert between formats.
     −
When you have your POT file of your contrib, you can upload at Pootle, but not directly. You must upload at SVN repository. Pootle server (almost in the currently test server) make a checkout every hour, to check if there are a new or modified POT files. This checkout add or modify the Pootle templates.
+
* The english locale file is used as the pootle template. Other languages are edited/translated at pootle.
   −
Pootle parse each POT template over current languages (as SME when expand-templates). Every time you want to add a new language to your contrib, you must only click at pootle "add language", and Pootle parse (like a copy-merge) the templates over the new language. If this is a new language, Pootle copy the template files to the new language. I there is existing language, and you have make a modifications to the template, Pootle merge the templates over the esxisting language files, resulting in adding new untranslated strings, and adding fuzzy strings to similar translations, like describe below in "Merging new strings"
+
* Every time you modify, add to or remove strings from the english locale file, just re-commit to smecontribs cvs. There is a daily update to apply cvs changes to pootle
 
  −
Once you (or the community) translated your file, you can download the PO file from Pootle and back convert from PO to XML FM file. You can download your translated PO file from Pootle or from SVN making a checkout to your local copy.
  −
 
  −
The above information is available in a few days, because SVN is not yet correctly configured the permissions.
  −
 
  −
 
  −
 
  −
==== Advices ====
  −
* <nowiki>Make your original FM file XML strict. Always close the opened tags (<i>...</i>). Use the same caps for tags (<b> is not equal to <B>). In the future I will try to regularize base FM files.</nowiki> See the [[Bugzilla:3877]]
  −
 
  −
* Every time you have modify, added or remove strings from template files just re-add to pootle with SVN template repo, wait a few hours for automatic updating
      +
* <nowiki>Make your original FM file XML strict. Always close the opened tags (<i>...</i>). Use the same caps for tags (<b> is not equal to <B>).
    
[[Category:Howto]]
 
[[Category:Howto]]

Navigation menu