Version: 1.0 (using 4.3.00 (KDE 4.3.0), Mandriva Linux release 2009.1 (Official) for i586) Compiler: gcc OS: Linux (i686) release 2.6.29.6-desktop-1mnb Lokalize doesn’t show statistics for all files. For some, the numbers are all 0, and the background is grey. See the attached screenshot for an example (look at kttsd.po). This bug is observed in KDE 4.3. I believe a similar bug was ‘fixed’ in earlier versions, but it doesn’t look it is completely fixed yet.
Created attachment 36009 [details] Screenshot
Created attachment 36102 [details] Example PO file with statistics problem Here’s an example. No statistics is displayed for the attached file. However, if I delete line 3320 and to the end, the statistics is shown. (If I delete from 3328 and to the end, the statistics is not shown.) Here is line 3320 and the following few lines: #: ../printer/printerdrake.pm:5027 #, c-format msgid "" "The memory card readers in your printer can be accessed like a usual USB " "mass storage device. " msgstr "" "Du kan bruka minnekortlesaren i skrivaren som ei vanleg USB-basert " "lagringseining. "
Ignore the comment about 3328. I accidently attached a file with that portion removed. But the file should still show the problem.
I confirm this bug fully on openSUSE 11.1 x86_64. (And there are a lot of files with "zero"-statistics in openSUSE translation repo) Obviously, Nick is kinda busy these days, can't get a note from him...
Current bugs seemed to be for large files.
Not always true. One of my "zero" files is only 9701 bytes long...
Created attachment 38328 [details] Screenshot 2 I placed attached file 36102 (printerdrake.po) into l10n-kde4/ru/messages (so that it is shown in my current project) and the stats is shown correctly. my system is debian, kde 4.3.2
Well, it has become even worse - now the files before grayed out and without statistics in project overview are not shown at all. See also BR https://bugs.kde.org/show_bug.cgi?id=214571 . And "now" means: KDE 4.3.73 (KDE 4.3.73 (KDE 4.4 >= 20091026)). For example, digikam.po is not seen in project overview but can be opened with File->Open; msgfmt shows correct statistics (and no errors which may be cause of not showing in Lokalize).
can you show me output of xmlindexer <'bad' .po file> | grep translation.total ?
for me, in the case mentioned digikam, is is: $ xmlindexer digikam.po | grep translation.total <value name='translation.total'>3541</value> xmlindexer: symbol lookup error: /usr/lib/libldap-2.4.so.2: undefined symbol: ldap_int_tls_destroy And: $ msgfmt -cv digikam.po 3531 tõlgitud teadet, 9 kahtlast tõlget, 1 tõlkimata teade. So, it seems to be right but Lokalize just doesn't show digikam (and many files more, including such important as kdelibs and kio) at all...
And as I said, I can File->Open them in Lokalize and Lokalize shows correct statistics in status bar - just Project Overview doesn't show them.
i have just seen the problem on a notebook, so I now got the place to test my kdelibs patch, so I expect to solve the problem in few days.
you can try replacing your /usr/lib/libkio.so.5.3.0 by the one from http://lokalize.program.net.ua/data/nick/l.7z
i posted the patch to RB: http://reviewboard.kde.org/r/2215/
*** Bug 214571 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 192927 ***
SVN commit 1053062 by shaforo: BUG: 203152 Don't impose limit on size of files being indexed via KFileMetaInfo c'tor, when KFileMetaInfo::WhatFlags w parameter of KFileMetaInfo c'tor is KFileMetaInfo::Everything. This is needed for Lokalize to show statsics for gettext .po files whose size is more than 64k CCMAIL: jos@vandenoever.info M +14 -5 kfilemetainfo.cpp M +2 -0 kfilemetainfo.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1053062
Does this patch applied in KDE 4.3.4? I upgraded my KDE to 4.3.4 from MIB Mandriva packages, but this problem still occurred. Or do I have to wait for KDE 4.4?
no, it's for 4.4. I'm afraid of making changes to the branch ;)
*** Bug 233713 has been marked as a duplicate of this bug. ***