Bug 513766 - Can't create glossary entries with Lokalize
Summary: Can't create glossary entries with Lokalize
Status: CONFIRMED
Alias: None
Product: lokalize
Classification: Applications
Component: glossary (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Finley Watson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-24 05:50 UTC by Charlotte
Modified: 2025-12-24 12:43 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charlotte 2025-12-24 05:50:32 UTC
SUMMARY
I can't get Lokalize's glossary tool to add any terms. When I press any of the add buttons, any text I've entered into the synonyms or definitions fields gets cleared, and the glossary isn't modified.

STEPS TO REPRODUCE
1.  Open Lokalize
2.  Open the glossary with "Tools>Glossary"
3.  Attempt to add a term

OBSERVED RESULT
The term entered is cleared and nothing is added.

EXPECTED RESULT
The glossary is updated with the entered term.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.21.0
Qt Version: 6.10.1
Kernel Version: 6.18.2-arch2-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × AMD Ryzen 7 7800X3D 8-Core Processor
Memory: 34 GB of RAM (32.7 GB usable)
Graphics Processor 1: NVIDIA GeForce RTX 4060/PCIe/SSE2
Graphics Processor 2: NVIDIA GeForce RTX 4060/PCIe/SSE2
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7E26
System Version: 1.0

ADDITIONAL INFORMATION
This has apparently been an issue for a while, and has been reported back in August. https://discuss.kde.org/t/how-do-i-add-a-glossary-entry-in-lokalize/38711
Also have a report of another person experiencing this. https://mail.kde.org/pipermail/kde-i18n-doc/2025-December/003120.html
Comment 1 AlexB 2025-12-24 11:58:54 UTC
It looks like Lokalize is not able to create a new Glossary. With existing one it works fine.

Workaround would be:

1. While creating a new project in Lokalize some project fields are prefilled. Also Glossary path is prefilled with an absolute path and pointing to a file named "terms.tbx". But if you check inside of this path for this file, you will not find it.

2. Creating an empty file "terms.tbx" e. g. by command "touch terms.tbx" will not help. Additionally you have to put following content into this file and save it:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE martif PUBLIC 'ISO 12200:1999A//DTD MARTIF core (DXFcdV04)//EN' 'TBXcdv04.dtd'>
<martif type="TBX" xml:lang="en">
  <martifHeader>
    <fileDesc>
      <titleStmt>
        <title>Your Team Glossary</title>
      </titleStmt>
    </fileDesc>
    <encodingDesc>
      <p type="DCSName">SYSTEM "TBXDCSv05b.xml"</p>
    </encodingDesc>
  </martifHeader>
  <text>
    <body>
    </body>
  </text>
</martif>

3. Now just close and reopen Lokalize project and your Glossary will work!
Comment 2 Charlotte 2025-12-24 12:43:22 UTC
Adding the glossary file manually fixes the issue. Don't know why it wasn't created by lokalize, I didn't get any errors about it when I created the project or tried to use it.