[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdesdk/kfile-plugins/ts
From: André Wöbbeking <Woebbeking () web ! de>
Date: 2006-10-11 10:03:34
Message-ID: 1160561014.011293.1782.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 594435 by woebbe:
forward port of rev. 543506:
readInfo(): read only linguist files (and not e.g. DVB files with a size of 1GB).
M +7 -3 kfile_ts.cpp
--- trunk/KDE/kdesdk/kfile-plugins/ts/kfile_ts.cpp #594434:594435
@@ -63,10 +63,14 @@
int messages = 0;
int untranslated = 0;
int obsolete = 0;
-
- QString line;
-
+
QTextStream stream( &f );
+ QString line = stream.readLine();
+
+ // is it really a linguist file?
+ if (!line.contains("<!DOCTYPE TS>", Qt::CaseInsensitive))
+ return false;
+
while (!stream.atEnd())
{
line = stream.readLine();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic