Changeset View
Changeset View
Standalone View
Standalone View
Exif/ReReadDialog.cpp
Show All 32 Lines | |||||
33 | 33 | | |||
34 | #include <DB/ImageDB.h> | 34 | #include <DB/ImageDB.h> | ||
35 | #include <Exif/Database.h> | 35 | #include <Exif/Database.h> | ||
36 | #include <Settings/SettingsData.h> | 36 | #include <Settings/SettingsData.h> | ||
37 | 37 | | |||
38 | 38 | | |||
39 | Exif::ReReadDialog::ReReadDialog(QWidget* parent) : QDialog(parent) | 39 | Exif::ReReadDialog::ReReadDialog(QWidget* parent) : QDialog(parent) | ||
40 | { | 40 | { | ||
41 | setWindowTitle( i18n("Read EXIF info from files") ); | 41 | setWindowTitle( i18nc("@title:window", "Read Exif Info from Files") ); | ||
pino: Title Capitalization.
Also, when changing a window title, I'd add also the i18n markup, so… | |||||
pino: extra whitespace changes | |||||
42 | 42 | | |||
43 | QWidget* top = new QWidget; | 43 | QWidget* top = new QWidget; | ||
44 | QVBoxLayout* lay1 = new QVBoxLayout( top ); | 44 | QVBoxLayout* lay1 = new QVBoxLayout( top ); | ||
45 | setLayout(lay1); | 45 | setLayout(lay1); | ||
46 | lay1->addWidget(top); | 46 | lay1->addWidget(top); | ||
47 | 47 | | |||
48 | m_exifDB = new QCheckBox( i18n( "Update EXIF search database" ), top ); | 48 | m_exifDB = new QCheckBox( i18n( "Update Exif search database" ), top ); | ||
49 | lay1->addWidget( m_exifDB ); | 49 | lay1->addWidget( m_exifDB ); | ||
50 | if ( !Exif::Database::instance()->isUsable() ) { | 50 | if ( !Exif::Database::instance()->isUsable() ) { | ||
51 | m_exifDB->hide(); | 51 | m_exifDB->hide(); | ||
52 | } | 52 | } | ||
53 | 53 | | |||
54 | m_date = new QCheckBox( i18n( "Update image date" ), top ); | 54 | m_date = new QCheckBox( i18n( "Update image date" ), top ); | ||
55 | lay1->addWidget( m_date ); | 55 | lay1->addWidget( m_date ); | ||
56 | 56 | | |||
57 | m_force_date = new QCheckBox( i18n( "Use modification date if EXIF not found" ), top ); | 57 | m_force_date = new QCheckBox( i18n( "Use modification date if Exif not found" ), top ); | ||
58 | lay1->addWidget( m_force_date ); | 58 | lay1->addWidget( m_force_date ); | ||
59 | 59 | | |||
60 | m_orientation = new QCheckBox( i18n( "Update image orientation from EXIF information" ), top ); | 60 | m_orientation = new QCheckBox( i18n( "Update image orientation from Exif information" ), top ); | ||
61 | lay1->addWidget( m_orientation ); | 61 | lay1->addWidget( m_orientation ); | ||
62 | 62 | | |||
63 | m_description = new QCheckBox( i18n( "Update image description from EXIF information" ), top ); | 63 | m_description = new QCheckBox( i18n( "Update image description from Exif information" ), top ); | ||
64 | lay1->addWidget( m_description ); | 64 | lay1->addWidget( m_description ); | ||
65 | 65 | | |||
66 | QGroupBox* box = new QGroupBox( i18n("Affected Files") ); | 66 | QGroupBox* box = new QGroupBox( i18n("Affected Files") ); | ||
67 | lay1->addWidget( box ); | 67 | lay1->addWidget( box ); | ||
68 | 68 | | |||
69 | QHBoxLayout* boxLayout = new QHBoxLayout( box ); | 69 | QHBoxLayout* boxLayout = new QHBoxLayout( box ); | ||
70 | m_fileList = new QListWidget; | 70 | m_fileList = new QListWidget; | ||
71 | m_fileList->setSelectionMode( QAbstractItemView::NoSelection ); | 71 | m_fileList->setSelectionMode( QAbstractItemView::NoSelection ); | ||
▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | 104 | { | |||
130 | DB::ImageDB::instance()->slotReread(m_list, mode); | 130 | DB::ImageDB::instance()->slotReread(m_list, mode); | ||
131 | } | 131 | } | ||
132 | 132 | | |||
133 | void Exif::ReReadDialog::warnAboutDates( bool b ) | 133 | void Exif::ReReadDialog::warnAboutDates( bool b ) | ||
134 | { | 134 | { | ||
135 | if ( !b ) | 135 | if ( !b ) | ||
136 | return; | 136 | return; | ||
137 | 137 | | |||
138 | int ret = KMessageBox::warningContinueCancel( this, i18n("<p>Be aware that setting the data from EXIF may " | 138 | int ret = KMessageBox::warningContinueCancel( this, i18n("<p>Be aware that setting the data from Exif may " | ||
139 | "<b>overwrite</b> data you have previously entered " | 139 | "<b>overwrite</b> data you have previously entered " | ||
140 | "manually using the image configuration dialog.</p>" ), | 140 | "manually using the image configuration dialog.</p>" ), | ||
141 | i18n( "Override image dates" ) ); | 141 | i18n( "Override image dates" ) ); | ||
142 | if ( ret == KMessageBox::Cancel ) | 142 | if ( ret == KMessageBox::Cancel ) | ||
143 | m_date->setChecked( false ); | 143 | m_date->setChecked( false ); | ||
144 | } | 144 | } | ||
145 | 145 | | |||
146 | // vi:expandtab:tabstop=4 shiftwidth=4: | 146 | // vi:expandtab:tabstop=4 shiftwidth=4: |
Title Capitalization.
Also, when changing a window title, I'd add also the i18n markup, so: