Bug 411490

Summary: Regexp with "$" in quick search does not find match in msgstr[1]
Product: [Applications] lokalize Reporter: Alexander Potashev <aspotashev>
Component: editorAssignee: Simon Depiets <sdepiets>
Status: REPORTED ---    
Severity: normal CC: shafff
Priority: NOR    
Version First Reported In: 19.04.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alexander Potashev 2019-09-01 10:21:29 UTC
SUMMARY
Regexp quick search does not search in msgstr[1].

I have this string in Russian kunitconversion5.po:

  #: power.cpp:149
  #, kde-format
  msgctxt "amount in units (integer)"
  msgid "%1 watt"
  msgid_plural "%1 watts"
  msgstr[0] "%1 ватт"
  msgstr[1] "%1 ватта"
  msgstr[2] "%1 ватт"
  msgstr[3] "%1 ватт"

Lokalize quick search in "Translation Units" panel finds it with regexp "ватт$" or "ватта", but doesn't find it with regexp "ватта$". I think it should also find this message with "ватта$".


SOFTWARE/OS VERSIONS
Operating System: Fedora 30
KDE Plasma Version: 5.15.5
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.4
Kernel Version: 5.1.16-300.fc30.x86_64
OS Type: 64-bit
Processors: 2 × Intel® Celeron® CPU B800 @ 1.50GHz
Memory: 3,8 ГиБ

lokalize 19.07.70 (probably built from Git master some time ago).

ADDITIONAL INFORMATION