[Marble-commits] KDE/kdeedu/marble/tools/translations
Dennis Nienhüser
earthwings at gentoo.org
Sun Feb 20 13:57:21 CET 2011
SVN commit 1221765 by nienhueser:
Ignore fuzzy translations.
M +8 -1 merge_ts_po.cpp
--- trunk/KDE/kdeedu/marble/tools/translations/merge_ts_po.cpp #1221764:1221765
@@ -46,11 +46,17 @@
poStream.setCodec( "UTF-8" );
poStream.setAutoDetectUnicode( true );
QString source;
+ bool ignore = false;
while( !poStream.atEnd() ) {
QString line = poStream.readLine();
- if ( line.startsWith( "msgid " ) ) {
+ if ( line.startsWith( "#, fuzzy" ) ) {
+ ignore = true;
+ } else if ( line.startsWith( "msgid " ) ) {
source = line.mid( 7, line.size() - 8 );
} else if ( !source.isEmpty() && line.startsWith( "msgstr " ) ) {
+ if ( ignore ) {
+ ignore = false;
+ } else {
QString translation = line.mid( 8, line.size() - 9 );
translation.replace( "&", "&" );
translation.replace( "<", "<" );
@@ -60,6 +66,7 @@
}
}
}
+ }
QTextStream console( stdout );
console.setCodec( "UTF-8" );
More information about the Marble-commits
mailing list