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

            Bug ID: 520351
           Summary: Glossary term editor uses system language, not project
                    target language
    Classification: Applications
           Product: lokalize
      Version First 26.04.1
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: glossary
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected], [email protected]
  Target Milestone: ---

Created attachment 192420
  --> https://bugs.kde.org/attachment.cgi?id=192420&action=edit
Left side is showing my target language, right side is treating en_US as target
language

DESCRIPTION
The term editor (right half) of the glossary editor would only show target
terms in the system locale, not the project's actual target language.

STEPS TO REPRODUCE
1. Create a project and set its target language to something that isn't your
system language
2. *Close and reopen Lokalize*. This bug is caused by stale information.
3. Go to the glossary view and add an entry.

OBSERVED RESULT
In the glossary editor, the term editor would show the newly added entry. This
is in the system locale.
The left side (the glossary terms list) would show nothing.
Opening a file and editing a string that matches this glossary item, the target
string of the glossary term would not be shown because it's the wrong language.

If you open the glossary file itself, you will notice the xml:lang that isn't
the source language would be the system language, instead of the project's
target language.

EXPECTED RESULT
Glossary editor uses project's target language everywhere.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.6.5
KDE Frameworks Version: 6.26.0
Qt Version: 6.11.1
Kernel Version: 6.18.31-1-lts (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 2600 Six-Core Processor
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: Intel® Arc

ADDITIONAL INFORMATION
I've already debugged this and have a patch, I'm entering this so that the PR
would be less cramped

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

Reply via email to