src/EditProductTab1.cpp

changeset 301
fe6346211b5b
parent 297
c8f0ecc8a1cc
child 305
35ce719998e1
--- a/src/EditProductTab1.cpp	Sun Jun 19 19:42:29 2022 +0200
+++ b/src/EditProductTab1.cpp	Mon Jun 20 19:55:23 2022 +0200
@@ -79,7 +79,7 @@
     ui->st_guideEdit->setText(product->st_guide);
     ui->st_catEdit->setText(product->st_category);
     ui->st_catnrEdit->setText(QString("%1").arg(product->st_category_number));
-    ui->st_typeEdit->setText(style_types[product->st_type]);
+    ui->st_typeEdit->setText(QCoreApplication::translate("BeerType", g_style_types[product->st_type]));
 
     ui->est_ogShow->setRange(query.value(7).toDouble(), query.value(8).toDouble());
     ui->est_fgShow->setRange(query.value(9).toDouble(), query.value(10).toDouble());
@@ -220,14 +220,14 @@
 	stage = PROD_STAGE_MATURE;
 
     if (product->stage != stage) {
-	qDebug() << "setStage() change state:" << prod_stages[product->stage] << "to:" << prod_stages[stage];
+	qDebug() << "setStage() change state:" << g_prod_stages[product->stage] << "to:" << g_prod_stages[stage];
     	product->stage = stage;
 	is_changed();
     } else {
-	qDebug() << "setStage() stage:" << prod_stages[stage];
+	qDebug() << "setStage() stage:" << g_prod_stages[stage];
     }
 
-    ui->stageEdit->setText(prod_stages[stage]);
+    ui->stageEdit->setText(QCoreApplication::translate("ProdStages", g_prod_stages[stage]));
 
     /* Tab 1, generic */
     ui->typeEdit->setDisabled(stage > PROD_STAGE_WAIT);

mercurial