Bug 292400 - Searches will only find texts in the first pluralis form when there is one than one
Summary: Searches will only find texts in the first pluralis form when there is one th...
Status: RESOLVED FIXED
Alias: None
Product: lokalize
Classification: Applications
Component: general (show other bugs)
Version: 1.2
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Simon Depiets
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-25 16:18 UTC by Byrial Jensen
Modified: 2018-09-05 01:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Byrial Jensen 2012-01-25 16:18:17 UTC
Version:           1.2 (KDE 4.6) (using KDE 4.7.4) 
OS:                Linux

Searches will only find a translation unit with pluralis forms if the search matches text in the first pluralis form.

The translation unit will not be found if the search string only matches the second pluralis form, but not the first. This applies both to the source text and the translated text.


Reproducible: Always

Steps to Reproduce:
Load a po-file with pluralis form. Search for some text which only occur in the second pluralis form for a translation unit, but not in the first translation unit.

Actual Results:  
The matching translation unit is not found by the search

Expected Results:  
The matching translation unit should have been found by the search

OS: Linux (x86_64) release 3.0.0-15-generic
Compiler: gcc
Comment 1 Nick Shaforostoff 2012-01-25 20:18:39 UTC
you're talking about filter field in translation units toolview?
Comment 2 Byrial Jensen 2012-01-25 20:34:45 UTC
Yes, I am talking about the filter function. Sorry for for being unclear.
Comment 3 Simon Depiets 2018-09-05 01:09:51 UTC
Git commit 1f9847b82fd988433e3b854a36cd002f908e0cdc by Simon Depiets.
Committed on 05/09/2018 at 01:09.
Pushed by sdepiets into branch 'master'.

Search filter will now find plurals + they are displayed

Summary:
https://bugs.kde.org/show_bug.cgi?id=292400

{F6234389}

Reviewers: #localization

Tags: #localization

Differential Revision: https://phabricator.kde.org/D15262

M  +16   -0    src/catalog/catalog.cpp
M  +2    -0    src/catalog/catalog.h
M  +2    -0    src/catalog/catalogstorage.h
M  +4    -0    src/catalog/gettext/catalogitem.cpp
M  +1    -0    src/catalog/gettext/catalogitem.h
M  +32   -0    src/catalog/gettext/gettextstorage.cpp
M  +2    -0    src/catalog/gettext/gettextstorage.h
M  +9    -0    src/catalog/ts/tsstorage.cpp
M  +2    -0    src/catalog/ts/tsstorage.h
M  +8    -0    src/catalog/xliff/xliffstorage.cpp
M  +2    -0    src/catalog/xliff/xliffstorage.h
M  +5    -4    src/cataloglistview/catalogmodel.cpp
M  +3    -4    src/tm/jobs.cpp

https://commits.kde.org/lokalize/1f9847b82fd988433e3b854a36cd002f908e0cdc