Bug 214571 - Project Overview misses one file per directory
Summary: Project Overview misses one file per directory
Status: RESOLVED DUPLICATE of bug 203152
Alias: None
Product: lokalize
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Nick Shaforostoff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-14 20:34 UTC by Andrew Coles
Modified: 2009-11-19 23:58 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Coles 2009-11-14 20:34:36 UTC
Version:           latest SVN (using Devel)
Compiler:          g++ (Ubuntu 4.4.1-4ubuntu8) 4.4.1 
OS:                Linux
Installed from:    Compiled sources

When looking at the Project Overview, one file is omitted out of each directory listed, as if it wasn't actually there on disk.  For instance, looking in 'en_GB/messages/qt', the file 'kdeqt.po' is not show; or in 'en_GB/messages/playground-network', the file 'smb4k.po' is not shown.
Comment 1 Nick Shaforostoff 2009-11-14 20:53:49 UTC
i don't have this problem on my system.
do you have l10n-kde4/templates folder checked out?
which kdelibs version do you use? (mine is distro-shipped 4.3.2)
Comment 2 Andrew Coles 2009-11-14 22:20:00 UTC
Yes, I have templates checked out.  kdelibs is version 4.3.3 from kubuntu backports.  I'll try it against kdelibs from trunk, in case it's a regression in 4.3.3.
Comment 3 Andrew Coles 2009-11-14 22:25:08 UTC
Still happens against trunk.  The kDebug output includes:

lokalize(3763)/KFileMetaInfo KFileMetaInfoPrivate::init: KUrl("file:///media/disk/kde4/src/l10n-kde4/en_GB/messages/qt/phonon_gstreamer.po")                                        
lokalize(3763)/KFileMetaInfo KFileMetaInfoPrivate::init: KUrl("file:///media/disk/kde4/src/l10n-kde4/en_GB/messages/qt/kdeqt.po")                                                   
lokalize(3763)/KFileMetaInfo KFileMetaInfoPrivate::init: KUrl("file:///media/disk/kde4/src/l10n-kde4/en_GB/messages/qt/phonon-xine.po")                                             
lokalize(3763)/KFileMetaInfo KFileMetaInfoPrivate::init: KUrl("file:///media/disk/kde4/src/l10n-kde4/en_GB/messages/qt/desktop_phonon.po")                                          
lokalize(3763)/KFileMetaInfo KFileMetaInfoPrivate::init: KUrl("file:///media/disk/kde4/src/l10n-kde4/en_GB/messages/qt/libphonon.po")     

...for the messages/qt folder, so it is reading meta information for five files in the folder; but only four of them are actually listed (in this case, kdeqt is omitted entirely).
Comment 4 Andrew Coles 2009-11-16 00:45:41 UTC
Okay, I think I know a bit more about what is going on:

- Lokalize from KDE 4.3.3 lists all the files, then gradually fetches stats.  If the stats can't be worked out for a file, it's marked in grey.

- Lokalize from trunk gradually fetches stats behind the scenes, and only lists each file once its stats have been calculated.  *However*, if a files stats can't be worked out, it is never displayed.
Comment 5 Nick Shaforostoff 2009-11-16 01:12:22 UTC
so the actual request should be to return displaying of files for which strigi analyzer couldn't calculate stats?
Comment 6 Andrew Coles 2009-11-16 01:29:14 UTC
Yes, only for .po or .pot files, but that would be great :).
Comment 7 Nick Shaforostoff 2009-11-16 02:17:09 UTC
xmlindexer messages/qt/kdeqt.po  | grep translation.total
returns duplicated keys:
  <value name='translation.total'>1220</value>
  <value name='translation.total'>0</value>
(one is obviously erroneous one)
i suppose that on your system the order is reversed, so Lokalize gets zero values.

unfortunately i don't know how to deal with this. maybe strigi guys could help...
Comment 8 Nick Shaforostoff 2009-11-19 23:58:25 UTC

*** This bug has been marked as a duplicate of bug 203152 ***