Skip to content

Commit dc45f6a

Browse files
committed
feat: easy to choose lang
1 parent 51ae007 commit dc45f6a

File tree

5 files changed

+7
-11
lines changed

5 files changed

+7
-11
lines changed

Translator.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@
294294
"@executable_path/../Frameworks",
295295
);
296296
MACOSX_DEPLOYMENT_TARGET = 11.0;
297-
MARKETING_VERSION = 1.0.0;
297+
MARKETING_VERSION = 1.0.2;
298298
PRODUCT_BUNDLE_IDENTIFIER = site.akynazh.Translator;
299299
PRODUCT_NAME = Translator;
300300
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -318,7 +318,7 @@
318318
"@executable_path/../Frameworks",
319319
);
320320
MACOSX_DEPLOYMENT_TARGET = 11.0;
321-
MARKETING_VERSION = 1.0.0;
321+
MARKETING_VERSION = 1.0.2;
322322
PRODUCT_BUNDLE_IDENTIFIER = site.akynazh.Translator;
323323
PRODUCT_NAME = Translator;
324324
PROVISIONING_PROFILE_SPECIFIER = "";

Translator/MainMenu.xib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</customObject>
2020
<menu id="CJx-Hc-3bo">
2121
<items>
22-
<menuItem title="Version 1.0.0" id="Lwn-HC-wyy">
22+
<menuItem title="Version 1.0.2" id="Lwn-HC-wyy">
2323
<modifierMask key="keyEquivalentModifierMask"/>
2424
</menuItem>
2525
<menuItem title="About Translator" id="OqD-PK-giP">

Translator/TranslateViewController.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ class TranslateViewController: NSViewController, WKNavigationDelegate {
1212

1313
var urlLoaded = false
1414
let defaultUrl = "https://translate.google.com?sl=auto&tl=zh-CN&text="
15-
let url="https://translate.google.com.hk/?hl=en&sl=auto&tl=zh-CN&text=yonder&op=translate"
16-
1715

1816
override func viewWillAppear() {
1917
super.viewWillAppear()

Translator/TranslateViewController.xib

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
1919
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
2020
<customView id="Hz6-mo-xeY" userLabel="PlaceholderView">
21-
<rect key="frame" x="0.0" y="0.0" width="492" height="544"/>
21+
<rect key="frame" x="0.0" y="0.0" width="763" height="484"/>
2222
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
2323
<subviews>
2424
<progressIndicator fixedFrame="YES" maxValue="100" indeterminate="YES" controlSize="small" style="spinning" translatesAutoresizingMaskIntoConstraints="NO" id="uWu-yJ-6n1">
25-
<rect key="frame" x="238" y="264" width="16" height="16"/>
25+
<rect key="frame" x="374" y="234" width="16" height="16"/>
2626
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
2727
</progressIndicator>
2828
<wkWebView wantsLayer="YES" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="1Pe-3f-qfo" userLabel="WebView" customClass="TranslateWebView" customModule="Translator" customModuleProvider="target">
29-
<rect key="frame" x="0.0" y="0.0" width="492" height="544"/>
29+
<rect key="frame" x="0.0" y="0.0" width="763" height="594"/>
3030
<autoresizingMask key="autoresizingMask"/>
3131
<wkWebViewConfiguration key="configuration">
3232
<audiovisualMediaTypes key="mediaTypesRequiringUserActionForPlayback" none="YES"/>
@@ -37,7 +37,7 @@
3737
</connections>
3838
</wkWebView>
3939
</subviews>
40-
<point key="canvasLocation" x="-13" y="61"/>
40+
<point key="canvasLocation" x="122.5" y="31"/>
4141
</customView>
4242
</objects>
4343
</document>

Translator/TranslateWebView.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,4 @@ class TranslateWebView: WKWebView {
4949
self.evaluateJavaScript(javascript, completionHandler: nil)
5050
}
5151
}
52-
53-
5452
}

0 commit comments

Comments
 (0)