This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement merge translation from existing version: https://bugzilla.r…
…edhat.com/show_bug.cgi?id=1133989 Squashed commit of the following: commit 59b3e04 Merge: 7f09ae2 4ea3f29 Author: Alex Eng <aeng@redhat.com> Date: Tue Mar 17 15:47:28 2015 +1000 Merge branch 'integration/master' into rhbz1133989 Conflicts: zanata-war/src/main/resources/db/changelogs/db.changelog-3.7.xml commit 7f09ae2 Author: Alex Eng <aeng@redhat.com> Date: Tue Mar 17 13:51:51 2015 +1000 Limit to maintainer's projects to merge from in UI. commit 2e96c94 Author: Alex Eng <aeng@redhat.com> Date: Mon Mar 16 16:09:57 2015 +1000 Disable merge button if there's no version available to copy commit 8be5f36 Author: Alex Eng <aeng@redhat.com> Date: Mon Mar 16 13:07:07 2015 +1000 Update docs printscreen and messages commit f8680c0 Author: Alex Eng <aeng@redhat.com> Date: Mon Mar 16 11:23:42 2015 +1000 Add docs for merge-trans feature commit 1b6e2b2 Author: Alex Eng <aeng@redhat.com> Date: Mon Mar 16 06:43:19 2015 +1000 Fix unit test commit 4e7d7be Author: Alex Eng <aeng@redhat.com> Date: Sun Mar 15 14:43:26 2015 +1000 Fix load source versions for merge trans dialog commit 9e7c75d Merge: f7eaffb 541fc6c Author: Alex Eng <aeng@redhat.com> Date: Sun Mar 15 14:23:55 2015 +1000 Merge branch 'integration/master' into rhbz1133989 commit f7eaffb Author: Alex Eng <aeng@redhat.com> Date: Sun Mar 15 14:21:10 2015 +1000 Refactor and changes on PR review commit 6d4c388 Author: Alex Eng <aeng@redhat.com> Date: Fri Mar 13 16:38:32 2015 +1000 Fix unit test commit 0320132 Merge: f0419d1 baef61a Author: Alex Eng <aeng@redhat.com> Date: Fri Mar 13 15:59:58 2015 +1000 Merge branch 'integration/master' into rhbz1133989 commit f0419d1 Author: Alex Eng <aeng@redhat.com> Date: Fri Mar 13 15:29:04 2015 +1000 Fix checkstyle commit 16d58ba Author: Alex Eng <aeng@redhat.com> Date: Fri Mar 13 15:10:15 2015 +1000 Fixed project selector issue for merge trans commit 5d1ce6f Author: Alex Eng <aeng@redhat.com> Date: Thu Mar 12 15:57:35 2015 +1000 WIP: implement project selector for merge translation dialog commit fa50a89 Author: Alex Eng <aeng@redhat.com> Date: Thu Mar 12 14:09:04 2015 +1000 Refactor query, UI and test commit 43e9f07 Author: Alex Eng <aeng@redhat.com> Date: Wed Mar 11 18:32:42 2015 +1000 Fix preload of progressBar component commit 43bf35d Author: Alex Eng <aeng@redhat.com> Date: Wed Mar 11 16:02:20 2015 +1000 Rename js name unique commit d42b558 Author: Alex Eng <aeng@redhat.com> Date: Tue Mar 10 15:57:38 2015 +1000 Create loading component for copy actions commit 511ed10 Author: Alex Eng <aeng@redhat.com> Date: Tue Mar 10 15:26:42 2015 +1000 Create modal for merge-trans operations from version page commit c05f4e6 Author: Alex Eng <aeng@redhat.com> Date: Mon Mar 9 15:13:12 2015 +1000 Add unit test, fix shouldMerge to check for same content commit b806517 Author: Alex Eng <aeng@redhat.com> Date: Fri Mar 6 16:34:55 2015 +1000 WIP: add unit test for merge translation commit f870517 Author: Alex Eng <aeng@redhat.com> Date: Fri Mar 6 11:10:21 2015 +1000 Add unit test for merge translations commit fd06390 Author: Alex Eng <aeng@redhat.com> Date: Thu Mar 5 15:38:07 2015 +1000 Work in progress: add time log commit 16b295d Author: Alex Eng <aeng@redhat.com> Date: Thu Mar 5 15:04:49 2015 +1000 Implement merge translation from and to existing version: https://bugzilla.redhat.com/show_bug.cgi?id=1133989
- Loading branch information
Alex Eng
committed
Mar 17, 2015
1 parent
4ea3f29
commit bacdfcd
Showing
37 changed files
with
2,307 additions
and
264 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Merge translations from another project version | ||
|
||
Merge translations allows project maintainers to copy translations across different project version based on matching context. (See below for context matching rules) | ||
|
||
## Restrictions | ||
|
||
- This feature is only available to project maintainers. | ||
- Only translations that are in translated/approved state will be used. | ||
- Merge translation can only be run if there are no other copy operations in progress for the selected version, such as copy-trans or copy version. | ||
|
||
## Rule of which translations will be copied over | ||
<table class='docutils'> | ||
<tr> | ||
<td>**From**</td><td>**To**</td><td>**Copy?**</td> | ||
</tr> | ||
<tr> | ||
<td>fuzzy/untranslated</td><td>any</td><td>No</td> | ||
</tr> | ||
<tr> | ||
<td>different source text/document id/<br />resId/msgctxt/locale</td><td>any</td><td>No</td> | ||
</tr> | ||
<tr> | ||
<td>translated/approved</td><td>untranslated/fuzzy</td><td>Yes</td> | ||
</tr> | ||
<tr> | ||
<td>translated/approved</td><td>translated/approved</td><td>copy if `From` is newer and <br />`Keep existing translated/approved translations` is unchecked</td> | ||
</tr> | ||
</table> | ||
## Run Merge translations | ||
|
||
1. Login to Zanata. | ||
1. Select a project version you wish to copy translations to. | ||
1. Expand `More Action` menu on top right corner and click on `Merge Translations`. This action is only available if you are a maintainer of the project. | ||
<figure> | ||
<img alt="More action menu in project version page" src="images/version-more-action-menu.png" /> | ||
</figure> | ||
1. In displayed dialog, select the project-version you wish to copy translations from. | ||
<figure> | ||
<img alt="Merge translation dialog" src="images/version-merge-trans-dialog.png" /> | ||
</figure> | ||
1. If you do not want to overwrite translated/approved translations, ensure that `Keep existing translated/approved translations` is checked. If this option is not checked, translated/approved translations will be replaced with newer translated/approved translations if they are available. | ||
1. Click `Merge Translations` button to start the process. | ||
1. The progress of the merge process is shown by a progress bar on the version page. | ||
<figure> | ||
<img alt="Merge translation in progress" src="images/version-merge-trans-progress.png" /> | ||
</figure> | ||
|
||
## Cancel Merge translation | ||
**_Note: This will only stop additional translations being merged. Any translations that have already been merged will remain merged._** | ||
|
||
1. Go to the progress bar section in project version page. | ||
1. Click on the `Cancel` button on top right panel. | ||
<figure> | ||
<img alt="Cancel merge translation in progress" src="images/version-merge-trans-cancel.png" /> | ||
</figure> | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.