Translated Kommen & Gehen into english in code
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
<string>About me</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,1">
|
||||
<item>
|
||||
|
@@ -17,7 +17,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
<string>Authentication</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
|
@@ -17,7 +17,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
<string>Buchung</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,1,0">
|
||||
<item>
|
||||
|
@@ -10,8 +10,8 @@ SettingsDialog::SettingsDialog(ZeiterfassungSettings &settings, QWidget *parent)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
ui->lineEditBuchungKommenBackgroundColor->setText(settings.buchungKommenBackgroundColor());
|
||||
ui->lineEditBuchungGehenBackgroundColor->setText(settings.buchungGehenBackgroundColor());
|
||||
ui->lineEditBuchungStartBackgroundColor->setText(settings.buchungStartBackgroundColor());
|
||||
ui->lineEditBuchungEndBackgroundColor->setText(settings.buchungEndBackgroundColor());
|
||||
ui->lineEditBuchungOtherBackgroundColor->setText(settings.buchungOtherBackgroundColor());
|
||||
ui->lineEditTimeAssignmentBackgroundColor->setText(settings.timeAssignmentBackgroundColor());
|
||||
|
||||
@@ -25,10 +25,10 @@ SettingsDialog::~SettingsDialog()
|
||||
|
||||
void SettingsDialog::submit()
|
||||
{
|
||||
if(ui->lineEditBuchungKommenBackgroundColor->text() != m_settings.buchungKommenBackgroundColor())
|
||||
m_settings.setBuchungKommenBackgroundColor(ui->lineEditBuchungKommenBackgroundColor->text());
|
||||
if(ui->lineEditBuchungGehenBackgroundColor->text() != m_settings.buchungGehenBackgroundColor())
|
||||
m_settings.setBuchungGehenBackgroundColor(ui->lineEditBuchungGehenBackgroundColor->text());
|
||||
if(ui->lineEditBuchungStartBackgroundColor->text() != m_settings.buchungStartBackgroundColor())
|
||||
m_settings.setBuchungStartBackgroundColor(ui->lineEditBuchungStartBackgroundColor->text());
|
||||
if(ui->lineEditBuchungEndBackgroundColor->text() != m_settings.buchungEndBackgroundColor())
|
||||
m_settings.setBuchungEndBackgroundColor(ui->lineEditBuchungEndBackgroundColor->text());
|
||||
if(ui->lineEditBuchungOtherBackgroundColor->text() != m_settings.buchungOtherBackgroundColor())
|
||||
m_settings.setBuchungOtherBackgroundColor(ui->lineEditBuchungOtherBackgroundColor->text());
|
||||
if(ui->lineEditTimeAssignmentBackgroundColor->text() != m_settings.timeAssignmentBackgroundColor())
|
||||
|
@@ -17,7 +17,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
<string>Settings</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,1,0">
|
||||
<item>
|
||||
@@ -30,22 +30,22 @@
|
||||
<item>
|
||||
<layout class="QFormLayout" name="formLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="labelbuchungKommenBackgroundColor">
|
||||
<widget class="QLabel" name="labelbuchungStartBackgroundColor">
|
||||
<property name="text">
|
||||
<string>buchungKommenBackgroundColor</string>
|
||||
<string>buchungStartBackgroundColor</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>lineEditBuchungKommenBackgroundColor</cstring>
|
||||
<cstring>lineEditBuchungStartBackgroundColor</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="labelbuchungGehenBackgroundColor">
|
||||
<widget class="QLabel" name="labelbuchungEndBackgroundColor">
|
||||
<property name="text">
|
||||
<string>buchungGehenBackgroundColor</string>
|
||||
<string>buchungEndBackgroundColor</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>lineEditBuchungGehenBackgroundColor</cstring>
|
||||
<cstring>lineEditBuchungEndBackgroundColor</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -70,10 +70,10 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="lineEditBuchungKommenBackgroundColor"/>
|
||||
<widget class="QLineEdit" name="lineEditBuchungStartBackgroundColor"/>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLineEdit" name="lineEditBuchungGehenBackgroundColor"/>
|
||||
<widget class="QLineEdit" name="lineEditBuchungEndBackgroundColor"/>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLineEdit" name="lineEditBuchungOtherBackgroundColor"/>
|
||||
|
@@ -17,7 +17,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
<string>Time assignment</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,1,0">
|
||||
<item>
|
||||
|
@@ -862,7 +862,7 @@ void MainWindow::validateEntries()
|
||||
auto startBuchung = *buchungenIter++;
|
||||
if(startBuchung.type != QStringLiteral("K"))
|
||||
{
|
||||
errorMessage = tr("Expected Buchung for Kommen, instead got type %0\nBuchung ID: %1")
|
||||
errorMessage = tr("Expected start Buchung, instead got type %0\nBuchung ID: %1")
|
||||
.arg(startBuchung.type)
|
||||
.arg(startBuchung.id);
|
||||
goto after;
|
||||
@@ -940,7 +940,7 @@ void MainWindow::validateEntries()
|
||||
{
|
||||
if(timeAssignmentsIter == m_timeAssignmentsModel->constEnd())
|
||||
{
|
||||
errorMessage = tr("The last time assignment is finished without Gehen-Buchung\nTime assignment ID: %0")
|
||||
errorMessage = tr("The last time assignment is finished without end Buchung\nTime assignment ID: %0")
|
||||
.arg(timeAssignment.id);
|
||||
goto after;
|
||||
}
|
||||
@@ -989,7 +989,7 @@ void MainWindow::validateEntries()
|
||||
auto endBuchung = *buchungenIter++;
|
||||
if(endBuchung.type != QStringLiteral("G"))
|
||||
{
|
||||
errorMessage = tr("Expected Buchung for Gehen, instead got type %0\nBuchung ID: %1")
|
||||
errorMessage = tr("Expected end Buchung, instead got type %0\nBuchung ID: %1")
|
||||
.arg(endBuchung.type)
|
||||
.arg(endBuchung.id);
|
||||
goto after;
|
||||
|
@@ -10,9 +10,6 @@
|
||||
<height>581</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>MainWindow</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/zeiterfassung/images/icon.png</normaloff>:/zeiterfassung/images/icon.png</iconset>
|
||||
|
@@ -18,13 +18,13 @@ BuchungStrip::BuchungStrip(int id, const QTime &time, const QString &type, const
|
||||
ui->labelTime->setText(time.toString(QStringLiteral("HH:mm")));
|
||||
if(type == QStringLiteral("K"))
|
||||
{
|
||||
setStyleSheet(QStringLiteral("%0 { background-color: %1; }").arg(staticMetaObject.className()).arg(settings.buchungKommenBackgroundColor()));
|
||||
ui->labelType->setText(tr("KOMMEN"));
|
||||
setStyleSheet(QStringLiteral("%0 { background-color: %1; }").arg(staticMetaObject.className()).arg(settings.buchungStartBackgroundColor()));
|
||||
ui->labelType->setText(tr("START"));
|
||||
}
|
||||
else if(type == QStringLiteral("G"))
|
||||
{
|
||||
setStyleSheet(QStringLiteral("%0 { background-color: %1; }").arg(staticMetaObject.className()).arg(settings.buchungGehenBackgroundColor()));
|
||||
ui->labelType->setText(tr("GEHEN"));
|
||||
setStyleSheet(QStringLiteral("%0 { background-color: %1; }").arg(staticMetaObject.className()).arg(settings.buchungEndBackgroundColor()));
|
||||
ui->labelType->setText(tr("END"));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -10,9 +10,6 @@
|
||||
<height>52</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::WinPanel</enum>
|
||||
</property>
|
||||
|
@@ -10,9 +10,6 @@
|
||||
<height>80</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::WinPanel</enum>
|
||||
</property>
|
||||
|
@@ -132,24 +132,24 @@ void ZeiterfassungSettings::prependText(const QString &text)
|
||||
prepentItem("texte", text);
|
||||
}
|
||||
|
||||
QString ZeiterfassungSettings::buchungKommenBackgroundColor() const
|
||||
QString ZeiterfassungSettings::buchungStartBackgroundColor() const
|
||||
{
|
||||
return value("buchungKommenBackgroundColor", QStringLiteral("qlineargradient( x1:0 y1:0, x2:0 y2:1, stop:0 #7FFF7F, stop:1 #6FBF6F)")).toString();
|
||||
return value("buchungStartBackgroundColor", QStringLiteral("qlineargradient( x1:0 y1:0, x2:0 y2:1, stop:0 #7FFF7F, stop:1 #6FBF6F)")).toString();
|
||||
}
|
||||
|
||||
void ZeiterfassungSettings::setBuchungKommenBackgroundColor(const QString &buchungKommenBackgroundColor)
|
||||
void ZeiterfassungSettings::setBuchungStartBackgroundColor(const QString &buchungStartBackgroundColor)
|
||||
{
|
||||
setValue("buchungKommenBackgroundColor", buchungKommenBackgroundColor);
|
||||
setValue("buchungStartBackgroundColor", buchungStartBackgroundColor);
|
||||
}
|
||||
|
||||
QString ZeiterfassungSettings::buchungGehenBackgroundColor() const
|
||||
QString ZeiterfassungSettings::buchungEndBackgroundColor() const
|
||||
{
|
||||
return value("buchungGehenBackgroundColor", QStringLiteral("qlineargradient( x1:0 y1:0, x2:0 y2:1, stop:0 #FF7F7F, stop:1 #BF6F6F)")).toString();
|
||||
return value("buchungEndBackgroundColor", QStringLiteral("qlineargradient( x1:0 y1:0, x2:0 y2:1, stop:0 #FF7F7F, stop:1 #BF6F6F)")).toString();
|
||||
}
|
||||
|
||||
void ZeiterfassungSettings::setBuchungGehenBackgroundColor(const QString &buchungGehenBackgroundColor)
|
||||
void ZeiterfassungSettings::setBuchungEndBackgroundColor(const QString &buchungEndBackgroundColor)
|
||||
{
|
||||
setValue("buchungGehenBackgroundColor", buchungGehenBackgroundColor);
|
||||
setValue("buchungEndBackgroundColor", buchungEndBackgroundColor);
|
||||
}
|
||||
|
||||
QString ZeiterfassungSettings::buchungOtherBackgroundColor() const
|
||||
|
@@ -46,11 +46,11 @@ public:
|
||||
void setTexte(const QStringList &texte);
|
||||
void prependText(const QString &text);
|
||||
|
||||
QString buchungKommenBackgroundColor() const;
|
||||
void setBuchungKommenBackgroundColor(const QString &buchungKommenBackgroundColor);
|
||||
QString buchungStartBackgroundColor() const;
|
||||
void setBuchungStartBackgroundColor(const QString &buchungStartBackgroundColor);
|
||||
|
||||
QString buchungGehenBackgroundColor() const;
|
||||
void setBuchungGehenBackgroundColor(const QString &buchungGehenBackgroundColor);
|
||||
QString buchungEndBackgroundColor() const;
|
||||
void setBuchungEndBackgroundColor(const QString &buchungEndBackgroundColor);
|
||||
|
||||
QString buchungOtherBackgroundColor() const;
|
||||
void setBuchungOtherBackgroundColor(const QString &buchungOtherBackgroundColor);
|
||||
|
Reference in New Issue
Block a user