Merge branch 'master' of https://github.com/86Box/86Box
This commit is contained in:
@@ -741,6 +741,9 @@ msgstr "T"
|
|||||||
msgid "S"
|
msgid "S"
|
||||||
msgstr "S"
|
msgstr "S"
|
||||||
|
|
||||||
|
msgid "MiB"
|
||||||
|
msgstr "Mio"
|
||||||
|
|
||||||
msgid "KB"
|
msgid "KB"
|
||||||
msgstr "Ko"
|
msgstr "Ko"
|
||||||
|
|
||||||
|
@@ -831,6 +831,9 @@ msgstr "H"
|
|||||||
msgid "S"
|
msgid "S"
|
||||||
msgstr "S"
|
msgstr "S"
|
||||||
|
|
||||||
|
msgid "MiB"
|
||||||
|
msgstr "МиБ"
|
||||||
|
|
||||||
msgid "KB"
|
msgid "KB"
|
||||||
msgstr "КБ"
|
msgstr "КБ"
|
||||||
|
|
||||||
|
@@ -741,6 +741,9 @@ msgstr "H"
|
|||||||
msgid "S"
|
msgid "S"
|
||||||
msgstr "S"
|
msgstr "S"
|
||||||
|
|
||||||
|
msgid "MiB"
|
||||||
|
msgstr "МіБ"
|
||||||
|
|
||||||
msgid "KB"
|
msgid "KB"
|
||||||
msgstr "КБ"
|
msgstr "КБ"
|
||||||
|
|
||||||
|
@@ -298,7 +298,7 @@ DeviceConfig::ProcessConfig(void *dc, const void *c, const bool is_dep)
|
|||||||
int currentIndex = 0;
|
int currentIndex = 0;
|
||||||
auto serialDevices = EnumerateSerialDevices();
|
auto serialDevices = EnumerateSerialDevices();
|
||||||
|
|
||||||
Models::AddEntry(model, "None", -1);
|
Models::AddEntry(model, tr("None"), -1);
|
||||||
for (int i = 0; i < serialDevices.size(); i++) {
|
for (int i = 0; i < serialDevices.size(); i++) {
|
||||||
const int row = Models::AddEntry(model, serialDevices[i], i);
|
const int row = Models::AddEntry(model, serialDevices[i], i);
|
||||||
if (selected == serialDevices[i])
|
if (selected == serialDevices[i])
|
||||||
@@ -401,7 +401,7 @@ DeviceConfig::ConfigureDevice(const _device_ *device, int instance, Settings *se
|
|||||||
{
|
{
|
||||||
auto *cbox = dc.findChild<QComboBox *>(config->name);
|
auto *cbox = dc.findChild<QComboBox *>(config->name);
|
||||||
auto path = cbox->currentText().toUtf8();
|
auto path = cbox->currentText().toUtf8();
|
||||||
if (path == "None")
|
if (cbox->currentData().toInt() == -1)
|
||||||
path = "";
|
path = "";
|
||||||
config_set_string(device_context.name, const_cast<char *>(config->name), path);
|
config_set_string(device_context.name, const_cast<char *>(config->name), path);
|
||||||
break;
|
break;
|
||||||
|
@@ -36,7 +36,7 @@ JoystickConfiguration::JoystickConfiguration(int type, int joystick_nr, QWidget
|
|||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
auto model = ui->comboBoxDevice->model();
|
auto model = ui->comboBoxDevice->model();
|
||||||
Models::AddEntry(model, "None", 0);
|
Models::AddEntry(model, tr("None"), 0);
|
||||||
for (int c = 0; c < joysticks_present; c++) {
|
for (int c = 0; c < joysticks_present; c++) {
|
||||||
Models::AddEntry(model, plat_joystick_state[c].name, c + 1);
|
Models::AddEntry(model, plat_joystick_state[c].name, c + 1);
|
||||||
}
|
}
|
||||||
@@ -114,8 +114,8 @@ JoystickConfiguration::on_comboBoxDevice_currentIndexChanged(int index)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (int d = 0; d < plat_joystick_state[joystick].nr_povs; d++) {
|
for (int d = 0; d < plat_joystick_state[joystick].nr_povs; d++) {
|
||||||
Models::AddEntry(model, QString("%1 (X axis)").arg(plat_joystick_state[joystick].pov[d].name), 0);
|
Models::AddEntry(model, tr("%1 (X axis)").arg(plat_joystick_state[joystick].pov[d].name), 0);
|
||||||
Models::AddEntry(model, QString("%1 (Y axis)").arg(plat_joystick_state[joystick].pov[d].name), 0);
|
Models::AddEntry(model, tr("%1 (Y axis)").arg(plat_joystick_state[joystick].pov[d].name), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int nr_axes = plat_joystick_state[joystick].nr_axes;
|
int nr_axes = plat_joystick_state[joystick].nr_axes;
|
||||||
@@ -161,9 +161,9 @@ JoystickConfiguration::on_comboBoxDevice_currentIndexChanged(int index)
|
|||||||
for (int c = 0; c < joystick_get_pov_count(type) * 2; c++) {
|
for (int c = 0; c < joystick_get_pov_count(type) * 2; c++) {
|
||||||
QLabel *label;
|
QLabel *label;
|
||||||
if (c & 1) {
|
if (c & 1) {
|
||||||
label = new QLabel(QString("%1 (Y axis)").arg(joystick_get_pov_name(type, c / 2)), this);
|
label = new QLabel(tr("%1 (Y axis)").arg(joystick_get_pov_name(type, c / 2)), this);
|
||||||
} else {
|
} else {
|
||||||
label = new QLabel(QString("%1 (X axis)").arg(joystick_get_pov_name(type, c / 2)), this);
|
label = new QLabel(tr("%1 (X axis)").arg(joystick_get_pov_name(type, c / 2)), this);
|
||||||
}
|
}
|
||||||
auto cbox = new QComboBox(this);
|
auto cbox = new QComboBox(this);
|
||||||
cbox->setObjectName(QString("cboxPov%1").arg(QString::number(c)));
|
cbox->setObjectName(QString("cboxPov%1").arg(QString::number(c)));
|
||||||
@@ -171,8 +171,8 @@ JoystickConfiguration::on_comboBoxDevice_currentIndexChanged(int index)
|
|||||||
auto model = cbox->model();
|
auto model = cbox->model();
|
||||||
|
|
||||||
for (int d = 0; d < plat_joystick_state[joystick].nr_povs; d++) {
|
for (int d = 0; d < plat_joystick_state[joystick].nr_povs; d++) {
|
||||||
Models::AddEntry(model, QString("%1 (X axis)").arg(plat_joystick_state[joystick].pov[d].name), 0);
|
Models::AddEntry(model, tr("%1 (X axis)").arg(plat_joystick_state[joystick].pov[d].name), 0);
|
||||||
Models::AddEntry(model, QString("%1 (Y axis)").arg(plat_joystick_state[joystick].pov[d].name), 0);
|
Models::AddEntry(model, tr("%1 (Y axis)").arg(plat_joystick_state[joystick].pov[d].name), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int d = 0; d < plat_joystick_state[joystick].nr_axes; d++) {
|
for (int d = 0; d < plat_joystick_state[joystick].nr_axes; d++) {
|
||||||
|
@@ -159,16 +159,18 @@ ProgSettings::on_pushButton_released()
|
|||||||
QString
|
QString
|
||||||
ProgSettings::getFontName(uint32_t lcid)
|
ProgSettings::getFontName(uint32_t lcid)
|
||||||
{
|
{
|
||||||
if (lcid == 0x0804) /* zh-CN */
|
switch (lcid) {
|
||||||
return "Microsoft YaHei";
|
case 0x0404: /* zh-TW */
|
||||||
else if (lcid == 0x0404) /* zh-TW */
|
|
||||||
return "Microsoft JhengHei";
|
return "Microsoft JhengHei";
|
||||||
else if (lcid == 0x0411) /* ja-JP */
|
case 0x0411: /* ja-JP */
|
||||||
return "Meiryo UI";
|
return "Meiryo UI";
|
||||||
else if (lcid == 0x0412) /* ko-KR */
|
case 0x0412: /* ko-KR */
|
||||||
return "Malgun Gothic";
|
return "Malgun Gothic";
|
||||||
else
|
case 0x0804: /* zh-CN */
|
||||||
|
return "Microsoft YaHei";
|
||||||
|
default:
|
||||||
return "Segoe UI";
|
return "Segoe UI";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -301,7 +301,7 @@ SettingsMachine::on_comboBoxSpeed_currentIndexChanged(int index)
|
|||||||
for (const char *fpuName = fpu_get_name_from_index(cpuFamily, cpuId, i);
|
for (const char *fpuName = fpu_get_name_from_index(cpuFamily, cpuId, i);
|
||||||
fpuName != nullptr; fpuName = fpu_get_name_from_index(cpuFamily, cpuId, ++i)) {
|
fpuName != nullptr; fpuName = fpu_get_name_from_index(cpuFamily, cpuId, ++i)) {
|
||||||
auto fpuType = fpu_get_type_from_index(cpuFamily, cpuId, i);
|
auto fpuType = fpu_get_type_from_index(cpuFamily, cpuId, i);
|
||||||
Models::AddEntry(modelFpu, QString("%1").arg(fpuName), fpuType);
|
Models::AddEntry(modelFpu, tr(QString("%1").arg(fpuName).toUtf8().data()), fpuType);
|
||||||
if (fpu_type == fpuType)
|
if (fpu_type == fpuType)
|
||||||
selectedFpuRow = i;
|
selectedFpuRow = i;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user