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

Non-git based components #2210

Closed
wichert opened this issue Sep 3, 2018 · 11 comments

Comments

@wichert
Copy link
Contributor

commented Sep 3, 2018

We have translatable content that is not tied to code, for example CMS-style content and email campaign content. Since weblate is a really good tool to handle translations, and are translators have experience with it we would like to use weblate to handle translations instead of trying to replicate parts of it. Currently we are doing that by automatically managing a git repository with a copy of our content, essentially doing a data-export on every change, and re-importing when we receive a webhook from github/bitbucket. I am wondering if it is possible to take out the git part of this? For example use a weblate API to directly push texts to weblate, along with a webhook from weblate so we can automatically receive updated translations or mark content as unusable if a translators flags text as needing review.

@nijel

This comment has been minimized.

Copy link
Member

commented Sep 3, 2018

The biggest problem here is missing API to do all this. Implementing simple backend with not VCS integration would be quite easy.

@wichert

This comment has been minimized.

Copy link
Contributor Author

commented Sep 4, 2018

The celery work you are doing would certainly be very useful for webhook delivery.

@nijel nijel added this to the 3.3 milestone Oct 5, 2018

@dragosv

This comment has been minimized.

Copy link

commented Oct 23, 2018

@nijel What are the missing API? Also, I see it being tagged for 3.3. Does that mean you are working on it?

@nijel

This comment has been minimized.

Copy link
Member

commented Oct 23, 2018

Not yet working, but I'd like to have it for 3.3. There needs to be way to upload new files to translate, that should be exposed in the API. The current upload interface merges content of uploaded file into current translation.

@nijel nijel removed this from the 3.3 milestone Nov 9, 2018

@dragosv

This comment has been minimized.

Copy link

commented Feb 22, 2019

@nijel What about a File based repository instead of Source Control (Git, Hg, Svn) ? Just pushing files into a folder then running wlc push and pull? As adding a Source Control is not needed. Not sure how should this new option be named.

@dragosv

This comment has been minimized.

Copy link

commented Feb 22, 2019

@nijel There is a similar concept in Pootle
http://docs.translatehouse.org/projects/pootle/en/stable-2.8.x/features/pootle_fs.html

What is a filesystem
A filesystem is actually itself a Pootle FS plugin. Currently two exist:

localfs - allowing synchronization with the filesystem on which Pootle is running
git - synchronization with a Git repository
You can write a plugin for any version control system, Pootle FS will ensure that the same commands and operations are used to ensure Pootle and your filesystem stay synchronized.

@nijel nijel added this to the 3.6 milestone Feb 22, 2019

@nijel

This comment has been minimized.

Copy link
Member

commented Feb 22, 2019

The wlc push and pull does push and pull from remote repository. There is no such thing for local one :-). That is really the missing part here - to implement support for replacing files by the ones uploaded (it doesn't matter whether by web or API).

I will look into this for the 3.6 release, the vcs requirement is really a blocker for some users.

@nijel nijel removed this from the 3.6 milestone Apr 2, 2019

@dragosv

This comment has been minimized.

Copy link

commented Apr 30, 2019

So why not go for a pootle like approach? I mean instead of pushing to git, put the files onto the local filesystem. Same for git pull. I am missing something?

@nijel

This comment has been minimized.

Copy link
Member

commented May 1, 2019

There is no problem with such approach, it just needs to be implemented.

The major missing parts:

  • Extend upload interface to allow to completely replace files
  • Extend component creation to allow zip upload with the initial files
  • Writing local vcs layer (to make implementation easier, it might be based on git internally, just not configure remotes and ignore pulls and pushes)

@nijel nijel removed the undecided label Jun 18, 2019

@nijel nijel added this to the 3.8 milestone Jun 18, 2019

nijel added a commit to nijel/weblate that referenced this issue Jun 19, 2019

Component: Select component creation style
First provide a selection of origin to create new component. Currently
only linked components are show, but more options to come.

Issue WeblateOrg#1697
Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jun 20, 2019

Component: Select component creation style
First provide a selection of origin to create new component. Currently
only linked components are show, but more options to come.

Issue WeblateOrg#1697
Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jun 20, 2019

Component: Select component creation style
First provide a selection of origin to create new component. Currently
only linked components are show, but more options to come.

Issue WeblateOrg#1697
Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jun 20, 2019

Component: Select component creation style
First provide a selection of origin to create new component. Currently
only linked components are show, but more options to come.

Issue WeblateOrg#1697
Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jun 20, 2019

Component: Select component creation style
First provide a selection of origin to create new component.

- create from scratch
- create from existing component
- create on additional branch

Fixes WeblateOrg#1697
Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jun 20, 2019

Component: Select component creation style
First provide a selection of origin to create new component.

- create from scratch
- create from existing component
- create on additional branch

Fixes WeblateOrg#1697
Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jun 20, 2019

Component: Select component creation style
First provide a selection of origin to create new component.

- create from scratch
- create from existing component
- create on additional branch

Fixes WeblateOrg#1697
Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jun 20, 2019

Component: Select component creation style
First provide a selection of origin to create new component.

- create from scratch
- create from existing component
- create on additional branch

Fixes WeblateOrg#1697
Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jun 21, 2019

Component: Select component creation style
First provide a selection of origin to create new component.

- create from scratch
- create from existing component
- create on additional branch

Fixes WeblateOrg#1697
Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jun 23, 2019

Component: Multiple creation styles
First provide a selection of origin to create new component.

- create from scratch
- create from existing component
- create on additional branch

Fixes WeblateOrg#1697
Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jun 23, 2019

Component: Multiple creation styles
First provide a selection of origin to create new component.

- create from scratch
- create from existing component
- create on additional branch

Fixes WeblateOrg#1697
Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jun 23, 2019

Component: Multiple creation styles
First provide a selection of origin to create new component.

- create from scratch
- create from existing component
- create on additional branch

Fixes WeblateOrg#1697
Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jun 23, 2019

Component: Multiple creation styles
First provide a selection of origin to create new component.

- create from scratch
- create from existing component
- create on additional branch

Fixes WeblateOrg#1697
Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jun 24, 2019

Component: Multiple creation styles
First provide a selection of origin to create new component.

- create from scratch
- create from existing component
- create on additional branch

Fixes WeblateOrg#1697
Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jun 24, 2019

Component: Multiple creation styles
First provide a selection of origin to create new component.

- create from scratch
- create from existing component
- create on additional branch

Fixes WeblateOrg#1697
Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jun 28, 2019

Component: Multiple creation styles
First provide a selection of origin to create new component.

- create from scratch
- create from existing component
- create on additional branch

Fixes WeblateOrg#1697
Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

@nijel nijel self-assigned this Jul 25, 2019

nijel added a commit to nijel/weblate that referenced this issue Jul 25, 2019

Translations: Add support for replacing file content with uploaded
This is necessary for VCS less operation, but might be useful in other
cases as well.

Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>
@nijel nijel referenced this issue Jul 25, 2019
4 of 4 tasks complete
@nijel

This comment has been minimized.

Copy link
Member

commented Jul 25, 2019

Work in progress code for this feature is in #2907

nijel added a commit to nijel/weblate that referenced this issue Jul 25, 2019

Translations: Add support for replacing file content with uploaded
This is necessary for VCS less operation, but might be useful in other
cases as well.

Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jul 25, 2019

VCS: Add local storage support
This can be used for VCS less operation of Weblate.

Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jul 25, 2019

Translations: Add support for replacing file content with uploaded
This is necessary for VCS less operation, but might be useful in other
cases as well.

Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jul 25, 2019

VCS: Add local storage support
This can be used for VCS less operation of Weblate.

Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jul 25, 2019

Component: Add support for VCS less operation
The initial import is done from zip file, then individual files can be
replaced.

Fixes WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jul 25, 2019

Component: Add support for VCS less operation
The initial import is done from zip file, then individual files can be
replaced.

Fixes WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jul 25, 2019

Translations: Add support for replacing file content with uploaded
This is necessary for VCS less operation, but might be useful in other
cases as well.

Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jul 25, 2019

VCS: Add local storage support
This can be used for VCS less operation of Weblate.

Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jul 25, 2019

Component: Add support for VCS less operation
The initial import is done from zip file, then individual files can be
replaced.

Fixes WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jul 25, 2019

Translations: Add support for replacing file content with uploaded
This is necessary for VCS less operation, but might be useful in other
cases as well.

Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jul 25, 2019

VCS: Add local storage support
This can be used for VCS less operation of Weblate.

Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jul 25, 2019

Component: Add support for VCS less operation
The initial import is done from zip file, then individual files can be
replaced.

Fixes WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jul 26, 2019

Translations: Add support for replacing file content with uploaded
This is necessary for VCS less operation, but might be useful in other
cases as well.

Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jul 26, 2019

VCS: Add local storage support
This can be used for VCS less operation of Weblate.

Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jul 26, 2019

Component: Add support for VCS less operation
The initial import is done from zip file, then individual files can be
replaced.

Fixes WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jul 26, 2019

VCS: Add local storage support
This can be used for VCS less operation of Weblate.

Issue WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit to nijel/weblate that referenced this issue Jul 26, 2019

Component: Add support for VCS less operation
The initial import is done from zip file, then individual files can be
replaced.

Fixes WeblateOrg#2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit that referenced this issue Jul 26, 2019

Translations: Add support for replacing file content with uploaded
This is necessary for VCS less operation, but might be useful in other
cases as well.

Issue #2210

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit that referenced this issue Jul 26, 2019

VCS: Add local storage support
This can be used for VCS less operation of Weblate.

Issue #2210

Signed-off-by: Michal Čihař <michal@cihar.com>

@nijel nijel closed this in 07f5be8 Jul 26, 2019

@nijel

This comment has been minimized.

Copy link
Member

commented Jul 26, 2019

Thank you for your report, the issue you have reported has just been fixed.

  • In case you see problem with the fix, please comment on this issue.
  • In case you see similar problem, please open separate issue.
  • If you are happy with the outcome, consider supporting Weblate by donating.

nijel added a commit that referenced this issue Jul 26, 2019

Component: Add support for starting translation from scratch
It creates local fs component with monolingual gettext, users can then
add translation units.

Issue #2210

Signed-off-by: Michal Čihař <michal@cihar.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.