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

            Bug ID: 494500
           Summary: Catalog::altTrans() / m_storage sometimes filled with
                    repeat entry
    Classification: Applications
           Product: lokalize
           Version: 24.08.2
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: translation memory
          Assignee: sdepi...@gmail.com
          Reporter: fi...@tutanota.com
                CC: aa...@kde.org, sha...@ukr.net
  Target Milestone: ---

SUMMARY
Typically the Alternative Translations window shows 1 or sometimes 2 entries.
When the entry shown is from the alternative translation file (e.g. a different
language entry to the current translation language), the option to enter the
ATM entry text is shown as Alt+1 etc. but sometimes the CatalogStorage
m_storage provided by catalog.h has an entry already and then in catalop.cpp
Catalog::altTrans() a seemingly identical entry is added. This is happening
with .po files, and causes the entry in the ATM to display with the keyboard
shortcut Alt+2 even though it's the first entry, because the shortcut number is
generated based on the current loop in alttransview.cpp AltTransView::process()
and the first entry was skipped.

STEPS TO REPRODUCE
1. Set up alternative translations file in project settings.
2. Open a file with related entries from the alternative translations file.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to