-
Notifications
You must be signed in to change notification settings - Fork 689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update screenshots on Weblate #3959
Comments
here's the API endpoint used to update the screenshots: https://docs.weblate.org/en/latest/api.html#post--api-screenshots-(int-pk)-file- |
I'll take a stab at investigating this further during the 7/23-8/5 sprint, will loop in @rmol before or after his PTO. |
Here's how I would approach this:
Does that make sense at a high level? If so, @rmol, I would be happy to collaborate with you on getting this done. |
Yeah, I think this is a pragmatic approach. I had hoped to find a reliable way to avoid the manual work of associating source strings and screenshots, but I haven't, and given the rate of change, I'm not sure it'd be worth the effort. I think it will be easy enough to keep on top of this as part of the localization manager duties, once we finish this initial push. I'd suggest we just clean out the existing screenshots and upload the new set named after the tests. It should at least be possible to write a quick script to list source strings grouped by location in the source code, which would make the initial association work more efficient. |
That makes sense. Just took a spin and I don't see any that can't be safely deleted and re-uploaded from the automated tests. I'd like to test the upload process itself in the sandbox, will discuss the best approach to doing so at at infra sync tomorrow.
That would indeed be super-helpful :-). Do you want to take a stab at that part, while I poke at the upload tooling? |
Screenshots have been uploaded using the tool merged in #5450: I've also taken a first pass through updating associations, which you can see here (use the "<" ">") to navigate between strings with screenshots) I've also posted a note to the forum, here: We should now be able to update these with each release. I'll file a follow-up issue to clarify i18n docs, and am closing this one. |
Description
One thing we forgot about during the Weblate transition was the updating of the screenshots shown in the "Source Information" panel on the right hand side of each individual string translation page. The screenshots are no longer present:
We need to investigate and figure out how to update these and do so (one can do it through the admin interface but ideally we'd automate this, note there is an API endpoint for the screenshot). Relevant part of Weblate docs:
https://docs.weblate.org/en/latest/admin/translating.html#screenshots
User Stories
As a SecureDrop translator, I want a screenshot of the application when translating a particular string so I understand the context.
The text was updated successfully, but these errors were encountered: