1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-25 17:25:16 +03:00

LogoManager: use named parameters in translation

This commit is contained in:
Kiripolszky Károly 2018-04-04 18:25:07 +02:00
parent 59788d8940
commit 4b5c20008c
2 changed files with 5 additions and 5 deletions

View file

@ -2805,7 +2805,7 @@
"message": "Click <b>$t(osdSetupUploadFont.message)</b> to persist custom logo"
},
"osdSetupCustomLogoImageSizeError": {
"message": "Invalid image size: $1×$2 (expected $t(logoWidthPx)×$t(logoHeightPx))"
"message": "Invalid image size: {{width}}×{{height}} (expected $t(logoWidthPx)×$t(logoHeightPx))"
},
"osdSetupCustomLogoColorMapError": {
"message": "The image contains an invalid color palette (only green, black and white are allowed)"

View file

@ -265,10 +265,10 @@ LogoManager.constraints = {
var constraint = LogoManager.constraints.imageSize;
if (img.width != constraint.expectedWidth
|| img.height != constraint.expectedHeight) {
GUI.log(i18n.getMessage("osdSetupCustomLogoImageSizeError", [
img.width,
img.height,
]));
GUI.log(i18n.getMessage("osdSetupCustomLogoImageSizeError", {
width: img.width,
height: img.height,
}));
return false;
}
return true;