mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-19 19:14:48 +00:00
Adjust translation for RGB light (#2468)
This commit is contained in:
parent
e40451a3f7
commit
41496e035a
4 changed files with 13 additions and 17 deletions
|
@ -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">
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue