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

VCS: Repository branch selector #12487

Open
lars3141 opened this issue Sep 13, 2024 · 1 comment
Open

VCS: Repository branch selector #12487

lars3141 opened this issue Sep 13, 2024 · 1 comment

Comments

@lars3141
Copy link

Describe the problem

For some features, new string are introduced. These features are developed on separate feature branches, which will also include the newly developed strings. In some cases, we want to edit the new strings already in the feature branch before it is merged. Weblate does currently not have access to these strings because they will not be available in the repository branch.

Describe the solution you would like

For our purposes, a workflow, which can be triggered by the user, would solve the issue: A repository branch selector, which has the following functionality:

  • give a dropdown of all available branches (optional) alternatively a text field
  • upon confirmation, the repository branch would be changed and the Weblate repository would be reset
  • due to the danger potential of this, the user would be asked to confirm the switch. All not committed changes would need to be committed and pushed.

We understand that this feature heavily alters the way Weblate interacts with repositories. In a way, it makes the local Weblate Repo less relevant. Many issues arise if a bigger number of translators work on the same project. We would therefore to make this feature only accessible via the configuration files.

Describe alternatives you have considered

No response

Screenshots

No response

Additional context

No response

@nijel
Copy link
Member

nijel commented Sep 20, 2024

You can already choose "Additional branch" when creating a new component, and it will duplicate the component but for a selected branch. This is definitely a safer approach to dealing with a feature branches than changing the main component as you propose. See also https://docs.weblate.org/en/latest/admin/projects.html#adding-translation-projects-and-components

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants