Difference between revisions of "Silme"

From Braniecki's Wiki
Jump to navigation Jump to search
Line 1: Line 1:
Mozpyl10n is a library for L10n operations on Mozilla files written in Python (sic!).
+
Verbatim is a library for L10n operations on Mozilla files written in Python (sic!).
  
 
The project currently has no name, and no stable anything, but it has a vision and some code already written.
 
The project currently has no name, and no stable anything, but it has a vision and some code already written.
  
* WebSVN: [http://svn.braniecki.net/wsvn/Mozpyl10n/ http://svn.braniecki.net/wsvn/Mozpyl10n/]
+
* WebSVN: [http://svn.braniecki.net/wsvn/Verbatim/ http://svn.braniecki.net/wsvn/Verbatim/]
  
You can download trunk from [http://svn.braniecki.net/mozpyl10n http://svn.braniecki.net/mozpyl10n] or current stage from [http://svn.braniecki.net/mozpyl10n/tags/stage1 http://svn.braniecki.net/mozpyl10n/tags/stage1].
+
You can download trunk from [http://svn.braniecki.net/verbatim http://svn.braniecki.net/verbatim] or current stage from [http://svn.braniecki.net/verbatim/tags/stage1 http://svn.braniecki.net/verbatim/tags/stage1].
  
 
== Usage ==
 
== Usage ==
Line 29: Line 29:
  
 
* make sure you have python 2.5 and python-xml package
 
* make sure you have python 2.5 and python-xml package
* pull mozpyl10n
+
* pull verbatim
* ./scripts/apply-diff.py en-US1.0 en-US1.5 pl1.0 pl1.5
 
* The script will diff en-US1.0 and en-US1.5 and apply the diff onto pl1.0 in pl1.5 directory
 
 
 
 
 
Known issues:
 
* Currently the feature set is extremely limited because I hardcoded many things to make sure that others do their job.
 
* It will not copy non dtd/properties files so you may want to limit the directory choice to the ones with dtd/properties files only.
 
* It will not overwrite the files in the pl1.5 directory
 
* It does not localize interactively but you can add it with not much work :)
 
 
 
* ./scripts/compare-versions.py en-US1.0 en-US1.5 --export xml > diff.xml
 
  
 
== Roadmap ==
 
== Roadmap ==
  
For [[Projects:mozpyl10n:stage2]]:
+
For [[Verbatim:stage2]]:
 
 
* Clean the entirely codebase and simplfy a lot of code pieces
 
* Make the code readable
 
* Implement in the nice way all the dirty hacks applied "in hurry"
 
* Rewrite other ./scripts to make sure the scripts that currently exist works
 
* Think what's next.
 
* Add support for L20n
 
* Support Python 3.0
 

Revision as of 12:56, 19 May 2008

Verbatim is a library for L10n operations on Mozilla files written in Python (sic!).

The project currently has no name, and no stable anything, but it has a vision and some code already written.

You can download trunk from http://svn.braniecki.net/verbatim or current stage from http://svn.braniecki.net/verbatim/tags/stage1.

Usage

webtool

  • install django
  • pull mozpyl10n
  • enter ./www
  • prepare settings.py
  • python manage.py syncdb
  • python manage.py runserver

GUI tool

  • install QT4
  • install PyQT4
  • pull mozpyl10n
  • enter ./gui/qt4
  • python l10nObject.py

Command line tools

  • make sure you have python 2.5 and python-xml package
  • pull verbatim

Roadmap

For Verbatim:stage2: