After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 571713 - The search replace doesn work fine
The search replace doesn work fine
Status: RESOLVED OBSOLETE
Product: gtranslator
Classification: Other
Component: general
HEAD
Other All
: Normal normal
: ---
Assigned To: gtranslator-maint
gtranslator-maint
Depends on:
Blocks:
 
 
Reported: 2009-02-14 12:02 UTC by Jorge González
Modified: 2019-02-27 15:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for the search&replace function (24.41 KB, patch)
2013-04-23 07:09 UTC, Mickael Albertus
needs-work Details | Review

Description Jorge González 2009-02-14 12:02:40 UTC
Since the original strings are not editable, the replace dialog should only select the translated strings.

Plus, sometimes it doesn't select/highligh the expressions properly: this is, when there are at least two (only tested with two) strings to replace in the same msgid or msgstr, the second one is usually not selected (use the Search button).
Comment 1 therese67530 2012-11-24 19:09:38 UTC
Hello,

This bug isn't dead although it's very old. I have exactly the same problem with version 2.91.4 of gtranslator. Besides, the search function is _very_ slow with large files.

Best regards,
Therese
Comment 2 therese67530 2012-11-24 20:52:31 UTC
I just tested the search function with 4 occurrences of the keyword “copyright” in the same string (# 330 from http://www.gnu.org/licenses/po/gpl-faq.fr.po ):

“Only the copyright holders for the program can legally authorize this exception. If you wrote the whole program yourself, then assuming your employer or school does not claim the copyright, you are the copyright holder—so you can authorize the exception. But if you want to use parts of other GPL-covered programs by other authors in your code, you cannot authorize the exception for them. You have to get the approval of the copyright holders of those programs.”

Search in the original text only:
The first occurrence is highlighted. The second one is apparently found but not highlighted. Repeating the search doesn't find anything more in string 330, but highlights the first occurrence of “copyright” in string 340.

Search in both the original and the translated texts:
Instead of finding the third occurrence in the original string, it highlights the first occurrence in the translated string.

Therese
Comment 3 Daniel Mustieles 2012-11-25 10:11:03 UTC
Yes, this bug is atill alive in the last version. We are working on it to get it fixed. I hope this issue will be solved for the next release.

When we have a fix for it, we will close all the related bugs, so you will be notied about it.

BTW, many thanks for your feedback :)
Comment 4 Mickael Albertus 2013-04-23 07:09:32 UTC
Created attachment 242193 [details] [review]
Patch for the search&replace function

I try to fix this bug. I hope it could help!
Comment 5 therese67530 2013-05-27 15:07:34 UTC
(In reply to comment #4)
> Created an attachment (id=242193) [details] [review]
> Patch for the search&replace function
> 
> I try to fix this bug. I hope it could help!

Many thanks from a basic user!  :)
I hope this patch will get accepted soon.
Comment 6 Ignacio Casal Quinteiro (nacho) 2013-05-27 15:10:18 UTC
Review of attachment 242193 [details] [review]:

Just one minor comment, gtranslator uses only spaces and you seem to mix some tabs around, please use just 2 spaces indentation. Also put the correct mail for the commit message.
Comment 7 Alexandre Franke 2016-12-04 22:21:58 UTC
Mickael, can you please update the patch?
Comment 8 André Klapper 2019-02-27 15:15:46 UTC
We are mass-closing old gtranslator issues as the latest versions of gtranslator (3.30 or later) should fix most of the reported problems and as there is unfortunately no capacity to retest all of them separately.
https://mail.gnome.org/archives/desktop-devel-list/2019-February/msg00059.html

If the issue described in this report still happens in gtranslator version 3.30 or later, please file a new ticket under https://gitlab.gnome.org/GNOME/gtranslator/issues/ - thanks for your understanding!

We are sorry that your report was not handled / fixed after you reported it - many free and open source software projects receive more bug reports and feature requests than they have developers who have free time to work on them.
If you would like to get involved and contribute on gtranslator code, please check https://wiki.gnome.org/Git/Developers