Changeset 846 for trunk/tools/linguist/lupdate/merge.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/tools/linguist/lupdate/merge.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 45 45 #include "translator.h" 46 46 47 #include <QtCore/QCoreApplication> 47 48 #include <QtCore/QDebug> 48 49 #include <QtCore/QMap> … … 51 52 #include <QtCore/QVector> 52 53 53 54 54 QT_BEGIN_NAMESPACE 55 56 class LU { 57 Q_DECLARE_TR_FUNCTIONS(LUpdate) 58 }; 55 59 56 60 static bool isDigitFriendly(QChar c) … … 486 490 if (options & Verbose) { 487 491 int totalFound = neww + known; 488 err += QObject::tr(" Found %n source text(s) (%1 new and %2 already existing)\n", 0, totalFound).arg(neww).arg(known);492 err += LU::tr(" Found %n source text(s) (%1 new and %2 already existing)\n", 0, totalFound).arg(neww).arg(known); 489 493 490 494 if (obsoleted) { 491 495 if (options & NoObsolete) { 492 err += QObject::tr(" Removed %n obsolete entries\n", 0, obsoleted);496 err += LU::tr(" Removed %n obsolete entries\n", 0, obsoleted); 493 497 } else { 494 err += QObject::tr(" Kept %n obsolete entries\n", 0, obsoleted);498 err += LU::tr(" Kept %n obsolete entries\n", 0, obsoleted); 495 499 } 496 500 } 497 501 498 502 if (sameNumberHeuristicCount) 499 err += QObject::tr(" Number heuristic provided %n translation(s)\n",503 err += LU::tr(" Number heuristic provided %n translation(s)\n", 500 504 0, sameNumberHeuristicCount); 501 505 if (sameTextHeuristicCount) 502 err += QObject::tr(" Same-text heuristic provided %n translation(s)\n",506 err += LU::tr(" Same-text heuristic provided %n translation(s)\n", 503 507 0, sameTextHeuristicCount); 504 508 if (similarTextHeuristicCount) 505 err += QObject::tr(" Similar-text heuristic provided %n translation(s)\n",509 err += LU::tr(" Similar-text heuristic provided %n translation(s)\n", 506 510 0, similarTextHeuristicCount); 507 511 }
Note:
See TracChangeset
for help on using the changeset viewer.