diff --git a/bin/suseprimeqt b/bin/suseprimeqt index 24a7dd6..eb139f1 100755 Binary files a/bin/suseprimeqt and b/bin/suseprimeqt differ diff --git a/src/about.cpp b/src/about.cpp index af3462f..dbcce63 100644 --- a/src/about.cpp +++ b/src/about.cpp @@ -1,24 +1,26 @@ #include "about.h" #include "ui_about.h" #include - -static QString SUSEPrimeqt_versionstring = "SUSEPrimeQt 0.6.2"; -static QString SUSEPrime_versionstring = "- Provides a simple GUI for SUSEPrime 0.6. Needs suse-prime >= 0.6"; +#include about::about(QWidget *parent) : QDialog(parent), ui(new Ui::about) { ui->setupUi(this); + ui->retranslateUi(this); QProcess get_usage; get_usage.start("prime-select"); get_usage.waitForFinished(-1); QString output = get_usage.readAllStandardOutput(); ui->info_usagebox->setText(output); - ui->ver_lab_str->setText(SUSEPrimeqt_versionstring); - ui->label_versiondesc->setText(SUSEPrime_versionstring); + ui->ver_lab_str->setText("SUSEPrimeQt 0.6.4"); + ui->label_versiondesc->setText(tr("- Provides a simple GUI for SUSEPrime 0.6. Needs suse-prime >= 0.6")); + QString translation = QString(":/lang/%1/%1.qm").arg(QLocale::system().name()); + QTranslator translator; + bool transl_exists = translator.load(translation); + if(transl_exists == false) ui->transl_about->hide(); } - about::~about() { delete ui; diff --git a/src/about.ui b/src/about.ui index d827f72..594aefd 100644 --- a/src/about.ui +++ b/src/about.ui @@ -38,7 +38,7 @@ 470 - 10 + 5 100 16 @@ -68,7 +68,7 @@ 470 - 30 + 18 90 16 @@ -158,10 +158,42 @@ SUSEPrimeqt vers + + + + 470 + 40 + 91 + 31 + + + + + 8 + + + + Translated by: +name + + + true + + - - + + + + + 575 + 0 + + + + + + 0 @@ -180,12 +212,12 @@ - SUPrivides GUI for suse-prime x, SUSEPrime version x needed + Here a full command-line version usage and description - - + + 0 @@ -204,17 +236,7 @@ - Here a full command-line version usage and description - - - - - - - - 575 - 0 - + DESCRIPTION+SUSEPRIME_VERSION_NEEDED string diff --git a/src/lang/it_IT/it_IT.qm b/src/lang/it_IT/it_IT.qm new file mode 100644 index 0000000..aec8ead Binary files /dev/null and b/src/lang/it_IT/it_IT.qm differ diff --git a/src/lang_ts/it_IT.ts b/src/lang_ts/it_IT.ts new file mode 100644 index 0000000..b357e36 --- /dev/null +++ b/src/lang_ts/it_IT.ts @@ -0,0 +1,357 @@ + + + + + MainWindow + + + SUSEPrimeQt + + + + + Boot default + Default al boot + + + + + Apply + Applica + + + + N&VIDIA + + + + + INTEL&2 + + + + + &LAST + &Ultima utilizzata + + + + &INTEL + + + + + Force next boot + Forza prossimo boot + + + + + Restore + Ripristina + + + + + INTEL + + + + + INTEL2 [Opensource driver] + + + + + + NVIDIA + + + + + Current: Not Set + + + + + Switch + + + + + INTEL 2 + + + + + Nvidia card is + Stato Nvidia + + + + OFF + + + + + [BBSWITCH] + + + + + BBSWITCH IS NOT INSTALLED + BBSWITCH NON È INSTALLATO + + + + Current driver: + Driver attuale: + + + + driver + + + + + Settings + Impostazioni + + + + Console output + + + + + Logfile + File di log + + + + Logfile Clean + Pulisci log + + + + Service + Servizio + + + + DISABLED + + + + + Status: + Stato: + + + + Disable + Disabilita + + + + Advanced + Avanzate + + + + Reset settings + Imp. Default + + + + logfile /var/log/prime-select.log NOT exist! Probably cleaned by user + Il file di log /var/log/prime-select.log Non esiste! È stato probabilmente pulito dall'utente + + + + intel2 driver already in use + Driver intel2 già in uso + + + + intel driver already in use + Driver intel già in uso + + + + nvidia driver already in use + Driver nvidia già in uso + + + + <font color="red">NOT SET</font> + <font color="red">NON SETTATO</font> + + + + <font color="red">Current: INTEL2</font> + <font color="red">Attuale: INTEL2</font> + + + + <font color="red">Current: INTEL</font> + <font color="red">Attuale: INTEL</font> + + + + <font color="red">Current: NVIDIA</font> + <font color="red">Attuale: NVIDIA</font> + + + + <font color="black">Current: NOT SET</font> + <font color="black">Attuale: NON SETTATO</font> + + + + <font color="green">ENABLED</font> + <font color="green">ABILITATO</font> + + + + <font color="red">DISABLED</font> + <font color="red">DISABILITATO</font> + + + + Command line output: + Output comandi: + + + + + package xf86-video-intel is not installed + Il pacchetto xf86-video-intel non è installato + + + + Nvidia card will never powered off. This may cause overheating and low battery life. To have this feature, please install bbswitch package + La vga nvidia non verrà mai spenta, Può creare problemi di surriscaldamento e durata batteria. Per evitare ciò installa il pacchetto bbswitch + + + + <font color="red">WARNING: BBSWITCH IS NOT INSTALLED</font> + <font color="red">AVVISO: BBSWITCH NON È INSTALLATO</font> + + + + Set the default card at boot or remember last used + Imposta la scheda di default al boot o ricorda l'ultima utilizzata + + + + Select card only for next boot, default card setting will not change + Selezione la scheda da utilizzare solamente al prossimo boot: la preferenza al boot rimarrà invariata + + + + Manage the service. Remember SUSEPrime needs service enabled to correctly work + Gestisce il servizio. Ricorda che SUSEPrime necessita del servizio abilitato per funzionare correttamente + + + + Disable service and reset configuration of SUSEPrime + Disabilita il servizio e porta a default la configurazione di SUSEPrime + + + + Open nvidia-settings panel + Apre il pannello di controllo Nvidia + + + + About and Informations + Informazioni + + + + about + + + About + + + + + Coded by: simopil + + + + + <a href="https://github.com/simopil/suseprimeqt">Open on Github</a> + + + + + SUSEPrimeqt vers + + + + + Translated by: +name + Tradotto da: simopil + + + + DESCRIPTION+SUSEPRIME_VERSION_NEEDED string + + + + + Here a full command-line version usage and description + Descrizione e uso della versione shell + + + + - Provides a simple GUI for SUSEPrime 0.6. Needs suse-prime >= 0.6 + - Una semplice GUI per SUSEPrime 0.6. Necessita suse-prime >= 0.6 + + + + logout_info + + + Info + + + + + Please logout to switch graphics + Effettua il logout per cambiare vga + + + + OK + + + + + Abort Switch + Annulla switch + + + + notinst_error + + + FATAL + ERRORE + + + + FATAL ERROR: SUSEPrime seems not installed in the system + ERRORE: SUSEPrime non è installato nel sistema + + + + Exit + Esci + + + diff --git a/src/logout_info.cpp b/src/logout_info.cpp index 46f5638..7105ef4 100644 --- a/src/logout_info.cpp +++ b/src/logout_info.cpp @@ -7,6 +7,7 @@ logout_info::logout_info(QWidget *parent) : ui(new Ui::logout_info) { ui->setupUi(this); + ui->retranslateUi(this); } logout_info::~logout_info() diff --git a/src/logout_info.ui b/src/logout_info.ui index 9e2f2c9..36e59ba 100644 --- a/src/logout_info.ui +++ b/src/logout_info.ui @@ -19,9 +19,9 @@ - 20 + 10 10 - 421 + 431 101 @@ -36,13 +36,19 @@ Please logout to switch graphics + + Qt::AlignCenter + + + true + 70 120 - 88 + 105 34 @@ -58,7 +64,7 @@ 270 120 - 88 + 105 34 diff --git a/src/main.cpp b/src/main.cpp index 040ff1b..09f9766 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2,11 +2,21 @@ #include "notinst_error.h" #include #include +#include +#include +#include int main(int argc, char *argv[]) { + QApplication a(argc, argv); + //translations + QString translation = QString(":/lang/%1/%1.qm").arg(QLocale::system().name()); + QTranslator translator; + bool transl_exists = translator.load(translation); + if(transl_exists) a.installTranslator(&translator); MainWindow w; + //SUSEPrime_check QProcess get_usage; get_usage.start("prime-select"); get_usage.waitForFinished(-1); diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index caa64bc..132a424 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -8,6 +8,7 @@ #include #include #include +#include static bool intel2_exist = true; static bool bbswitch_exists = true; @@ -39,7 +40,7 @@ void MainWindow::refresh() ui->logViewer->moveCursor(QTextCursor::End); ui->logcleaner_but->setEnabled(true); } else { - ui->logViewer->setText("logfile /var/log/prime-select.log NOT exist! Probably cleaned by user"); + ui->logViewer->setText(tr("logfile /var/log/prime-select.log NOT exist! Probably cleaned by user")); ui->logcleaner_but->setEnabled(false); } //bbswitch @@ -70,11 +71,11 @@ void MainWindow::refresh() driver = current_drvstream.readAll(); ui->driverStatus->setText(driver); QString currmsg = "driver already in use"; - if( driver.contains("intel2", Qt::CaseSensitive) ) { ui->switchIntel2->setEnabled(false); ui->switchIntel2->setToolTip("intel2 driver already in use"); ui->nvidiasettings_but->setEnabled(false); } - else if( driver.contains("intel", Qt::CaseSensitive) ) { ui->switchIntel->setEnabled(false); ui->switchIntel->setToolTip("intel driver already in use"); ui->nvidiasettings_but->setEnabled(false); } - else if( driver.contains("nvidia", Qt::CaseSensitive) ) { ui->switchNvidia->setEnabled(false); ui->switchNvidia->setToolTip("nvidia driver already in use"); ui->nvidiasettings_but->setEnabled(true); } + if( driver.contains("intel2", Qt::CaseSensitive) ) { ui->switchIntel2->setEnabled(false); ui->switchIntel2->setToolTip(tr("intel2 driver already in use")); ui->nvidiasettings_but->setEnabled(false); } + else if( driver.contains("intel", Qt::CaseSensitive) ) { ui->switchIntel->setEnabled(false); ui->switchIntel->setToolTip(tr("intel driver already in use")); ui->nvidiasettings_but->setEnabled(false); } + else if( driver.contains("nvidia", Qt::CaseSensitive) ) { ui->switchNvidia->setEnabled(false); ui->switchNvidia->setToolTip(tr("nvidia driver already in use")); ui->nvidiasettings_but->setEnabled(true); } } else { - ui->driverStatus->setText("NOT SET"); + ui->driverStatus->setText(tr("NOT SET")); } //boot-default if (fileExists("/etc/prime/boot")) { @@ -122,20 +123,20 @@ void MainWindow::refresh() frcboot.open(QIODevice::ReadOnly); QTextStream bootfrcstream(&frcboot); QString frcdrv = bootfrcstream.readAll(); - if (frcdrv.contains("intel2", Qt::CaseSensitive)) { ui->force_boot_stat->setText("Current: INTEL2"); } - else if (frcdrv.contains("intel", Qt::CaseSensitive)) { ui->force_boot_stat->setText("Current: INTEL");} - else if (frcdrv.contains("nvidia", Qt::CaseSensitive)) { ui->force_boot_stat->setText("Current: NVIDIA"); } + if (frcdrv.contains("intel2", Qt::CaseSensitive)) { ui->force_boot_stat->setText(tr("Current: INTEL2")); } + else if (frcdrv.contains("intel", Qt::CaseSensitive)) { ui->force_boot_stat->setText(tr("Current: INTEL"));} + else if (frcdrv.contains("nvidia", Qt::CaseSensitive)) { ui->force_boot_stat->setText(tr("Current: NVIDIA")); } ui->restore_nextboot->setEnabled(true); }else{ - ui->force_boot_stat->setText("Current: NOT SET"); + ui->force_boot_stat->setText(tr("Current: NOT SET")); ui->restore_nextboot->setEnabled(false); } //service_status if (fileExists("/etc/systemd/system/multi-user.target.wants/prime-boot-selector.service")) { - ui->serv_stat->setText("ENABLED"); + ui->serv_stat->setText(tr("ENABLED")); ui->serviceDisable->setEnabled(true); } else { - ui->serv_stat->setText("DISABLED"); + ui->serv_stat->setText(tr("DISABLED")); ui->serviceDisable->setEnabled(false); } } @@ -145,7 +146,7 @@ MainWindow::MainWindow(QWidget *parent) : ui(new Ui::MainWindow) { ui->setupUi(this); - ui->commandout->append("Command line output:"); + ui->commandout->append(tr("Command line output:")); ui->commandout->append(""); //xf86-video-intel_check QProcess intel2_check; @@ -155,9 +156,9 @@ MainWindow::MainWindow(QWidget *parent) : if(!intel2_check_string.contains("Name")) { ui->switchIntel2->setEnabled(false); - ui->switchIntel2->setToolTip("package xf86-video-intel is not installed"); + ui->switchIntel2->setToolTip(tr("package xf86-video-intel is not installed")); ui->radiointel2->setEnabled(false); - ui->radiointel2->setToolTip("package xf86-video-intel is not installed"); + ui->radiointel2->setToolTip(tr("package xf86-video-intel is not installed")); ui->combo_forceboot->removeItem(1); intel2_exist = false; } @@ -171,17 +172,26 @@ MainWindow::MainWindow(QWidget *parent) : ui->bbswitch_widget->setEnabled(false); ui->bbswitchStatus->deleteLater(); ui->bbs_label->deleteLater(); - ui->bbswitch_widget->setToolTip("Nvidia card will never powered off. This may cause overheating and low battery life. To have this feature, please install bbswitch package"); - ui->commandout->append("WARNING: BBSWITCH IS NOT INSTALLED"); + ui->bbswitch_widget->setToolTip(tr("Nvidia card will never powered off. This may cause overheating and low battery life. To have this feature, please install bbswitch package")); + ui->commandout->append(tr("WARNING: BBSWITCH IS NOT INSTALLED")); + //create label + QLabel *bb_err = new QLabel(this); + bb_err->setSizePolicy(QSizePolicy::Expanding , QSizePolicy::Expanding); + bb_err->setText(tr("BBSWITCH IS NOT INSTALLED")); + bb_err->setWordWrap(true); + bb_err->setAlignment(Qt::AlignCenter); + bb_err->setStyleSheet("font-size: 15px;"); + bb_err->setScaledContents(false); + ui->bbswitch_widget->layout()->addWidget(bb_err); bbswitch_exists = false; - } else ui->bbswitch_notinst_label->deleteLater(); + } //tooltips - ui->bootdef_widget->setToolTip("Set the default card at boot or remember last used"); - ui->nextboot_widget->setToolTip("Select card only for next boot, default card setting will not change"); - ui->service_widget->setToolTip("Manage the service. Remember SUSEPrime needs service enabled to correctly work"); - ui->unsetButton->setToolTip("Disable service and reset configuration of SUSEPrime"); - ui->nvidiasettings_but->setToolTip("Open nvidia-settings panel"); - ui->about_but->setToolTip("About and Informations"); + ui->bootdef_widget->setToolTip(tr("Set the default card at boot or remember last used")); + ui->nextboot_widget->setToolTip(tr("Select card only for next boot, default card setting will not change")); + ui->service_widget->setToolTip(tr("Manage the service. Remember SUSEPrime needs service enabled to correctly work")); + ui->unsetButton->setToolTip(tr("Disable service and reset configuration of SUSEPrime")); + ui->nvidiasettings_but->setToolTip(tr("Open nvidia-settings panel")); + ui->about_but->setToolTip(tr("About and Informations")); //refresh_and_set_tab MainWindow::refresh(); ui->tabWidget->setCurrentIndex(0); diff --git a/src/mainwindow.ui b/src/mainwindow.ui index 1fd7e8b..187fdf9 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -38,12 +38,15 @@ :/icon/icon/nvidia.png:/icon/icon/nvidia.png + + + + + + Qt::LeftToRight - - - @@ -63,6 +66,12 @@ 99999 + + + + + + @@ -78,9 +87,21 @@ 141 + + + 223 + 141 + + Qt::NoFocus + + + + + + @@ -92,7 +113,7 @@ 20 90 - 84 + 90 32 @@ -104,19 +125,25 @@ - 84 + 90 32 - 84 + 90 32 Qt::NoFocus + + + + + + @@ -154,6 +181,12 @@ Qt::NoFocus + + + + + + @@ -191,6 +224,12 @@ Qt::NoFocus + + + + + + @@ -203,7 +242,7 @@ 90 60 - 65 + 128 22 @@ -215,19 +254,25 @@ - 65 + 128 22 - 105 + 128 22 Qt::NoFocus + + + + + + @@ -265,6 +310,12 @@ Qt::NoFocus + + + + + + @@ -288,174 +339,191 @@ 141 + + + 250 + 141 + + + + + + + + Force next boot - - - - 130 - 90 - 84 - 32 - - - - - 0 - 0 - - - - - 84 - 32 - - - - - 84 - 32 - - - - Qt::NoFocus - - - - - - Restore - - - - - - 32 - 55 - 181 - 32 - - - - - 0 - 0 - - - - - 181 - 32 - - - - - 181 - 32 - - - - Qt::NoFocus - - - - - - - INTEL - + + + + + + 0 + 0 + + + + + 220 + 20 + + + + + 220 + 20 + + + + + 12 + + + + + + + + + + + + + Current: Not Set + + + Qt::AlignCenter + + - - - INTEL2 [Opensource driver] - + + + + + 0 + 0 + + + + + 90 + 32 + + + + + 90 + 32 + + + + Qt::NoFocus + + + + + + + + + + + + Restore + + - - - NVIDIA - + + + + + 0 + 0 + + + + + 90 + 32 + + + + + 90 + 32 + + + + Qt::NoFocus + + + + + + + + + + + + Apply + + - - - - - 32 - 30 - 141 - 20 - - - - - 0 - 0 - - - - - 141 - 20 - - - - - 141 - 20 - - - - - 12 - - - - - - - Current: Not Set - - - - - - 32 - 90 - 84 - 32 - - - - - 0 - 0 - - - - - 84 - 32 - - - - - 84 - 32 - - - - Qt::NoFocus - - - - - - Apply - - + + + + + 0 + 0 + + + + + 206 + 32 + + + + + 202 + 32 + + + + Qt::NoFocus + + + + + + + + + + + + + INTEL + + + + + INTEL2 [Opensource driver] + + + + + NVIDIA + + + + + @@ -472,6 +540,18 @@ 141 + + + 223 + 141 + + + + + + + + @@ -508,6 +588,12 @@ Qt::NoFocus + + + + + + @@ -545,6 +631,12 @@ Qt::NoFocus + + + + + + Qt::LeftToRight @@ -585,6 +677,12 @@ Qt::NoFocus + + + + + + Qt::LeftToRight @@ -611,131 +709,118 @@ 141 + + + 122 + 141 + + + + + + + + Nvidia card is - - - true - - - - 30 - 35 - 60 - 40 - - - - - 0 - 0 - - - - - 60 - 40 - - - - - 60 - 40 - - - - - Droid Sans Japanese - 25 - 75 - false - true - false - false - PreferDefault - true - - - - - - - OFF - - - Qt::AlignCenter - - - - - - 25 - 90 - 71 - 16 - - - - - 0 - 0 - - - - - 71 - 16 - - - - - 71 - 16 - - - - - 9 - - - - - - - [BBSWITCH] - - - - - - 10 - 25 - 101 - 91 - - - - - 15 - - - - BBSWITCH IS NOT INSTALLED - - - false - - - Qt::AlignCenter - - - true - - + + + + + true + + + + 0 + 0 + + + + + 105 + 45 + + + + + 105 + 45 + + + + + Droid Sans Japanese + 25 + 75 + false + true + false + false + PreferDefault + true + + + + + + + + + + Qt::LeftToRight + + + + + + OFF + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 100 + 30 + + + + + 100 + 30 + + + + + 9 + + + + + + + [BBSWITCH] + + + Qt::AlignCenter + + + + @@ -752,81 +837,116 @@ 141 + + + 122 + 141 + + + + + + + + Current driver: - - - true - - - - -10 - 40 - 140 - 30 - - - - - 0 - 0 - - - - - 140 - 30 - - - - - 140 - 30 - - - - - Droid Sans Japanese - 20 - 75 - false - true - false - false - PreferDefault - true - - - - - - - driver - - - Qt::AlignCenter - - - - - - 17 - 85 - 88 - 34 - - - - Qt::NoFocus - - - Settings - - + + + + + true + + + + 0 + 0 + + + + + 110 + 30 + + + + + 110 + 30 + + + + + Droid Sans Japanese + 20 + 75 + false + true + false + false + PreferDefault + true + + + + + + + + + + + + + driver + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 100 + 0 + + + + + 100 + 34 + + + + Qt::NoFocus + + + + + + + + + + + + Settings + + + + @@ -837,8 +957,17 @@ 427 + + + + + + + + + - 1 + 0 @@ -859,8 +988,11 @@ 0 - - + + + + + QTextEdit::NoWrap @@ -884,16 +1016,22 @@ - 95 + 105 34 - 95 + 105 34 + + + + + + @@ -904,6 +1042,15 @@ + + + + + + + + + QTextEdit::NoWrap @@ -927,159 +1074,181 @@ 144 + + + 223 + 144 + + + + + + + + Service - - - - 48 - 100 - 128 - 30 - - - - - 0 - 0 - - - - - 128 - 30 - - - - - 128 - 30 - - - - - 20 - - - - - - - DISABLED - - - - - - 120 - 35 - 88 - 34 - - - - - 0 - 0 - - - - - 88 - 34 - - - - - 88 - 34 - - - - Qt::NoFocus - - - - - - Restore - - - - - - 90 - 80 - 58 - 18 - - - - - 0 - 0 - - - - - 58 - 18 - - - - - 58 - 18 - - - - - - - Status: - - - - - - 10 - 35 - 88 - 34 - - - - - 0 - 0 - - - - - 88 - 34 - - - - - 88 - 34 - - - - Qt::NoFocus - - - - - - Disable - - + + + + + + 0 + 0 + + + + + 90 + 34 + + + + + 90 + 34 + + + + Qt::NoFocus + + + + + + + + + + + + Disable + + + + + + + + 0 + 0 + + + + + 90 + 34 + + + + + 90 + 34 + + + + Qt::NoFocus + + + + + + + + + + + + Restore + + + + + + + + 0 + 0 + + + + + 150 + 18 + + + + + 150 + 18 + + + + + + + + + + + + + Status: + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 185 + 30 + + + + + 185 + 30 + + + + + 20 + 50 + false + + + + + + + + + + + + + DISABLED + + + Qt::AlignCenter + + + + @@ -1092,10 +1261,22 @@ - 130 + 250 144 + + + 250 + 144 + + + + + + + + @@ -1105,9 +1286,9 @@ - 30 + 15 60 - 95 + 110 34 @@ -1119,19 +1300,25 @@ - 95 + 110 34 - 95 + 110 34 Qt::NoFocus + + + + + + @@ -1142,7 +1329,7 @@ - 150 + 160 43 70 70 @@ -1169,6 +1356,12 @@ Qt::NoFocus + + + + + + false diff --git a/src/notinst_error.cpp b/src/notinst_error.cpp index 5512109..19931bf 100644 --- a/src/notinst_error.cpp +++ b/src/notinst_error.cpp @@ -6,6 +6,7 @@ notinst_error::notinst_error(QWidget *parent) : ui(new Ui::notinst_error) { ui->setupUi(this); + ui->retranslateUi(this); } notinst_error::~notinst_error() diff --git a/src/notinst_error.ui b/src/notinst_error.ui index 8e4d5b0..173021e 100644 --- a/src/notinst_error.ui +++ b/src/notinst_error.ui @@ -46,6 +46,18 @@ 0 + + + 105 + 34 + + + + + 105 + 34 + + diff --git a/src/suseprimeqt.pro b/src/suseprimeqt.pro index 74ca98b..869c29c 100644 --- a/src/suseprimeqt.pro +++ b/src/suseprimeqt.pro @@ -11,6 +11,9 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = suseprimeqt TEMPLATE = app +TRANSLATIONS+= \ + lang_ts/it_IT.ts + # The following define makes your compiler emit warnings if you use # any feature of Qt which has been marked as deprecated (the exact warnings # depend on your compiler). Please consult the documentation of the @@ -32,10 +35,10 @@ SOURCES += \ about.cpp HEADERS += \ - mainwindow.h \ + mainwindow.h \ logout_info.h \ notinst_error.h \ - about.h + about.h \ FORMS += \ logout_info.ui \ @@ -49,4 +52,7 @@ else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target RESOURCES += \ - icon.qrc + icon.qrc \ + translations.qrc + + diff --git a/src/translations.qrc b/src/translations.qrc new file mode 100644 index 0000000..fad37ce --- /dev/null +++ b/src/translations.qrc @@ -0,0 +1,5 @@ + + + lang/it_IT/it_IT.qm + +