Bug 279540 - Localize can't read and crashed on tbx file.
Summary: Localize can't read and crashed on tbx file.
Status: RESOLVED FIXED
Alias: None
Product: lokalize
Classification: Applications
Component: glossary (show other bugs)
Version: 1.3
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: Nick Shaforostoff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-06 15:54 UTC by Rūdolfs Mazurs
Modified: 2011-08-15 18:04 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Latvian tbx glossary (527.78 KB, application/x-bzip)
2011-08-06 16:09 UTC, Rūdolfs Mazurs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rūdolfs Mazurs 2011-08-06 15:54:42 UTC
Version:           1.3 (KDE 4.7) (using KDE 4.7.0) 
OS:                Linux

The self made Latvian tbx glossary, that worked previously as expected, now crashes lokalize. At times, when it doesn't cause crash, no words appear in glossary pane.

Reproducible: Sometimes

Steps to Reproduce:
1) Download tbx file in attachment
2) Link it as projects glossary

Actual Results:  
No words in glossary pane, sometimes crashes

Expected Results:  
Translations to the words in strings should appear in glossary pane.
Comment 1 Rūdolfs Mazurs 2011-08-06 16:09:53 UTC
Created attachment 62622 [details]
Latvian tbx glossary
Comment 2 Nick Shaforostoff 2011-08-06 16:31:58 UTC
i believe you attached the wrong (.ksp) file
Comment 3 Rūdolfs Mazurs 2011-08-06 17:13:01 UTC
It seems bug tracker automatically and wrongly made a link to some random file. The real attachment is in Comment #1.
Comment 4 Nick Shaforostoff 2011-08-08 21:26:33 UTC
SVN commit 1245829 by shaforo:

BUG: 279540
support simple tig tags. the test file works now



 M  +75 -42    glossary.cpp  
 M  +6 -7      glossary.h  
 M  +2 -2      glossarywindow.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1245829
Comment 5 Nick Shaforostoff 2011-08-10 13:57:42 UTC
also make sure that termEntry tags are inside the <body> tag.

i found the <body> empty in the end of your document
Comment 6 Nick Shaforostoff 2011-08-15 10:24:35 UTC
SVN commit 1247343 by shaforo:

glossary:
support definitions for specific languages (inside <langSet>)
add + and - buttons for the term lists to make term addition and removal explicit for the user
fix indexing of glossary for glossary view
fix glossary restoration from disk
fix ctrl+l for glossary window (activates filter line)

also behave better when no spelldict is found (editor tooltip)

CCBUG: 279540


 M  +13 -1     common/languagelistmodel.cpp  
 M  +8 -1      common/languagelistmodel.h  
 M  +143 -64   glossary/glossary.cpp  
 M  +3 -2      glossary/glossary.h  
 M  +7 -6      glossary/glossaryview.cpp  
 M  +76 -24    glossary/glossarywindow.cpp  
 M  +19 -3     glossary/glossarywindow.h  
 M  +53 -5     glossary/termedit.ui  
 M  +1 -1      project/project.cpp  
 M  +7 -2      xlifftextedit.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1247343
Comment 7 Rūdolfs Mazurs 2011-08-15 18:04:34 UTC
Thanks for fixing it. I have informed the .tbx file author of the bug.