on screen widget shape - Chinese localization
This commit is contained in:
1 parent
eca0b30728
commit
dd0ff298d5
2 files changed
+26
-2
No files matched your search
@@ -2263,6 +2263,29 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"Shape (r - round, s - square)" : {
|
||||||
|
"extractionState" : "manual",
|
||||||
|
"localizations" : {
|
||||||
|
"zh-Hans" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "按键形状 (r - 圆形, s - 方形)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"zh-Hant" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "按键形状 (r - 圆形, s - 方形)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"zh-HK" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "按键形状 (r - 圆形, s - 方形)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"Show App" : {
|
"Show App" : {
|
||||||
"extractionState" : "manual",
|
"extractionState" : "manual",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
|
|||||||
+3
-2
@@ -385,8 +385,9 @@
|
|||||||
if(noValidKeyboardString && noValidMouseButtonString && noValidTouchPadString && noValidOscButtonString && noValidSpecialButtonString && noValidSuperComboButtonString && noValidSpecialGameWidgetString) return;
|
if(noValidKeyboardString && noValidMouseButtonString && noValidTouchPadString && noValidOscButtonString && noValidSpecialButtonString && noValidSuperComboButtonString && noValidSpecialGameWidgetString) return;
|
||||||
|
|
||||||
if([widgetShape isEqualToString:@"r"]) widgetShape = @"round";
|
if([widgetShape isEqualToString:@"r"]) widgetShape = @"round";
|
||||||
if([widgetShape isEqualToString:@"s"]) widgetShape = @"square";
|
else if([widgetShape isEqualToString:@"s"]) widgetShape = @"square";
|
||||||
if([widgetShape isEqualToString:@""]) widgetShape = @"default";
|
else if([widgetShape isEqualToString:@""]) widgetShape = @"default";
|
||||||
|
else return;
|
||||||
//saving & present the keyboard button:
|
//saving & present the keyboard button:
|
||||||
OnScreenWidgetView* widgetView = [[OnScreenWidgetView alloc] initWithKeyString:cmdString keyLabel:keyLabel shape:widgetShape];
|
OnScreenWidgetView* widgetView = [[OnScreenWidgetView alloc] initWithKeyString:cmdString keyLabel:keyLabel shape:widgetShape];
|
||||||
widgetView.translatesAutoresizingMaskIntoConstraints = NO; // weird but this is mandatory, or you will find no key views added to the right place
|
widgetView.translatesAutoresizingMaskIntoConstraints = NO; // weird but this is mandatory, or you will find no key views added to the right place
|
||||||
|
|||||||
Reference in new issue
Block a user