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:
parent
59788d8940
commit
4b5c20008c
2 changed files with 5 additions and 5 deletions
|
@ -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)"
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue