Project Idea – Telegram bot to translate strings for Open Source Projects

telegram bot க்கான பட முடிவு

In wikimedia hackathon, I saw a demo of using telegram bot to translate strings from translatewiki.net

here are the notes about it.

============

Telegram Translation Bot: https://phabricator.wikimedia.org/T131664 DONE

Translate on translatewiki.net without leaving your Telegram app

Code: https://github.com/amire80/mediawiki-telegram-bot/

mediawiki.org page: https://www.mediawiki.org/wiki/User:Amire80/chat_bot_draft

Phabricator: amire80 * Wikipedia: Amire80 * Twitter: @aharoni

Amir E. Aharoni and Taras Bunyk presenting

Justin Du (MtDu), Taras Bunyk, and help from Brian Wolff, Madhvuvishy, bd808, Niklas Laxström, Jon Robson, and more people!

“Most people don’t speak English”

Translatewiki.net – thousands of messages to translate

can now translate through this simple mobile app instead of needing to load the full site in a browser

selects untranslated strings, in your preferred languages, sends them to you, and you translate, and it submits them to translatewiki

Long messages are automatically skipped to fit a use on mobile.

============

Thinking as we can build a bot to translate the strings for mozilla and openstreetmaps.

Need to get your inputs/thoughts/ideas for this.

translate க்கான பட முடிவு

These links may help to build a telegram bot for translations.

https://github.com/zanata/zanata-python-client

https://translate.zanata.org

https://translate.zanata.org/iteration/view/TamilMap/1/settings?dswid=1182

use this command to get the po file in /tmp/ta.po

zanata po pull –url https://translate.zanata.org/ –project-id TamilMap –project-version 1 –transdir /tmp

We can process the po file using polib

http://polib.readthedocs.io/en/latest/quickstart.html

There are many python libraries to create a telegram bot.

http://telepot.readthedocs.io/en/latest/

https://khashtamov.com/en/how-to-create-a-telegram-bot-using-python/

https://blog.pythonanywhere.com/148/

https://www.codementor.io/garethdwyer/building-a-telegram-bot-using-python-part-1-goi5fncay
With all these tools to create a bot, to process Po files and zanata to host the translations, we can connect them all.
If any one is interested in programming for this, reply here.

Thanks.

Image sources:

http://www.asktrustdee.com/2016/03/my-top-5-telegram-bot.html
https://commons.wikimedia.org/wiki/File:Translate_en-ta.png | CC-By-SA

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s