Giter Club home page Giter Club logo

po-tools's Introduction

Haskell Platform 2011.2 is required. Test installer is available here:

http://projects.haskell.org/pipermail/haskell-platform/2011-February/001400.html

Demo

Please type "make demo" to see a worked example of localizing RT4 with myGengo using po2txt/txt2po. A sample run would look like this:

Step 1: Turn .po file into new and reference .txt files

runghc po2txt.hs demo/zh_CN.po
*** Written TXT file: demo/zh_CN.po.new.txt
*** Written TXT file: demo/zh_CN.po.ref.txt

Step 2: Send zh_CN.po.new.txt to myGengo Translate API...

(with zh_CN.po.ref.txt included in comment as reference)

Step 3: Received RequestTracker-zh_CN.txt from myGengo;

convert it back to .po format

runghc txt2po.hs demo/RequestTracker-zh_CN.txt
*** Written PO file: demo/RequestTracker-zh_CN.txt.po

Step 4: Run msgmerge to merge new translations with old ones

msgmerge -N --previous -s --no-wrap demo/RequestTracker-zh_CN.txt.po demo/zh_CN.po > demo/merged-zh_CN.po
................................................................................................................................................................................................................................................................................... 完成。

All Done! See demo/merged-zh_CN.po for the final output.

Build

To build po2txt/txt2po as binary, simply run:

make bin

po2txt and txt2po will be built in the bin directory.

po-tools's People

Contributors

audreyt avatar c9s avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.