Summary: | Gettext save: be less aggressive with the author lines in the header comment | ||
---|---|---|---|
Product: | [Unmaintained] kbabel | Reporter: | Nicolas Goutte <nicolasg> |
Component: | KBabel editor | Assignee: | Stanislav Visnovsky <visnovsky> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Nicolas Goutte
2005-10-29 00:55:29 UTC
SVN commit 475581 by goutte: Be careful that a copyright line is not an author line CCBUG:115295 (That is more a temporary solution of not moving the copyright line.) M +7 -1 catalog.cpp --- branches/KDE/3.5/kdesdk/kbabel/common/catalog.cpp #475580:475581 @@ -645,6 +645,8 @@ if(!found) commentList.prepend(temp); } + // kdDebug() << "HEADER COMMENT: " << commentList << endl; + if ( (!usePrefs || saveOptions.updateTranslatorCopyright) && ( ! identityOptions.authorName.isEmpty() ) && ( ! identityOptions.authorEmail.isEmpty() ) ) // An email address can be used as ersatz of a name @@ -666,8 +668,12 @@ while ( it != commentList.end() ) { bool deleteItem = false; - if ( (*it).find ( regexpYearAlone ) != -1 ) + if ( (*it).find ( "copyright", 0, false ) != -1 ) { + // We have a line with a copyright. It should not be moved. + } + else if ( (*it).find ( regexpYearAlone ) != -1 ) + { // We have found a year number that is preceeded by a comma. // That is typical of KBabel 1.10 (and earlier?) when there is neither an author name nor an email // Remove the entry i think this should be closed |