scribusproject / scribus-translations

Translations for Scribus (backup of Transifex)
https://www.transifex.com/scribus/scribus
1 stars 1 forks source link

Automated notification to devs when translations have been added and/or reached 100% #11

Open luzpaz opened 7 years ago

luzpaz commented 7 years ago

Is there a way to receive reports when activity on Transifex has occurred? There is https://www.transifex.com/scribus/scribus/settings/timeline/ but that IIRC is only available via http. There is a statistics API call in https://docs.transifex.com/api/statistics but nothing that I can see will report when a translator completes a language.

luzpaz commented 7 years ago

Answer has something to do with https://docs.transifex.com/integrations/webhooks

gyuris commented 7 years ago

@luzpaz, what exactly would you like to see? Where?

With 1st feature we can provide a script to process the answer: curl -i -L --user USERNAME:PASSWORD -X GET http://www.transifex.com/api/2/project/scribus/resource/scribus/stats/

"el": {
        "reviewed_percentage": "0%", 
        "completed": "52%", 
        "untranslated_words": 16901, 
        "last_commiter": "cbradney", 
        "reviewed": 0, 
        "translated_entities": 4011, 
        "translated_words": 12150, 
        "last_update": "2016-12-21 22:16:38", 
        "untranslated_entities": 3687
},

2nd feature can we add to some webpage.

luzpaz commented 7 years ago

Interesting clip on how to work with transifex API requests https://www.youtube.com/watch?v=zl-fa0Pp5K0

luzpaz commented 7 years ago

2nd feature can we add to some webpage.

I think if we can pull stats from transifex then generate a template like: https://github.com/qgis/QGIS/blob/master/doc/TRANSLATORS which looks like: qgis-about-translators and we can put it on the website and perhaps in the Scribus 'About' dialog #14524