Skip to content
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

let Weblate pick up screenshots from the repository #6968

Open
cfm opened this issue Oct 2, 2023 · 7 comments
Open

let Weblate pick up screenshots from the repository #6968

cfm opened this issue Oct 2, 2023 · 7 comments
Labels
blocked on upstream i18n Anything related to translation or internationalization of SecureDrop needs/discussion queued up for discussion at future team meeting. Use judiciously.

Comments

@cfm
Copy link
Member

cfm commented Oct 2, 2023

Description

As of Weblate 4.18, Weblate can now detect screenshots by mask in the repository linked to a translation component.

Pro: Something else (securedrop/upload-screenshots.py) to delete!

Con: Screenshots would have to live in this repository.

How will this impact SecureDrop users?

No user-facing implications.

How would this affect SecureDrop's threat model?

No threat-model implications, except in the usual sense that code you can delete doesn't have bugs anymore. ;-)

User Stories

As a maintainer, I want to continue offloading as many scripted functions as possible to Weblate.

@cfm cfm added i18n Anything related to translation or internationalization of SecureDrop needs/discussion queued up for discussion at future team meeting. Use judiciously. labels Oct 2, 2023
@legoktm
Copy link
Member

legoktm commented Oct 3, 2023

Con: Screenshots would have to live in this repository.

Is it possible to point weblate to the docs repo, where many/some of the screenshots already exist?

@cfm
Copy link
Member Author

cfm commented Oct 3, 2023 via email

@zenmonkeykstop
Copy link
Contributor

Any chance we could git-submodule it in?

@cfm
Copy link
Member Author

cfm commented Oct 3, 2023

Weblate won't follow submodules, so we'd have to do:

securedrop-docs/      # repository
    securedrop/       # submodule
        screenshots/  # directory

Would that be acceptable? Most contributors would never have to do the git submodule update --init dance. Only we and CI would have to, in order to update and fetch screenshots, respectively. And Weblate would receive them directly in securedrop.

@legoktm
Copy link
Member

legoktm commented Oct 4, 2023

My concern actually isn't the duplication, it's that we're going to be adding more binary assets to the SD repo adds up when cloning on Tails, etc. (And they live in the repo's .git forever, even when replaced)

Does weblate support Git LFS? Then we could store the screenshots as LFS files, but have people on Tails clone without LFS, so they only get the tiny stubs and not full images.

@legoktm
Copy link
Member

legoktm commented Oct 4, 2023

But also +1 to getting rid of upload-screenshots and using weblate functionality instead, its one of those weird things that requires special casing (e.g. in securedrop/debian/rules)

@cfm
Copy link
Member Author

cfm commented Oct 11, 2023

No Git LFS support, alas. I've filed WeblateOrg/weblate#10164 suggesting three different approaches that would work for our constraints here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked on upstream i18n Anything related to translation or internationalization of SecureDrop needs/discussion queued up for discussion at future team meeting. Use judiciously.
Projects
None yet
Development

No branches or pull requests

3 participants