Adjust translation for RGB light (#2468)

This commit is contained in:
DanielSvoboda 2025-02-17 14:45:21 -03:00 committed by GitHub
parent e40451a3f7
commit 41496e035a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 17 deletions

View file

@ -57,7 +57,7 @@
</font>
</property>
<property name="text">
<string>shadPS4</string>
<string notr="true">shadPS4</string>
</property>
</widget>
<widget class="QLabel" name="shad_text">

View file

@ -60,21 +60,21 @@ ControlSettings::ControlSettings(std::shared_ptr<GameInfoClass> game_info_get, Q
connect(ui->RSlider, &QSlider::valueChanged, this, [this](int value) {
QString RedValue = QString("%1").arg(value, 3, 10, QChar('0'));
QString RValue = "R: " + RedValue;
QString RValue = tr("R:") + " " + RedValue;
ui->RLabel->setText(RValue);
UpdateLightbarColor();
});
connect(ui->GSlider, &QSlider::valueChanged, this, [this](int value) {
QString GreenValue = QString("%1").arg(value, 3, 10, QChar('0'));
QString GValue = "G: " + GreenValue;
QString GValue = tr("G:") + " " + GreenValue;
ui->GLabel->setText(GValue);
UpdateLightbarColor();
});
connect(ui->BSlider, &QSlider::valueChanged, this, [this](int value) {
QString BlueValue = QString("%1").arg(value, 3, 10, QChar('0'));
QString BValue = "B: " + BlueValue;
QString BValue = tr("B:") + " " + BlueValue;
ui->BLabel->setText(BValue);
UpdateLightbarColor();
});
@ -483,7 +483,7 @@ void ControlSettings::SetUIValuestoMappings() {
std::string Rstring = lightbarstring.substr(0, comma_pos2);
ui->RSlider->setValue(std::stoi(Rstring));
QString RedValue = QString("%1").arg(std::stoi(Rstring), 3, 10, QChar('0'));
QString RValue = "R: " + RedValue;
QString RValue = tr("R:") + " " + RedValue;
ui->RLabel->setText(RValue);
}
@ -494,14 +494,14 @@ void ControlSettings::SetUIValuestoMappings() {
ui->GSlider->setValue(std::stoi(Gstring));
QString GreenValue =
QString("%1").arg(std::stoi(Gstring), 3, 10, QChar('0'));
QString GValue = "G: " + GreenValue;
QString GValue = tr("G:") + " " + GreenValue;
ui->GLabel->setText(GValue);
std::string Bstring = GBstring.substr(comma_pos3 + 1);
ui->BSlider->setValue(std::stoi(Bstring));
QString BlueValue =
QString("%1").arg(std::stoi(Bstring), 3, 10, QChar('0'));
QString BValue = "B: " + BlueValue;
QString BValue = tr("B:") + " " + BlueValue;
ui->BLabel->setText(BValue);
}
}

View file

@ -912,7 +912,7 @@
</font>
</property>
<property name="text">
<string>R: 000</string>
<string notr="true">R: 000</string>
</property>
</widget>
</item>
@ -944,7 +944,7 @@
</font>
</property>
<property name="text">
<string>G: 000</string>
<string notr="true">G: 000</string>
</property>
</widget>
</item>
@ -976,7 +976,7 @@
</font>
</property>
<property name="text">
<string>B: 255</string>
<string notr="true">B: 255</string>
</property>
</widget>
</item>

View file

@ -9,10 +9,6 @@
<source>About shadPS4</source>
<translation>About shadPS4</translation>
</message>
<message>
<source>shadPS4</source>
<translation>shadPS4</translation>
</message>
<message>
<source>shadPS4 is an experimental open-source emulator for the PlayStation 4.</source>
<translation>shadPS4 is an experimental open-source emulator for the PlayStation 4.</translation>
@ -526,15 +522,15 @@
<translation type="unfinished"></translation>
</message>
<message>
<source>R: 000</source>
<source>R:</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>G: 000</source>
<source>G:</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>B: 255</source>
<source>B:</source>
<translation type="unfinished"></translation>
</message>
<message>