Open patcon opened 10 years ago
:+1:
:+1:
We have some time allocated to improve the crowdsource aspect of Transifex this year and I think badges is gonna be on the table for discussion. Thanks for the info @patcon.
The chart looks blurry on Retina display because of its low resolution. Could you please double the size of the image?
We'd love to integrate that feature at our GlobaLeaks project in the wiki https://github.com/globaleaks/globaleaks/wiki
:+1:
:+1:
any movement on this issue?
I also would like to see that feature being integrated in transifex. This is really one of the badge types that are badly missing for many of my github projects.
+1
Made this microservice as an intermediary between the Transifex API and Shields.io, for anyone who's interested.
Interesting, @greatislander
This would be a really cool feature. Transifex is one of the few missing services on shields.io. Please at the least fix the low resolution of the existing widgets, they look really blurry on HiDPI screens.
Link for example image is broken. Updated one:
The API documentation page has been moved to https://docs.transifex.com/api/translations
But it downloads all the translation texts. We probably only need statistics instead: https://docs.transifex.com/api/statistics
This API should be made public if the project is public.
Note that the project page (such as https://www.transifex.com/transifex/transifex/) makes an AJAX call to https://www.transifex.com/_/userspace/ajax/widgets/languages/transifex/transifex/. This is private API but we can use this as temporary solution.
So, I added a new project, inspired by @greatislander. Contents:
https://img.shields.io/badge/dynamic/json.svg?url=http%3A%2F%2Ftransifex.quelltext.eu%2Forganizations%2F12-characters%2Fprojects%2F12-characters-play%2Fresources%2F%3Fmodification%3Dsummary%26language_code%3Dde&label=translated&query=%24.stats[%3F(%40.name%3D%3D%22translated%22)].percentage&colorB=green
https://transifex.quelltext.eu/badge/12-characters/project/12-characters-play/translated.svg
Source: https://github.com/niccokunzmann/open-transifex-api Deployment: https://transifex.quelltext.eu/
@niccokunzmann Currently the URL https://transifex.quelltext.eu/badge/12-characters/project/12-characters-play/translated.svg returns 404. Is it not yet deployed?
@niccokunzmann Currently the URL https://transifex.quelltext.eu/badge/12-characters/project/12-characters-play/translated.svg returns 404. Is it not yet deployed?
I get 12-characters-play|38% badge
Just now deployed. Please give feedback on the issue tracker if something is not working or consider editing the HTML when it can be formulated in a better way.
@niccokunzmann That web service is currently running with niccokunzmann3
as username, so I think it works only if the user is member of the organization, right? For example https://transifex.quelltext.eu/badge/transifex/project/transifex/translated.svg won't work, even if https://www.transifex.com/transifex/transifex/ is public project.
@FranklinYu We can discuss this in the repository, such as in https://github.com/niccokunzmann/open-transifex-api/issues/1, to keep this issue clean. The user for https://transifex.quelltext.eu is open_api
who needs to be invited to use badges/open the API to the public.
@boru87 could you elaborate on this using English text? I have no idea how this related to the topic of the discussion. Also appearing here:
Asking for cleanup: https://github.com/boru87/Bitcoin-Newbie/issues/4#issue-435479639
I realize that you have this widget available: https://www.transifex.com/projects/p/seadroid/widgets/
Bt as I understand it, that's not in line with what maintainers expect of README badges.
Was thinking that it might be nice to have a badge per translation, like travis does. There is a "badges as a service" tool called shields.io that we could integrate with. It provides standard, high resolution SVG images for badges.
This is how it might look:
Or of course, there could be an overall badge per project, if your API provides that :)
Here's an example of an implementation: https://github.com/badges/shields/blob/0baa3209680628f6aa701876bef475b9ed30a4b3/server.js#L204-L245
Another possible impediment is that you require authentication for all API calls, even for those against public open source projects. This would probably be the call we'd need to use: http://docs.transifex.com/developer/api/translations
Might be able to feed img.shields.io a set of credentials to use. Not sure if there's precedent for that with others services integrated into shields. That would also likely bump against any API rate limits, should they exist.
Anyhow, food for thought. Just putting it out there :) I could provide some support, but likely wouldn't carry the whole effort, unfortunately