Bug 1000886 - Search and Replace on source says "Replaced x with y" when nothing was done
Summary: Search and Replace on source says "Replaced x with y" when nothing was done
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Zanata
Classification: Retired
Component: Component-Logic
Version: 3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: zanata-dev-internal
QA Contact: Zanata-QA Mailling List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-26 03:50 UTC by Damian Jansen
Modified: 2014-07-24 03:45 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-07-24 03:45:28 UTC
Embargoed:


Attachments (Terms of Use)

Description Damian Jansen 2013-08-26 03:50:42 UTC
Description of problem:
Performing a project-wide search and replace where source documents are the only matches shows "[13:19:20] Replaced "word" with "replaceword" in <number> text flows.  Curiously, inspection of these source-target pairs shows the user has created an "untranslated version".

Version-Release number of selected component (if applicable):
3.0

How reproducible:
Moderate, consistent

Steps to Reproduce:
1. Go to any project translation editor
2. Click on the magnifying glass
3. Enter a word into the Search input that exists in the project
4. Click the select all checkbox
5. Enter some word into the Replace input
6. Press Replace

Actual results:
After a few seconds, the logs indicate the words were replaced.

Expected results:
It should indicate no words were replaced.

Additional info:

Comment 1 David Mason 2013-08-26 05:20:50 UTC
This may also cause the use to create a new revision on matches that were translated but did not contain the matching word in the translation, or when the replacement term is the same as the search term. These scenarios should be considered when addressing this bug.

Comment 2 Damian Jansen 2014-07-24 03:45:28 UTC
Changed at some point, the message "No replacements to make" is displayed.


Note You need to log in before you can comment on or make changes to this bug.