Bug 122157 - File extension *.pot means mostly "Power Point Template" instead of "GNU Gettext Message Catalogue"
Summary: File extension *.pot means mostly "Power Point Template" instead of "GNU Gett...
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: 3.5
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-17 14:31 UTC by Andreas Pietzowski
Modified: 2008-05-19 16:02 UTC (History)
2 users (show)

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 Andreas Pietzowski 2006-02-17 14:31:02 UTC
Version:           3.5 (using KDE 3.5.0 Level "a" , SUSE 10.0 UNSUPPORTED)
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.13-15-smp

Hello,

Konqueror and FileOpen- and FileSave-Dialogs show a file type descrition of "GNU Gettext Message Catalogue" when a file with suffix "*.pot" was found. Typically this is more often used for MS-PowerPoint-Templates. Maybe you can do a check for the header instead of just comparing to the extension like explorer does...

Would be nice for all kind of types to check the file itself instread of trusting the extension.

Thanks
Andreas
Comment 1 Nicolas Goutte 2006-02-17 23:28:34 UTC
The problem is that a Powerpoint document is an OLE document and Gettext PO files have no fixed header either. However the "magic" patterns in KDE need some fixed fields to recognize a file type.

Have a nice day!
Comment 2 Jaime Torres 2008-05-16 18:03:02 UTC
It knows the difference between M$ format and GNU format in trunk 20080507.
Comment 3 Jaime Torres 2008-05-17 09:27:07 UTC
Works for me in svn trunk r807691 (20080507)
Comment 4 FiNeX 2008-05-19 16:02:52 UTC
I tested it on 3.5.9: .pot files are recognized as "GNU Gettext..." (I've tried it with a PowerPointTemplate).

KDE 4 (r809608) use an icon with a "?" and on the properties dialog, the type field says: "OLE2 compound document storage".
Instead, a real gettext template use the standard openoffice icon and the type is "translation template" which is right.

It can be closed.