* Add missing space so only once translation is auto-generated

* Use suggested format

* delete an extra space

---------

Co-authored-by: rainmakerv2 <30595646+jpau02@users.noreply.github.com>
This commit is contained in:
rainmakerv2 2025-03-04 23:03:30 +08:00 committed by GitHub
parent ba109a4c53
commit f4bf53402f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View file

@ -105,13 +105,13 @@ KBMSettings::KBMSettings(std::shared_ptr<GameInfoClass> game_info_get, QWidget*
connect(ui->DeadzoneOffsetSlider, &QSlider::valueChanged, this, [this](int value) {
QString DOSValue = QString::number(value / 100.0, 'f', 2);
QString DOSString = tr("Deadzone Offset (def 0.50): ") + DOSValue;
QString DOSString = tr("Deadzone Offset (def 0.50):") + " " + DOSValue;
ui->DeadzoneOffsetLabel->setText(DOSString);
});
connect(ui->SpeedMultiplierSlider, &QSlider::valueChanged, this, [this](int value) {
QString SMSValue = QString::number(value / 10.0, 'f', 1);
QString SMSString = tr("Speed Multiplier (def 1.0): ") + SMSValue;
QString SMSString = tr("Speed Multiplier (def 1.0):") + " " + SMSValue;
ui->SpeedMultiplierLabel->setText(SMSString);
});
@ -576,7 +576,7 @@ void KBMSettings::SetUIValuestoMappings(std::string config_id) {
int DOffsetInt = int(DOffsetValue);
ui->DeadzoneOffsetSlider->setValue(DOffsetInt);
QString LabelValue = QString::number(DOffsetInt / 100.0, 'f', 2);
QString LabelString = tr("Deadzone Offset (def 0.50): ") + LabelValue;
QString LabelString = tr("Deadzone Offset (def 0.50):") + " " + LabelValue;
ui->DeadzoneOffsetLabel->setText(LabelString);
std::string SMSOstring = line.substr(comma_pos + 1);
@ -591,7 +591,7 @@ void KBMSettings::SetUIValuestoMappings(std::string config_id) {
SpeedMultInt = 50;
ui->SpeedMultiplierSlider->setValue(SpeedMultInt);
LabelValue = QString::number(SpeedMultInt / 10.0, 'f', 1);
LabelString = tr("Speed Multiplier (def 1.0): ") + LabelValue;
LabelString = tr("Speed Multiplier (def 1.0):") + " " + LabelValue;
ui->SpeedMultiplierLabel->setText(LabelString);
std::string SOstring = SMSOstring.substr(comma_pos2 + 1);
@ -599,7 +599,7 @@ void KBMSettings::SetUIValuestoMappings(std::string config_id) {
int SOffsetInt = int(SOffsetValue);
ui->SpeedOffsetSlider->setValue(SOffsetInt);
LabelValue = QString::number(SOffsetInt / 1000.0, 'f', 3);
LabelString = tr("Speed Offset (def 0.125): ") + LabelValue;
LabelString = tr("Speed Offset (def 0.125):") + " " + LabelValue;
ui->SpeedOffsetLabel->setText(LabelString);
}
}

View file

@ -634,7 +634,7 @@
<enum>Qt::FocusPolicy::NoFocus</enum>
</property>
<property name="text">
<string>Copy from Common Config</string>
<string>Copy from Common Config</string>
</property>
</widget>
</item>