Update localization and add preference to show the open panel at launch.

This commit is contained in:
Damiano Galassi committed 2020-02-13 11:47:49 +01:00
1 parent d5f6e1a642
commit 1363c6587d
6 files changed
+50 -35

No files matched your search

+35 -22
View File
@@ -24,19 +24,19 @@
</declaredKeys>
</userDefaultsController>
<customView id="76">
<rect key="frame" x="0.0" y="0.0" width="717" height="265"/>
<rect key="frame" x="0.0" y="0.0" width="655" height="299"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="77">
<rect key="frame" x="152" y="229" width="174" height="16"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Check for update:" id="89">
<rect key="frame" x="152" y="263" width="112" height="16"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="At Launch:" id="89">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="78">
<rect key="frame" x="152" y="205" width="174" height="16"/>
<rect key="frame" x="152" y="205" width="112" height="16"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Window:" id="88">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -44,17 +44,17 @@
</textFieldCell>
</textField>
<button translatesAutoresizingMaskIntoConstraints="NO" id="79">
<rect key="frame" x="330" y="228" width="232" height="18"/>
<buttonCell key="cell" type="check" title="Automatically check daily" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="87">
<rect key="frame" x="268" y="262" width="232" height="18"/>
<buttonCell key="cell" type="check" title="Show open panel" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="87">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<connections>
<binding destination="3" name="value" keyPath="values.SUEnableAutomaticChecks" id="90"/>
<binding destination="3" name="value" keyPath="values.SBShowOpenPanelAtLaunch" id="T36-sT-wu3"/>
</connections>
</button>
<button translatesAutoresizingMaskIntoConstraints="NO" id="80">
<rect key="frame" x="330" y="204" width="232" height="18"/>
<rect key="frame" x="268" y="204" width="232" height="18"/>
<buttonCell key="cell" type="check" title="Remember Size" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="86">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
@@ -68,7 +68,7 @@
</connections>
</button>
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="81">
<rect key="frame" x="152" y="181" width="174" height="16"/>
<rect key="frame" x="152" y="181" width="112" height="16"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Chapters:" id="85">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -76,7 +76,7 @@
</textFieldCell>
</textField>
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="206">
<rect key="frame" x="152" y="115" width="174" height="16"/>
<rect key="frame" x="152" y="115" width="112" height="16"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Show ratings for:" id="207">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -84,7 +84,7 @@
</textFieldCell>
</textField>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="1000" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="139">
<rect key="frame" x="152" y="54" width="174" height="16"/>
<rect key="frame" x="152" y="54" width="112" height="16"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Privacy:" id="140">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -92,7 +92,7 @@
</textFieldCell>
</textField>
<button translatesAutoresizingMaskIntoConstraints="NO" id="82">
<rect key="frame" x="330" y="180" width="232" height="18"/>
<rect key="frame" x="268" y="180" width="232" height="18"/>
<buttonCell key="cell" type="check" title="Create Preview Images at position:" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="84">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
@@ -106,7 +106,7 @@
</connections>
</button>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="133">
<rect key="frame" x="326" y="44" width="188" height="32"/>
<rect key="frame" x="264" y="44" width="188" height="32"/>
<buttonCell key="cell" type="push" title="Clear recent searches" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="134">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
@@ -116,7 +116,7 @@
</connections>
</button>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="136">
<rect key="frame" x="326" y="13" width="188" height="32"/>
<rect key="frame" x="264" y="13" width="188" height="32"/>
<buttonCell key="cell" type="push" title="Delete cached metadata" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="137">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
@@ -126,7 +126,7 @@
</connections>
</button>
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="236">
<rect key="frame" x="330" y="108" width="181" height="25"/>
<rect key="frame" x="268" y="108" width="181" height="25"/>
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="237">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
@@ -140,7 +140,7 @@
</connections>
</popUpButton>
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="249">
<rect key="frame" x="332" y="95" width="165" height="14"/>
<rect key="frame" x="270" y="95" width="165" height="14"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="USA ratings are always shown." id="250">
<font key="font" metaFont="menu" size="11"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -148,7 +148,7 @@
</textFieldCell>
</textField>
<slider verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="JhA-jk-CGt">
<rect key="frame" x="350" y="155" width="212" height="24"/>
<rect key="frame" x="288" y="155" width="212" height="24"/>
<constraints>
<constraint firstAttribute="width" constant="208" id="d5Y-wo-ULU"/>
</constraints>
@@ -159,7 +159,7 @@
</connections>
</slider>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="tVb-Qq-sU7">
<rect key="frame" x="486" y="139" width="76" height="17"/>
<rect key="frame" x="424" y="139" width="76" height="17"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="End" id="He0-rl-DBi">
<font key="font" metaFont="menu" size="11"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
@@ -167,7 +167,7 @@
</textFieldCell>
</textField>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="mNP-6I-gV4">
<rect key="frame" x="431" y="139" width="51" height="17"/>
<rect key="frame" x="369" y="139" width="51" height="17"/>
<constraints>
<constraint firstAttribute="width" constant="47" id="zjz-10-qHZ"/>
</constraints>
@@ -178,26 +178,38 @@
</textFieldCell>
</textField>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="XPF-Mh-XYC">
<rect key="frame" x="350" y="139" width="77" height="17"/>
<rect key="frame" x="288" y="139" width="77" height="17"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Beginning" id="3Vs-qA-7Z6">
<font key="font" metaFont="menu" size="11"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<button translatesAutoresizingMaskIntoConstraints="NO" id="B5v-6Q-3Qa">
<rect key="frame" x="268" y="242" width="242" height="18"/>
<buttonCell key="cell" type="check" title="Automatically check for update daily" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="2Pf-pq-4IX">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<connections>
<binding destination="3" name="value" keyPath="values.SUEnableAutomaticChecks" id="6AF-uh-wt7"/>
</connections>
</button>
</subviews>
<constraints>
<constraint firstItem="78" firstAttribute="top" secondItem="77" secondAttribute="bottom" constant="8" id="0x2-Rj-d0b"/>
<constraint firstItem="mNP-6I-gV4" firstAttribute="baseline" secondItem="tVb-Qq-sU7" secondAttribute="baseline" id="52b-ml-AZy"/>
<constraint firstItem="B5v-6Q-3Qa" firstAttribute="leading" secondItem="79" secondAttribute="leading" id="6xa-4g-AEx"/>
<constraint firstItem="236" firstAttribute="top" secondItem="JhA-jk-CGt" secondAttribute="bottom" constant="24" id="828-Eq-y4d"/>
<constraint firstItem="tVb-Qq-sU7" firstAttribute="leading" secondItem="mNP-6I-gV4" secondAttribute="trailing" constant="8" symbolic="YES" id="8Te-Q2-viz"/>
<constraint firstItem="236" firstAttribute="trailing" secondItem="133" secondAttribute="trailing" id="8iW-3R-Ofd"/>
<constraint firstItem="tVb-Qq-sU7" firstAttribute="trailing" secondItem="JhA-jk-CGt" secondAttribute="trailing" id="8jY-ZF-1WY"/>
<constraint firstItem="80" firstAttribute="top" secondItem="B5v-6Q-3Qa" secondAttribute="bottom" constant="24" id="9vF-Pm-5ij"/>
<constraint firstItem="249" firstAttribute="leading" secondItem="236" secondAttribute="leading" constant="2" id="CWh-CQ-Gjp"/>
<constraint firstItem="XPF-Mh-XYC" firstAttribute="baseline" secondItem="mNP-6I-gV4" secondAttribute="baseline" id="EE8-Yr-xvv"/>
<constraint firstItem="mNP-6I-gV4" firstAttribute="centerX" secondItem="JhA-jk-CGt" secondAttribute="centerX" id="FZ2-ZC-gmG"/>
<constraint firstItem="81" firstAttribute="width" secondItem="78" secondAttribute="width" id="H21-rp-ydr"/>
<constraint firstItem="mNP-6I-gV4" firstAttribute="firstBaseline" secondItem="tVb-Qq-sU7" secondAttribute="firstBaseline" id="HKj-xN-JbG"/>
<constraint firstItem="B5v-6Q-3Qa" firstAttribute="top" secondItem="79" secondAttribute="bottom" constant="6" id="HOu-Kc-vhe"/>
<constraint firstItem="136" firstAttribute="top" secondItem="133" secondAttribute="bottom" constant="10" id="HQd-fW-eDG"/>
<constraint firstItem="XPF-Mh-XYC" firstAttribute="leading" secondItem="JhA-jk-CGt" secondAttribute="leading" id="Iqr-2A-PS6"/>
<constraint firstItem="82" firstAttribute="baseline" secondItem="81" secondAttribute="baseline" id="JLw-rO-S2E"/>
@@ -225,6 +237,7 @@
<constraint firstItem="236" firstAttribute="top" secondItem="XPF-Mh-XYC" secondAttribute="bottom" constant="7" id="kqP-kQ-aBz"/>
<constraint firstItem="236" firstAttribute="leading" secondItem="206" secondAttribute="trailing" constant="8" symbolic="YES" id="mZd-aa-0Q2"/>
<constraint firstAttribute="bottom" secondItem="136" secondAttribute="bottom" constant="20" symbolic="YES" id="pLl-pH-cU7"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="B5v-6Q-3Qa" secondAttribute="trailing" constant="20" symbolic="YES" id="qHg-gP-9WJ"/>
<constraint firstItem="206" firstAttribute="baseline" secondItem="236" secondAttribute="baseline" id="rAr-lj-Ndl"/>
<constraint firstItem="77" firstAttribute="top" secondItem="76" secondAttribute="top" constant="20" id="svr-rg-ePI"/>
<constraint firstItem="77" firstAttribute="leading" secondItem="76" secondAttribute="leading" priority="750" constant="154" id="u5W-Da-Da8"/>
@@ -236,7 +249,7 @@
<constraint firstItem="JhA-jk-CGt" firstAttribute="top" secondItem="82" secondAttribute="bottom" constant="5" id="yP1-bp-6Pa"/>
<constraint firstAttribute="trailing" secondItem="79" secondAttribute="trailing" priority="750" constant="157" id="zbp-VJ-Uup"/>
</constraints>
<point key="canvasLocation" x="-160" y="-940"/>
<point key="canvasLocation" x="-191.5" y="-923.5"/>
</customView>
<userDefaultsController representsSharedInstance="YES" id="123"/>
</objects>
+3 -1
View File
@@ -224,7 +224,9 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
}
func applicationShouldOpenUntitledFile(_ sender: NSApplication) -> Bool {
documentController.openDocument(self)
if Prefs.showOpenPanelAtLaunch {
documentController.openDocument(self)
}
return false
}
+4 -1
View File
@@ -73,7 +73,7 @@ struct StoredCodable<T: Codable> : Registable {
enum Prefs {
static func register() {
ud.register(defaults: [_crashOnException, _saveFormat, _organizeAlternateGroups, _defaultSaveFormat,
ud.register(defaults: [_crashOnException, _showOpenPanelAtLaunch, _saveFormat, _organizeAlternateGroups, _defaultSaveFormat,
_organizeAlternateGroups, _inferMediaCharacteristics, _audioMixdown,
_audioBitrate, _audioDRC, _audioConvertAC3, _audioKeepAC3, _audioConvertDts,
_audioDtsOptions, _subtitleConvertBitmap, _ratingsCountry, _chaptersPreviewPosition,
@@ -83,6 +83,9 @@ enum Prefs {
@Stored(key: "NSApplicationCrashOnException", defaultValue: true)
private static var crashOnException: Bool
@Stored(key: "SBShowOpenPanelAtLaunch", defaultValue: true)
static var showOpenPanelAtLaunch: Bool
@Stored(key: "SBIgnoreDonationAlert", defaultValue: false)
static var suppressDonationAlert: Bool
+7 -4
View File
@@ -1,6 +1,9 @@
/* Class = "NSTextFieldCell"; title = "Middle"; ObjectID = "2o1-dB-mt1"; */
"2o1-dB-mt1.title" = "Metà";
/* Class = "NSButtonCell"; title = "Automatically check for update daily"; ObjectID = "2Pf-pq-4IX"; */
"2Pf-pq-4IX.title" = "Controlla automaticamente per aggiornamenti ogni giorno";
/* Class = "NSTextFieldCell"; title = "Beginning"; ObjectID = "3Vs-qA-7Z6"; */
"3Vs-qA-7Z6.title" = "Inizio";
@@ -13,14 +16,14 @@
/* Class = "NSButtonCell"; title = "Remember Size"; ObjectID = "86"; */
"86.title" = "Ricorda dimensione";
/* Class = "NSButtonCell"; title = "Automatically check daily"; ObjectID = "87"; */
"87.title" = "Controlla automaticamente ogni giorno";
/* Class = "NSButtonCell"; title = "Show open panel"; ObjectID = "87"; */
"87.title" = "Mostra il pannello di apertura";
/* Class = "NSTextFieldCell"; title = "Window:"; ObjectID = "88"; */
"88.title" = "Finestra:";
/* Class = "NSTextFieldCell"; title = "Check for update:"; ObjectID = "89"; */
"89.title" = "Ricerca aggiornamenti:";
/* Class = "NSTextFieldCell"; title = "At Launch:"; ObjectID = "89"; */
"89.title" = "All'avvio:";
/* Class = "NSButtonCell"; title = "Clear recent searches"; ObjectID = "134"; */
"134.title" = "Cancella ricerche recenti";
+1 -1
View File
@@ -1,5 +1,5 @@
/* Privacy - AppleEvents Sending Usage Description */
"NSAppleEventsUsageDescription" = "Subler ha bisogno dell'autorizzazione per aggiungere i filmati ad iTunes";
"NSAppleEventsUsageDescription" = "Subler ha bisogno dell'autorizzazione per aggiungere i filmati ad iTunes o a TV";
/* (No Comment) */
"SRT Subtitles" = "Sottotitoli SRT";
-6
View File
@@ -31,9 +31,6 @@
/* Class = "CocoaBindingsConnection"; ibShadowedNotApplicablePlaceholder = "None"; ObjectID = "4rl-TJ-0yZ"; */
"4rl-TJ-0yZ.ibShadowedNotApplicablePlaceholder" = "Nessuno";
/* Class = "NSMenuItem"; title = "Square"; ObjectID = "7zv-RG-1w4"; */
"7zv-RG-1w4.title" = "Square";
/* Class = "NSButton"; ibShadowedToolTip = "Clear existing metadata"; ObjectID = "9GN-f6-r2j"; */
"9GN-f6-r2j.ibShadowedToolTip" = "Cancella metadata esistenti";
@@ -97,9 +94,6 @@
/* Class = "NSTextFieldCell"; title = "Language:"; ObjectID = "GBM-Sa-9GJ"; */
"GBM-Sa-9GJ.title" = "Lingua:";
/* Class = "NSMenuItem"; title = "iTunes"; ObjectID = "GXR-5u-c8a"; */
"GXR-5u-c8a.title" = "iTunes";
/* Class = "NSButtonCell"; title = "Fetch Metadata"; ObjectID = "h5x-un-6cJ"; */
"h5x-un-6cJ.title" = "Trova metadata";