Added some localize strings.

This commit is contained in:
Damiano Galassi committed 2016-02-18 13:26:19 +01:00
1 parent c6c8705ce2
commit f78185270c
17 files changed
+73 -95

No files matched your search

@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="8187.4" systemVersion="15A262e" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="10109" systemVersion="15E39d" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="8187.4"/>
<plugIn identifier="com.apple.imagekit.ibplugin" version="8187.4"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="10109"/>
<plugIn identifier="com.apple.imagekit.ibplugin" version="10109"/>
<capability name="box content view" minToolsVersion="7.0"/>
</dependencies>
<objects>
@@ -35,7 +35,6 @@
<tabView controlSize="small" id="10">
<rect key="frame" x="-11" y="-12" width="502" height="279"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<animations/>
<tabViewItems>
<tabViewItem label="Metadata" identifier="1" id="11">
<view key="view" id="12">
@@ -50,9 +49,8 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView focusRingType="none" verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" alternatingRowBackgroundColors="YES" columnReordering="NO" columnSelection="YES" autosaveColumns="NO" rowHeight="14" headerView="23" id="22" customClass="SBTableView">
<rect key="frame" x="0.0" y="0.0" width="446" height="181"/>
<rect key="frame" x="0.0" y="0.0" width="446" height="16"/>
<autoresizingMask key="autoresizingMask"/>
<animations/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
<tableViewGridLines key="gridStyleMask" vertical="YES"/>
@@ -338,30 +336,24 @@
</connections>
</tableView>
</subviews>
<animations/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
</clipView>
<animations/>
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" controlSize="small" horizontal="YES" id="21">
<rect key="frame" x="1" y="184" width="446" height="14"/>
<autoresizingMask key="autoresizingMask"/>
<animations/>
</scroller>
<scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" controlSize="small" horizontal="NO" id="20">
<rect key="frame" x="412" y="17" width="11" height="152"/>
<autoresizingMask key="autoresizingMask"/>
<animations/>
</scroller>
<tableHeaderView key="headerView" id="23">
<rect key="frame" x="0.0" y="0.0" width="446" height="17"/>
<autoresizingMask key="autoresizingMask"/>
<animations/>
</tableHeaderView>
</scrollView>
<popUpButton verticalHuggingPriority="750" id="30">
<rect key="frame" x="17" y="7" width="32" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<animations/>
<popUpButtonCell key="cell" type="smallSquare" bezelStyle="smallSquare" alignment="center" controlSize="small" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" inset="2" pullsDown="YES" selectedItem="33" id="31">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
@@ -380,7 +372,6 @@
<button verticalHuggingPriority="750" id="53">
<rect key="frame" x="48" y="7" width="24" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<animations/>
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="54">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
@@ -392,7 +383,6 @@
<popUpButton verticalHuggingPriority="750" id="179">
<rect key="frame" x="80" y="7" width="33" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<animations/>
<popUpButtonCell key="cell" type="smallSquare" bezelStyle="smallSquare" alignment="center" controlSize="small" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" pullsDown="YES" selectedItem="184" id="180">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
@@ -406,7 +396,6 @@
</popUpButtonCell>
</popUpButton>
</subviews>
<animations/>
</view>
</tabViewItem>
<tabViewItem label="Artwork" identifier="Item 1" id="15">
@@ -424,7 +413,6 @@
<ikImageBrowserView autoresizesSubviews="NO" zoomValue="1" allowsReordering="YES" animates="YES" id="217" customClass="SBImageBrowserView">
<rect key="frame" x="0.0" y="0.0" width="446" height="197"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<animations/>
<autoresizingMask key="contentResizingMask" heightSizable="YES"/>
<size key="cellSize" width="177" height="177"/>
<connections>
@@ -437,24 +425,19 @@
</connections>
</ikImageBrowserView>
</subviews>
<animations/>
</clipView>
<animations/>
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="216">
<rect key="frame" x="-100" y="-100" width="438" height="15"/>
<autoresizingMask key="autoresizingMask"/>
<animations/>
</scroller>
<scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="215">
<rect key="frame" x="424" y="1" width="15" height="250"/>
<autoresizingMask key="autoresizingMask"/>
<animations/>
</scroller>
</scrollView>
<button verticalHuggingPriority="750" id="223">
<rect key="frame" x="17" y="7" width="24" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<animations/>
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="224">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
@@ -466,7 +449,6 @@
<button verticalHuggingPriority="750" id="226">
<rect key="frame" x="40" y="7" width="24" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<animations/>
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="227">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
@@ -478,14 +460,12 @@
<slider verticalHuggingPriority="750" id="235">
<rect key="frame" x="350" y="11" width="115" height="15"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
<animations/>
<sliderCell key="cell" controlSize="small" continuous="YES" state="on" alignment="left" maxValue="2" doubleValue="1" tickMarkPosition="above" sliderType="linear" id="236"/>
<connections>
<action selector="zoomSliderDidChange:" target="-2" id="237"/>
</connections>
</slider>
</subviews>
<animations/>
</view>
</tabViewItem>
<tabViewItem label="Other Settings" identifier="Item 2" id="40">
@@ -503,7 +483,6 @@
<button id="57">
<rect key="frame" x="122" y="53" width="71" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
<animations/>
<buttonCell key="cell" type="check" title="Gapless" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" inset="2" id="58">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/>
@@ -515,7 +494,6 @@
<button id="194">
<rect key="frame" x="122" y="33" width="71" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
<animations/>
<buttonCell key="cell" type="check" title="Podcast" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" inset="2" id="195">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/>
@@ -527,7 +505,6 @@
<popUpButton verticalHuggingPriority="750" id="59">
<rect key="frame" x="122" y="139" width="143" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
<animations/>
<popUpButtonCell key="cell" type="push" title="Normal (Music)" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" tag="1" imageScaling="proportionallyDown" inset="2" selectedItem="212" id="60">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
@@ -562,7 +539,6 @@
<textField verticalHuggingPriority="750" id="72">
<rect key="frame" x="52" y="143" width="67" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
<animations/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Media Kind:" id="73">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -572,7 +548,6 @@
<popUpButton verticalHuggingPriority="750" id="74">
<rect key="frame" x="122" y="112" width="143" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
<animations/>
<popUpButtonCell key="cell" type="push" title="None" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="86" id="77">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
@@ -591,7 +566,6 @@
<textField verticalHuggingPriority="750" id="75">
<rect key="frame" x="32" y="117" width="88" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
<animations/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Content Rating:" id="76">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -601,7 +575,6 @@
<popUpButton verticalHuggingPriority="750" id="199">
<rect key="frame" x="121" y="85" width="143" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
<animations/>
<popUpButtonCell key="cell" type="push" title="No" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="206" id="202">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
@@ -620,7 +593,6 @@
<textField verticalHuggingPriority="750" id="200">
<rect key="frame" x="95" y="90" width="24" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
<animations/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="HD:" id="201">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -630,7 +602,6 @@
<textField verticalHuggingPriority="750" id="139">
<rect key="frame" x="70" y="55" width="50" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
<animations/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Options:" id="140">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -638,21 +609,20 @@
</textFieldCell>
</textField>
</subviews>
<animations/>
</view>
<animations/>
<color key="borderColor" white="0.0" alpha="0.41999999999999998" colorSpace="calibratedWhite"/>
<color key="fillColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<font key="titleFont" size="11" name="LucidaGrande"/>
</box>
</subviews>
<animations/>
</view>
</tabViewItem>
</tabViewItems>
<connections>
<binding destination="z7a-RX-pNz" name="selectedIndex" keyPath="values.SBMovieViewSelectedTab" id="KmJ-1f-S0j"/>
</connections>
</tabView>
</subviews>
<animations/>
<point key="canvasLocation" x="422" y="477"/>
</customView>
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" visibleAtLaunch="NO" animationBehavior="default" id="167" userLabel="Preset Save">
@@ -667,7 +637,6 @@
<textField verticalHuggingPriority="750" id="173">
<rect key="frame" x="17" y="90" width="87" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Preset Name:" id="174">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -677,7 +646,6 @@
<textField verticalHuggingPriority="750" id="171">
<rect key="frame" x="20" y="60" width="306" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="176">
<font key="font" metaFont="system"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
@@ -687,7 +655,6 @@
<button verticalHuggingPriority="750" id="170">
<rect key="frame" x="236" y="12" width="96" height="32"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
<animations/>
<buttonCell key="cell" type="push" title="Save" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="177">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
@@ -702,7 +669,6 @@ DQ
<button verticalHuggingPriority="750" id="169">
<rect key="frame" x="140" y="12" width="96" height="32"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
<animations/>
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="178">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
@@ -715,9 +681,9 @@ Gw
</connections>
</button>
</subviews>
<animations/>
</view>
</window>
<userDefaultsController representsSharedInstance="YES" id="z7a-RX-pNz"/>
</objects>
<resources>
<image name="NSAddTemplate" width="11" height="11"/>
@@ -181,9 +181,13 @@
</view>
</tabViewItem>
</tabViewItems>
<connections>
<binding destination="4fy-2Z-RG4" name="selectedIndex" keyPath="values.SBAudioViewSelectedTab" id="1E1-hV-2e3"/>
</connections>
</tabView>
</subviews>
<point key="canvasLocation" x="238" y="237"/>
</customView>
<userDefaultsController representsSharedInstance="YES" id="4fy-2Z-RG4"/>
</objects>
</document>
@@ -416,9 +416,13 @@
</view>
</tabViewItem>
</tabViewItems>
<connections>
<binding destination="D8b-lE-U3e" name="selectedIndex" keyPath="values.SBVideoViewSelectedTab" id="GqG-rq-acB"/>
</connections>
</tabView>
</subviews>
<point key="canvasLocation" x="167" y="-220.5"/>
</customView>
<userDefaultsController representsSharedInstance="YES" id="D8b-lE-U3e"/>
</objects>
</document>
+9 -9
View File
@@ -132,7 +132,7 @@ NSString *MetadataPBoardType = @"SublerMetadataPBoardType";
[[undo prepareWithInvocationTarget:self] remove:data];
if (![undo isUndoing]) {
[undo setActionName:@"Insert"];
[undo setActionName:NSLocalizedString(@"Insert", @"Undo tag insert.")];
}
[self updateTagsArray];
@@ -151,7 +151,7 @@ NSString *MetadataPBoardType = @"SublerMetadataPBoardType";
[[undo prepareWithInvocationTarget:self] add:data];
if (![undo isUndoing]) {
[undo setActionName:@"Delete"];
[undo setActionName:NSLocalizedString(@"Delete", @"Undo tag delete")];
}
[self updateTagsArray];
@@ -194,7 +194,7 @@ NSString *MetadataPBoardType = @"SublerMetadataPBoardType";
[[undo prepareWithInvocationTarget:self] updateMetadata:oldValue
forKey:key];
if (![undo isUndoing]) {
[undo setActionName:@"Editing"];
[undo setActionName:NSLocalizedString(@"Editing", @"Undo tag editing.")];
}
}
[oldValue release];
@@ -286,23 +286,23 @@ NSString *MetadataPBoardType = @"SublerMetadataPBoardType";
[setListMenu removeItemAtIndex: 1];
}
NSMenuItem *newItem = [[[NSMenuItem alloc] initWithTitle:@"Save Set" action:@selector(showSaveSet:) keyEquivalent:@""] autorelease];
NSMenuItem *newItem = [[[NSMenuItem alloc] initWithTitle:NSLocalizedString(@"Save Set", @"Set menu") action:@selector(showSaveSet:) keyEquivalent:@""] autorelease];
[newItem setTarget:self];
[setListMenu addItem:newItem];
[setListMenu addItem:[NSMenuItem separatorItem]];
newItem = [[[NSMenuItem alloc] initWithTitle:@"All" action:@selector(addMetadataSet:) keyEquivalent:@""] autorelease];
newItem = [[[NSMenuItem alloc] initWithTitle:NSLocalizedString(@"All", @"Set menu All set") action:@selector(addMetadataSet:) keyEquivalent:@""] autorelease];
[newItem setTarget:self];
[newItem setTag: 0];
[setListMenu addItem:newItem];
newItem = [[[NSMenuItem alloc] initWithTitle:@"Movie" action:@selector(addMetadataSet:) keyEquivalent:@""] autorelease];
newItem = [[[NSMenuItem alloc] initWithTitle:NSLocalizedString(@"Movie", @"Set menu Movie set") action:@selector(addMetadataSet:) keyEquivalent:@""] autorelease];
[newItem setTarget:self];
[newItem setTag: 1];
[setListMenu addItem:newItem];
newItem = [[[NSMenuItem alloc] initWithTitle:@"TV Show" action:@selector(addMetadataSet:) keyEquivalent:@""] autorelease];
newItem = [[[NSMenuItem alloc] initWithTitle:NSLocalizedString(@"TV Show", @"Set menu TV Show Set") action:@selector(addMetadataSet:) keyEquivalent:@""] autorelease];
[newItem setTarget:self];
[newItem setTag: 2];
[setListMenu addItem:newItem];
@@ -598,7 +598,7 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn
[[undo prepareWithInvocationTarget:self] changeGapless: self];
if (![undo isUndoing]) {
[undo setActionName:@"Check Gapless"];
[undo setActionName:NSLocalizedString(@"Check Gapless", @"Undo check gapless")];
}
}
@@ -621,7 +621,7 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn
[[undo prepareWithInvocationTarget:self] changePodcast: self];
if (![undo isUndoing]) {
[undo setActionName:@"Check Podast"];
[undo setActionName:NSLocalizedString(@"Check Podast", @"Undo check podcast")];
}
}
@@ -328,6 +328,8 @@ static NSString *getLevelName(uint8_t level) {
[_forced release];
[_mediaTagsController release];
[super dealloc];
}