| 1 |
// Copyright (C) 2016 The Qt Company Ltd. |
| 2 |
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
#include <QtCore> |
| 32 |
#include <QtWidgets/QDialog> |
| 33 |
#include <QtWidgets/QMainWindow> |
| 34 |
|
| 35 |
class FindDialog : public QDialog |
| 36 |
{ |
| 37 |
Q_OBJECT |
| 38 |
public: |
| 39 |
FindDialog(QMainWindow *parent); |
| 40 |
void reset(); |
| 41 |
}; |
| 42 |
FindDialog::FindDialog(QMainWindow *parent) |
| 43 |
: QDialog(parent) |
| 44 |
{ |
| 45 |
QString trans = tr("Enter the text you want to find."); |
| 46 |
trans = tr("Search reached end of the document"); |
| 47 |
trans = tr("Search reached start of the document"); |
| 48 |
trans = tr( "Text not found" ); |
| 49 |
} |
| 50 |
|
| 51 |
void FindDialog::reset() |
| 52 |
{ |
| 53 |
tr("%n item(s)", "merge from singular to plural form", 4); |
| 54 |
tr("%n item(s)", "merge from a finished singular form to an unfinished plural form", 4); |
| 55 |
|
| 56 |
|
| 57 |
//~ meta matter |
| 58 |
//% "Hello" |
| 59 |
qtTrId("xx_hello"); |
| 60 |
|
| 61 |
//% "New world" |
| 62 |
qtTrId("xx_world"); |
| 63 |
|
| 64 |
|
| 65 |
//= new_id |
| 66 |
tr("this is just some text"); |
| 67 |
|
| 68 |
|
| 69 |
//: A message without source string |
| 70 |
qtTrId("qtn_virtual"); |
| 71 |
|
| 72 |
tr(""); |
| 73 |
qtTrId(""); |
| 74 |
} |