Code Monkey home page Code Monkey logo

translate_odf's Introduction

Translate_ODF project

THIS PROJECT IS ARCHIVED

I made this project to try to translate odf. In my opinion, xliff2odf and odf2xliff are insuficient tools. I'm trying to improve odf translations in unogenerator project. Try unogenerator_translation script ;)

About

Frontend of xliff2odf and odf2xliff to translate easily odf documents

Usage:

translate_odf2xlf

translate_odf --from_language es --to_language en --input yourfile.odt

This will generate an xlf file with the catalog to translate in XLIFF format

Edit it with "lokalize" for example and rerun that command

A file called yourfile.odt.en.odt will be generated in english

;)

Known issues:

  • translate_odf2xlf doesn't detect all strings and sets a lot of internal and ugly codes, due to odf2xliff command limitations, that's the reason I'm developing translate_odf2po

translate_odf2po

translate_odf2po --from_language es --to_language en --input yourfile.odt

This will generate one gettext .pot and one .po files.

Edit it with "lokalize" for example and rerun that command

A file called yourfile.odt.en.odt will be generated in english

;)

You can use --fake to do a simulation of detected strings

If some string is not detected you can use --undetected

Known issues:

  • translate_odf2po detects more strings than translate_odf2xlf and removes internal codes, buy it doesn't detect strings positions. So it uses a findall_and_replace command. Sometimes you'll need to update your translated files with unogenerator manually.

Known issues

Installation

If you use Gentoo, you can find the ebuild in https://github.com/turulomio/myportage/tree/master/app-office/translate_odf

For other Linux and Windows for your python installation

pip install translate_odf

Links

Changelog

0.3.0

  • Added basic support to translate_odf2po.

0.2.0

  • Removed strange error code, seems it's not necessary anymore
  • Improving command arguments

0.1.0 (2020-09-09)

  • Basic functionality.

translate_odf's People

Contributors

turulomio avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

translate_odf's Issues

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.