GithubHelp home page GithubHelp logo

riccardofasan / polyglot Goto Github PK

View Code? Open in Web Editor NEW
15.0 1.0 2.0 363 KB

Polyglot is a CLI tool that automates translations tasks. Using the DeepL API, Polyglot generates a translated file from a given source.

Home Page: https://pypi.org/project/polyglot-translator/

License: MIT License

Python 100.00%
deepl api translation gettext json json-translator po-translator deepl-api python translate

polyglot's Introduction

Hello world!👋

I'm Riccardo, a web developer from Udine, Italy.

Technologies & tools I use

HTML5 CSS3 SCSS JavaScript TypeScript Angular Python Django DjangoREST Arch Visual Studio Code Docker Postman Git GitHub Notion

Where you can find me

Github LinkedIn

polyglot's People

Contributors

jmcclelland avatar riccardofasan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

polyglot's Issues

When a msgid contains %(keyword)s, keyword should not be translated

Thanks for this great tool !

It works well, but I have one problem, to use your lib in real-life PO files from Odoo/OCA modules. My PO file contains:

#: code:addons/l10n_fr_das2/models/l10n_fr_das2.py:0
msgid "Company '%(company)s' is configured in country '%(country)s'."
msgstr ""

When I run:

python -m polyglot translate --from EN --to FR -s filename.po

I get the following result:

#: code:addons/l10n_fr_das2/models/l10n_fr_das2.py:0
msgid "Company '%(company)s' is configured in country '%(country)s'."
msgstr "L'entreprise \"%(entreprise)s\" est configurée dans le pays \"%(pays)s\"."

The keywords 'company' and 'country' should not be translated!

can't install via pip - dependency problem

I'm trying to install on a debian testing machine and I'm getting this error:

0 jamie@liberace:~$ pip install deeply-translator
ERROR: Could not find a version that satisfies the requirement deeply-translator
ERROR: No matching distribution found for deeply-translator
1 jamie@liberace:~$ 

Any suggestions?

Thanks!

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.