8000 GitHub - oyamo/weblate-translation-assistant: A python tool/module for connecting to your weblate projects to enable translation without using a browser. Can be intergrated with bots and web apps
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A python tool/module for connecting to your weblate projects to enable translation without using a browser. Can be intergrated with bots and web apps

Notifications You must be signed in to change notification settings

oyamo/weblate-translation-assistant

Repository files navigation

Oyasis-Weblate-translation-assistant-Python

A python module for connecting to your weblate project to enable translation without using a browser. Can be intergrated with bots and web apps.

Built with ❤️ by Oyamoh Brian for Swahilinux

Installation

To install:

pip install -r requirements.txt

Running

  1. Make appropriate configurations in config.ini file
  2. Run python main.py

To-do

  1. Build bots (telegram, facebook) to leverage project functionality, to better improve crowd translation

We welcome comments and suggestions for improvement 😊

=======

A python tool/module for connecting to your weblate projects to enable translation without using a browser. Can be intergrated with bots and web apps

Make sure you have the following python modules in your environment

requests, lxml,bs4, re, random

Here is a usage sample

from Oyasis import oyasis
#configure your login
#input the correct credentials
config = oyasis.Ini(username="username",password="password#")
#acquire new session using the config deta
session = oyasis.Session(ini=config)
#start translation
tafsiriWork = oyasis.Tafsiri(session=session)
#selecting a project to work on
#tafsiriWork.selectProject("Mate User Guide")
tafsiriWork.selectRandomProject()
#select random string
while(True):
    randomString=tafsiriWork.getRandomString()
    print(randomString["RandString"])
    translated = input("Translation: ")
    tafsiriWork.translate(translation=translated,todo=randomString)

About

A python tool/module for connecting to your weblate projects to enable translation without using a browser. Can be intergrated with bots and web apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0