Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tools/linguist/lupdate/merge.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    4545#include "translator.h"
    4646
     47#include <QtCore/QCoreApplication>
    4748#include <QtCore/QDebug>
    4849#include <QtCore/QMap>
     
    5152#include <QtCore/QVector>
    5253
    53 
    5454QT_BEGIN_NAMESPACE
     55
     56class LU {
     57    Q_DECLARE_TR_FUNCTIONS(LUpdate)
     58};
    5559
    5660static bool isDigitFriendly(QChar c)
     
    486490    if (options & Verbose) {
    487491        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);
    489493
    490494        if (obsoleted) {
    491495            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);
    493497            } else {
    494                 err += QObject::tr("    Kept %n obsolete entries\n", 0, obsoleted);
     498                err += LU::tr("    Kept %n obsolete entries\n", 0, obsoleted);
    495499            }
    496500        }
    497501
    498502        if (sameNumberHeuristicCount)
    499             err += QObject::tr("    Number heuristic provided %n translation(s)\n",
     503            err += LU::tr("    Number heuristic provided %n translation(s)\n",
    500504                      0, sameNumberHeuristicCount);
    501505        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",
    503507                      0, sameTextHeuristicCount);
    504508        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",
    506510                      0, similarTextHeuristicCount);
    507511    }
Note: See TracChangeset for help on using the changeset viewer.