Changeset 846 for trunk/tools/linguist/shared/translator.h
- 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/shared/translator.h
r769 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) … … 93 93 94 94 void appendError(const QString &error) { m_errors.append(error); } 95 QString error() const { return m_errors.join(QLatin1String("\n")); }95 QString error() const { return m_errors.isEmpty() ? QString() : m_errors.join(QLatin1String("\n")) + QLatin1Char('\n'); } 96 96 QStringList errors() const { return m_errors; } 97 97 void clearErrors() { m_errors.clear(); } … … 124 124 Translator(); 125 125 126 bool load(const QString &filename, ConversionData &err, const QString &format /* = "auto"*/);127 bool save(const QString &filename, ConversionData &err, const QString &format /* = "auto"*/) const;126 bool load(const QString &filename, ConversionData &err, const QString &format /* = "auto" */); 127 bool save(const QString &filename, ConversionData &err, const QString &format /* = "auto" */) const; 128 128 bool release(QFile *iod, ConversionData &cd) const; 129 129 … … 234 234 235 235 bool getNumerusInfo(QLocale::Language language, QLocale::Country country, 236 QByteArray *rules, QStringList *forms);236 QByteArray *rules, QStringList *forms, const char **gettextRules); 237 237 238 238 /*
Note:
See TracChangeset
for help on using the changeset viewer.