diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-02-19 08:48:05 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-02-20 14:41:44 (GMT) |
commit | f769a6b029779ba3f1308fd4c66a799a7390cb77 (patch) | |
tree | 3754e692ca5760eac6e10cfdb8ac0aae2cdf18ee /Swift/QtUI/UserSearch | |
parent | b1836ffb49bd7740dbd7c32bfad04d077e81ecb5 (diff) | |
download | swift-contrib-f769a6b029779ba3f1308fd4c66a799a7390cb77.zip swift-contrib-f769a6b029779ba3f1308fd4c66a799a7390cb77.tar.bz2 |
Make Swift translatable.
Diffstat (limited to 'Swift/QtUI/UserSearch')
-rw-r--r-- | Swift/QtUI/UserSearch/QtUserSearchFieldsPage.ui | 4 | ||||
-rw-r--r-- | Swift/QtUI/UserSearch/QtUserSearchFirstPage.ui | 10 | ||||
-rw-r--r-- | Swift/QtUI/UserSearch/QtUserSearchResultsPage.ui | 2 | ||||
-rw-r--r-- | Swift/QtUI/UserSearch/QtUserSearchWindow.cpp | 6 | ||||
-rw-r--r-- | Swift/QtUI/UserSearch/QtUserSearchWindow.ui | 292 |
5 files changed, 11 insertions, 303 deletions
diff --git a/Swift/QtUI/UserSearch/QtUserSearchFieldsPage.ui b/Swift/QtUI/UserSearch/QtUserSearchFieldsPage.ui index f2b5916..fa6e376 100644 --- a/Swift/QtUI/UserSearch/QtUserSearchFieldsPage.ui +++ b/Swift/QtUI/UserSearch/QtUserSearchFieldsPage.ui @@ -11,7 +11,7 @@ </rect> </property> <property name="windowTitle"> - <string>WizardPage</string> + <string></string> </property> <layout class="QGridLayout" name="gridLayout"> <item row="0" column="0" colspan="2"> @@ -77,7 +77,7 @@ <item row="5" column="0"> <widget class="QLabel" name="fetchingThrobber_"> <property name="text"> - <string>TextLabel</string> + <string></string> </property> </widget> </item> diff --git a/Swift/QtUI/UserSearch/QtUserSearchFirstPage.ui b/Swift/QtUI/UserSearch/QtUserSearchFirstPage.ui index 3139f66..46a1277 100644 --- a/Swift/QtUI/UserSearch/QtUserSearchFirstPage.ui +++ b/Swift/QtUI/UserSearch/QtUserSearchFirstPage.ui @@ -11,19 +11,19 @@ </rect> </property> <property name="windowTitle"> - <string>WizardPage</string> + <string></string> </property> <property name="title"> <string>Add a user</string> </property> <property name="subTitle"> - <string>Add another user to your roster. If you know their JID you can add them directly, or you can search for them.</string> + <string>Add another user to your contact list. If you know their address you can add them directly, or you can search for them.</string> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QLabel" name="howLabel_"> <property name="text"> - <string>howLabel_</string> + <string></string> </property> </widget> </item> @@ -32,7 +32,7 @@ <item> <widget class="QRadioButton" name="byJID_"> <property name="text"> - <string>I know their JID:</string> + <string>I know their address:</string> </property> </widget> </item> @@ -88,7 +88,7 @@ <item> <widget class="QLabel" name="errorLabel_"> <property name="text"> - <string><font color='red'>errorLabel_</font></string> + <string></string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> diff --git a/Swift/QtUI/UserSearch/QtUserSearchResultsPage.ui b/Swift/QtUI/UserSearch/QtUserSearchResultsPage.ui index e980a2f..f312fde 100644 --- a/Swift/QtUI/UserSearch/QtUserSearchResultsPage.ui +++ b/Swift/QtUI/UserSearch/QtUserSearchResultsPage.ui @@ -11,7 +11,7 @@ </rect> </property> <property name="windowTitle"> - <string>WizardPage</string> + <string></string> </property> <layout class="QHBoxLayout" name="horizontalLayout"> <item> diff --git a/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp b/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp index a384f5d..e06cd31 100644 --- a/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp +++ b/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp @@ -23,7 +23,7 @@ namespace Swift { QtUserSearchFirstPage::QtUserSearchFirstPage(UserSearchWindow::Type type, const QString& title) { setupUi(this); setTitle(title); - setSubTitle(QString(tr("%1. If you know their JID you can enter it directly, or you can search for them.")).arg(type == UserSearchWindow::AddContact ? tr("Add another user to your roster") : tr("Chat to another user"))); + setSubTitle(QString(tr("%1. If you know their address you can enter it directly, or you can search for them.")).arg(type == UserSearchWindow::AddContact ? tr("Add another user to your contact list") : tr("Chat to another user"))); connect(jid_, SIGNAL(textChanged(const QString&)), this, SLOT(emitCompletenessCheck())); connect(service_->lineEdit(), SIGNAL(textChanged(const QString&)), this, SLOT(emitCompletenessCheck())); } @@ -291,10 +291,10 @@ void QtUserSearchWindow::clear() { firstPage_->errorLabel_->setVisible(false); QString howText; if (type_ == AddContact) { - howText = QString("How would you like to find the user to add?"); + howText = QString(tr("How would you like to find the user to add?")); } else { - howText = QString("How would you like to find the user to chat to?"); + howText = QString(tr("How would you like to find the user to chat to?")); } firstPage_->howLabel_->setText(howText); firstPage_->byJID_->setChecked(true); diff --git a/Swift/QtUI/UserSearch/QtUserSearchWindow.ui b/Swift/QtUI/UserSearch/QtUserSearchWindow.ui deleted file mode 100644 index 56047ce..0000000 --- a/Swift/QtUI/UserSearch/QtUserSearchWindow.ui +++ /dev/null @@ -1,292 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ui version="4.0"> - <class>QtUserSearchWindow</class> - <widget class="QWidget" name="QtUserSearchWindow"> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>698</width> - <height>569</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="windowTitle"> - <string>Find other users</string> - </property> - <layout class="QVBoxLayout" name="verticalLayout"> - <item> - <layout class="QHBoxLayout" name="horizontalLayout"> - <property name="sizeConstraint"> - <enum>QLayout::SetNoConstraint</enum> - </property> - <item> - <widget class="QFrame" name="frame"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="frameShape"> - <enum>QFrame::StyledPanel</enum> - </property> - <property name="frameShadow"> - <enum>QFrame::Raised</enum> - </property> - <layout class="QVBoxLayout" name="verticalLayout_2"> - <item> - <widget class="QLabel" name="label"> - <property name="text"> - <string>Service to search:</string> - </property> - </widget> - </item> - <item> - <widget class="QComboBox" name="service_"> - <property name="editable"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_2"> - <item> - <spacer name="horizontalSpacer"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QPushButton" name="getSearchForm_"> - <property name="text"> - <string>Get Search Form</string> - </property> - </widget> - </item> - </layout> - </item> - <item> - <widget class="QStackedWidget" name="stack_"> - <property name="currentIndex"> - <number>1</number> - </property> - <widget class="QWidget" name="display"> - <layout class="QHBoxLayout" name="horizontalLayout_6"> - <item> - <widget class="QLabel" name="messageLabel_"> - <property name="text"> - <string>TextLabel</string> - </property> - <property name="alignment"> - <set>Qt::AlignHCenter|Qt::AlignTop</set> - </property> - <property name="wordWrap"> - <bool>true</bool> - </property> - </widget> - </item> - </layout> - </widget> - <widget class="QWidget" name="legacy"> - <layout class="QVBoxLayout" name="verticalLayout_4"> - <item> - <layout class="QGridLayout" name="gridLayout"> - <item row="0" column="0" colspan="2"> - <widget class="QLabel" name="label_4"> - <property name="text"> - <string>Enter search terms</string> - </property> - </widget> - </item> - <item row="1" column="0"> - <widget class="QLabel" name="nickInputLabel_"> - <property name="text"> - <string>Nickname:</string> - </property> - </widget> - </item> - <item row="1" column="1"> - <widget class="QLineEdit" name="nickInput_"/> - </item> - <item row="2" column="0"> - <widget class="QLabel" name="firstInputLabel_"> - <property name="text"> - <string>First name:</string> - </property> - </widget> - </item> - <item row="2" column="1"> - <widget class="QLineEdit" name="firstInput_"/> - </item> - <item row="3" column="0"> - <widget class="QLabel" name="lastInputLabel_"> - <property name="text"> - <string>Last name:</string> - </property> - </widget> - </item> - <item row="3" column="1"> - <widget class="QLineEdit" name="lastInput_"/> - </item> - <item row="4" column="0"> - <widget class="QLabel" name="emailInputLabel_"> - <property name="text"> - <string>E-Mail:</string> - </property> - </widget> - </item> - <item row="4" column="1"> - <widget class="QLineEdit" name="emailInput_"/> - </item> - </layout> - </item> - <item> - <spacer name="verticalSpacer"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>40</height> - </size> - </property> - </spacer> - </item> - </layout> - </widget> - </widget> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_3"> - <item> - <spacer name="horizontalSpacer_2"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QPushButton" name="search_"> - <property name="text"> - <string>Search</string> - </property> - </widget> - </item> - </layout> - </item> - </layout> - </widget> - </item> - <item> - <widget class="QFrame" name="frame_2"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="frameShape"> - <enum>QFrame::StyledPanel</enum> - </property> - <property name="frameShadow"> - <enum>QFrame::Raised</enum> - </property> - <layout class="QVBoxLayout" name="verticalLayout_3"> - <item> - <widget class="QLabel" name="label_2"> - <property name="text"> - <string>Results:</string> - </property> - </widget> - </item> - <item> - <widget class="QTreeView" name="results_"/> - </item> - <item> - <widget class="QLabel" name="label_3"> - <property name="text"> - <string>Address:</string> - </property> - </widget> - </item> - <item> - <widget class="QLineEdit" name="jid_"/> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_4"> - <item> - <widget class="QCheckBox" name="addToRoster_"> - <property name="text"> - <string>Add to Roster. Nickname:</string> - </property> - </widget> - </item> - <item> - <widget class="QLineEdit" name="nickName_"/> - </item> - </layout> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_5"> - <item> - <widget class="QCheckBox" name="startChat_"> - <property name="text"> - <string>Start Chat With Contact</string> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_4"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - </layout> - </item> - </layout> - </widget> - </item> - </layout> - </item> - <item> - <widget class="QDialogButtonBox" name="buttonBox_"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="standardButtons"> - <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> - </property> - </widget> - </item> - </layout> - </widget> - <resources/> - <connections/> -</ui> |