UI string updates for new onScreen widgets

This commit is contained in:
TrueZhuangjia
2025-01-28 13:13:34 +08:00
parent ef418be2df
commit 4ba33002dd
8 changed files with 88 additions and 88 deletions
+3 -3
View File
@@ -198,8 +198,8 @@
<color key="tintColor" red="0.6716768742" green="0.61711704730000005" blue="0.99902987480000005" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color key="selectedSegmentTintColor" red="0.6716768742" green="0.61711704730000005" blue="0.99902987480000005" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</segmentedControl>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="On-Screen Controls &amp; Button " lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="LGV-5y-piG">
<rect key="frame" x="16" y="573" width="454" height="21"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="On-Screen Controls &amp; Widgets " lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="LGV-5y-piG">
<rect key="frame" x="16" y="573" width="444" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="tintColor" red="0.81533776120000001" green="0.85979419950000002" blue="0.91372549020000005" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
@@ -958,7 +958,7 @@ ICAgICAgICAgICAgICA
<constraint firstAttribute="height" constant="44" id="lQr-5u-g05"/>
</constraints>
<items>
<navigationItem title="Controller &amp; Button Profiles" id="Q2V-XF-4jq">
<navigationItem title="Controller &amp; Widget Profiles" id="Q2V-XF-4jq">
<barButtonItem key="leftBarButtonItem" title="Exit" width="90" style="plain" id="Bhn-IO-Wlt" userLabel="Delete">
<connections>
<action selector="exitTapped:" destination="Atv-Nj-0qv" id="pwG-sO-9he"/>
+5 -5
View File
@@ -218,8 +218,8 @@ ICAgICAgICAgICAgIA
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="tintColor" red="0.6716768742" green="0.61711704730000005" blue="0.99902987480000005" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</slider>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="On-Screen Controls &amp; Buttons " lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="HZT-dd-DuQ">
<rect key="frame" x="19" y="570" width="436" height="21"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="On-Screen Controls &amp; Widgets " lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="HZT-dd-DuQ">
<rect key="frame" x="19" y="570" width="440" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
<color key="textColor" red="0.9513210654258728" green="0.97490358352661133" blue="0.99987185001373291" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
@@ -961,7 +961,7 @@ ICAgICAgICAgICAgIA
<constraint firstAttribute="height" constant="44" id="R90-2b-UrU"/>
</constraints>
<items>
<navigationItem title="Controller &amp; Button Profiles" id="5pN-Sn-SCN">
<navigationItem title="Controller &amp; Widget Profiles" id="5pN-Sn-SCN">
<barButtonItem key="leftBarButtonItem" title="Exit" id="D9X-7p-9oc">
<connections>
<action selector="exitTapped:" destination="0K8-kQ-xlN" id="Sam-Ct-kqC"/>
@@ -1011,13 +1011,13 @@ ICAgICAgICAgICAgIA
<image name="SquaresArrowUp" width="40" height="40"/>
<image name="Trash" width="40" height="40"/>
<systemColor name="secondaryLabelColor">
<color red="0.23529411764705882" green="0.23529411764705882" blue="0.2627450980392157" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.23529411759999999" green="0.23529411759999999" blue="0.26274509800000001" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
<systemColor name="tintColor">
<color red="0.0" green="0.47843137254901963" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
</resources>
</document>
+43 -43
View File
@@ -191,6 +191,29 @@
}
}
},
"Alias label (optional)" : {
"extractionState" : "manual",
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "别名标签 (可留空)"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "别名标签 (可留空)"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "别名标签 (可留空)"
}
}
}
},
"Ball: assumed touch point. Cross: indicator location" : {
"extractionState" : "manual",
"localizations" : {
@@ -703,48 +726,48 @@
}
}
},
"Enter the command & key label" : {
"Enter the command & alias label" : {
"extractionState" : "manual",
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "输入按键命令和键帽标签"
"value" : "输入控件命令和别名标签"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "输入按键命令和键帽标签"
"value" : "输入控件命令和别名标签"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "输入按键命令和键帽标签"
"value" : "输入控件命令和别名标签"
}
}
}
},
"Enter the name you want to save this controller profile as" : {
"Enter the name you want to save this profile as" : {
"extractionState" : "manual",
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "将当前虚拟手柄布局另存为"
"value" : "将当前布局另存为"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "将当前虚拟手柄布局另存为"
"value" : "将当前布局另存为"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "将当前虚拟手柄布局另存为"
"value" : "将当前布局另存为"
}
}
}
@@ -1008,29 +1031,6 @@
}
}
},
"Key label (optional)" : {
"extractionState" : "manual",
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "键帽标签 (可留空)"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "键帽标签 (可留空)"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "键帽标签 (可留空)"
}
}
}
},
"Launch App" : {
"extractionState" : "manual",
"localizations" : {
@@ -1354,25 +1354,25 @@
}
}
},
"New Keyboard Button" : {
"New On-Screen Widget" : {
"extractionState" : "manual",
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "新建屏显按键"
"value" : "新建屏显控件"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "新建屏显按键"
"value" : "新建屏显控件"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "新建屏显按键"
"value" : "新建屏显控件"
}
}
}
@@ -1515,25 +1515,25 @@
}
}
},
"On-Screen Controls & Buttons" : {
"On-Screen Controls & Widgets" : {
"extractionState" : "manual",
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "屏显虚拟手柄与按键"
"value" : "屏显虚拟手柄与控件"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "屏显虚拟手柄与按键"
"value" : "屏显虚拟手柄与控件"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "屏显虚拟手柄与按键"
"value" : "屏显虚拟手柄与控件"
}
}
}
@@ -2286,25 +2286,25 @@
}
}
},
"Tap %d fingers to change on-screen controller layout in stream view, or change the number of fingers required to:" : {
"Tap %d fingers to change layout in stream view, or change the number of fingers required to:" : {
"extractionState" : "manual",
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "在串流视图中轻按%d根手指修改虚拟手柄布局, 或将手势需要的手指数量改为:"
"value" : "在串流视图中轻按%d根手指修改布局, 或将手势需要的手指数量改为:"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "在串流视图中轻按%d根手指修改虚拟手柄布局, 或将手势需要的手指数量改为:"
"value" : "在串流视图中轻按%d根手指修改布局, 或将手势需要的手指数量改为:"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "在串流视图中轻按%d根手指修改虚拟手柄布局, 或将手势需要的手指数量改为:"
"value" : "在串流视图中轻按%d根手指修改布局, 或将手势需要的手指数量改为:"
}
}
}
@@ -308,8 +308,8 @@
- (IBAction) addTapped:(id)sender{
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:[LocalizationHelper localizedStringForKey:@"New Keyboard Button"]
message:[LocalizationHelper localizedStringForKey:@"Enter the command & key label"]
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:[LocalizationHelper localizedStringForKey:@"New On-Screen Widget"]
message:[LocalizationHelper localizedStringForKey:@"Enter the command & alias label"]
preferredStyle:UIAlertControllerStyleAlert];
[alertController addTextFieldWithConfigurationHandler:^(UITextField *textField) {
@@ -320,7 +320,7 @@
}];
[alertController addTextFieldWithConfigurationHandler:^(UITextField *textField) {
textField.placeholder = [LocalizationHelper localizedStringForKey:@"Key label (optional)"];
textField.placeholder = [LocalizationHelper localizedStringForKey:@"Alias label (optional)"];
textField.keyboardType = UIKeyboardTypeASCIICapable;
textField.autocorrectionType = UITextAutocorrectionTypeNo;
textField.spellCheckingType = UITextSpellCheckingTypeNo;
@@ -74,7 +74,7 @@ const double NAV_BAR_HEIGHT = 50;
/* Loads the OSC profile that user selected, dismisses this VC, then tells the presenting view controller to lay out the on screen buttons according to the selected profile's instructions */
- (IBAction) duplicateTapped:(id)sender {
UIAlertController * inputNameAlertController = [UIAlertController alertControllerWithTitle: [LocalizationHelper localizedStringForKey:@"Enter the name you want to save this controller profile as"] message: @"" preferredStyle:UIAlertControllerStyleAlert];
UIAlertController * inputNameAlertController = [UIAlertController alertControllerWithTitle: [LocalizationHelper localizedStringForKey:@"Enter the name you want to save this profile as"] message: @"" preferredStyle:UIAlertControllerStyleAlert];
[inputNameAlertController addTextFieldWithConfigurationHandler:^(UITextField *textField) { // pop up notification with text field where user can enter the text they wish to name their OSC layout profile
textField.placeholder = [LocalizationHelper localizedStringForKey:@"name"];
textField.textColor = [UIColor lightGrayColor];
@@ -586,7 +586,7 @@ BOOL isCustomResolution(CGSize res) {
- (void)showCustomOSCTip {
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:[LocalizationHelper localizedStringForKey:@"Rebase in Stream View"]
message:[LocalizationHelper localizedStringForKey:@"Tap %d fingers to change on-screen controller layout in stream view, or change the number of fingers required to:", self->oscLayoutFingers]
message:[LocalizationHelper localizedStringForKey:@"Tap %d fingers to change layout in stream view, or change the number of fingers required to:", self->oscLayoutFingers]
preferredStyle:UIAlertControllerStyleAlert];
[alertController addTextFieldWithConfigurationHandler:^(UITextField *textField) {
@@ -659,7 +659,7 @@ BOOL isCustomResolution(CGSize res) {
//if (self.layoutOnScreenControlsVC.isBeingPresented == NO)
}
else{
[self.onscreenControllerLabel setText:[LocalizationHelper localizedStringForKey: @"On-Screen Controls & Buttons"]];
[self.onscreenControllerLabel setText:[LocalizationHelper localizedStringForKey: @"On-Screen Controls & Widgets"]];
}
justEnteredSettingsViewDoNotOpenOscLayoutTool = false;
}
@@ -727,7 +727,7 @@ BOOL isCustomResolution(CGSize res) {
}
- (void) touchModeChanged {
// Disable On-Screen Controls & Buttons in non-relative touch mode
// Disable On-Screen Controls & Widgets in non-relative touch mode
bool oscSelectorEnabled = [self.touchModeSelector selectedSegmentIndex] == RELATIVE_TOUCH || [self.touchModeSelector selectedSegmentIndex] == REGULAR_NATIVE_TOUCH || [self.touchModeSelector selectedSegmentIndex] == ABSOLUTE_TOUCH;
bool customOscEnabled = [self isOnScreenControllerOrButtonEnabled] && [self.onscreenControlSelector selectedSegmentIndex] == OnScreenControlsLevelCustom;
bool isNativeTouch = [self.touchModeSelector selectedSegmentIndex] == PURE_NATIVE_TOUCH || [self.touchModeSelector selectedSegmentIndex] == REGULAR_NATIVE_TOUCH;
@@ -751,7 +751,7 @@ BOOL isCustomResolution(CGSize res) {
//if (self.layoutOnScreenControlsVC.isBeingPresented == NO)
}
else{
[self.onscreenControllerLabel setText:[LocalizationHelper localizedStringForKey: @"On-Screen Controls & Buttons"]];
[self.onscreenControllerLabel setText:[LocalizationHelper localizedStringForKey: @"On-Screen Controls & Widgets"]];
}
[self updateTouchModeLabel];
}
+13 -13
View File
@@ -1478,31 +1478,31 @@
}
},
"LGV-5y-piG.text" : {
"comment" : "Class = \"UILabel\"; text = \"On-Screen Controls & Button \"; ObjectID = \"LGV-5y-piG\";",
"comment" : "Class = \"UILabel\"; text = \"On-Screen Controls & Widgets \"; ObjectID = \"LGV-5y-piG\";",
"extractionState" : "extracted_with_value",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "On-Screen Controls & Button "
"value" : "On-Screen Controls & Widgets "
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "屏幕虚拟手柄"
"value" : "屏幕虚拟手柄与控件"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "屏幕虚拟手柄"
"value" : "屏幕虚拟手柄与控件"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "屏幕虚拟手柄"
"value" : "屏幕虚拟手柄与控件"
}
}
}
@@ -1928,31 +1928,31 @@
}
},
"Q2V-XF-4jq.title" : {
"comment" : "Class = \"UINavigationItem\"; title = \"Controller & Button Profiles\"; ObjectID = \"Q2V-XF-4jq\";",
"comment" : "Class = \"UINavigationItem\"; title = \"Controller & Widget Profiles\"; ObjectID = \"Q2V-XF-4jq\";",
"extractionState" : "extracted_with_value",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "Controller & Button Profiles"
"value" : "Controller & Widget Profiles"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "屏显手柄与按键布局"
"state" : "needs_review",
"value" : "屏显手柄与控件布局"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "屏显手柄与按键布局"
"state" : "needs_review",
"value" : "屏显手柄与控件布局"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "屏显手柄与按键布局"
"state" : "needs_review",
"value" : "屏显手柄与控件布局"
}
}
}
+16 -16
View File
@@ -302,31 +302,31 @@
}
},
"5pN-Sn-SCN.title" : {
"comment" : "Class = \"UINavigationItem\"; title = \"Controller & Button Profiles\"; ObjectID = \"5pN-Sn-SCN\";",
"comment" : "Class = \"UINavigationItem\"; title = \"Controller & Widget Profiles\"; ObjectID = \"5pN-Sn-SCN\";",
"extractionState" : "extracted_with_value",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "Controller & Button Profiles"
"value" : "Controller & Widget Profiles"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "屏显手柄与按键布局"
"state" : "needs_review",
"value" : "屏显手柄与控件布局"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "屏显手柄与按键布局"
"state" : "needs_review",
"value" : "屏显手柄与控件布局"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "屏显手柄与按键布局"
"state" : "needs_review",
"value" : "屏显手柄与控件布局"
}
}
}
@@ -1262,31 +1262,31 @@
}
},
"HZT-dd-DuQ.text" : {
"comment" : "Class = \"UILabel\"; text = \"On-Screen Controls & Buttons \"; ObjectID = \"HZT-dd-DuQ\";",
"comment" : "Class = \"UILabel\"; text = \"On-Screen Controls & Widgets \"; ObjectID = \"HZT-dd-DuQ\";",
"extractionState" : "extracted_with_value",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "On-Screen Controls & Buttons "
"value" : "On-Screen Controls & Widgets "
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "屏幕虚拟手柄"
"state" : "translated",
"value" : "屏幕虚拟手柄与控件"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "屏幕虚拟手柄"
"state" : "translated",
"value" : "屏幕虚拟手柄与控件"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "屏幕虚拟手柄"
"state" : "translated",
"value" : "屏幕虚拟手柄与控件"
}
}
}