Skip to content

Commit

Permalink
Complete it_IT localization
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgio Calderolla committed Mar 21, 2021
1 parent 22f7663 commit 177f5a4
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 2 deletions.
18 changes: 18 additions & 0 deletions AddFeedView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import AppKit


class AddFeedView: NSView {
@IBOutlet weak var feedNameField: NSTextField!

@IBOutlet weak var addButton: NSButton!
@IBOutlet weak var cancelButton: NSButton!

override func awakeFromNib() {
super.awakeFromNib()

feedNameField.placeholderString = NSLocalizedString("Feed Name", comment: "")

addButton.title = NSLocalizedString("Add Feed", comment: "")
cancelButton.title = NSLocalizedString("Cancel", comment: "")
}
}
4 changes: 4 additions & 0 deletions Catch.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
A74F608D25B57C6100BA52A0 /* FeedContentsController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A74F608C25B57C6100BA52A0 /* FeedContentsController.swift */; };
A74F609525B5C27100BA52A0 /* FeedCellView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A74F609425B5C27100BA52A0 /* FeedCellView.swift */; };
A77DD09625B43CF400886D57 /* PreferencesView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A77DD09525B43CF400886D57 /* PreferencesView.swift */; };
A7FA8FE226072836002FC21E /* AddFeedView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7FA8FE126072836002FC21E /* AddFeedView.swift */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -186,6 +187,7 @@
A74F608C25B57C6100BA52A0 /* FeedContentsController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = FeedContentsController.swift; path = Sources/App/FeedContentsController.swift; sourceTree = "<group>"; };
A74F609425B5C27100BA52A0 /* FeedCellView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = FeedCellView.swift; path = Sources/App/FeedCellView.swift; sourceTree = "<group>"; };
A77DD09525B43CF400886D57 /* PreferencesView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = PreferencesView.swift; path = Sources/App/PreferencesView.swift; sourceTree = "<group>"; };
A7FA8FE126072836002FC21E /* AddFeedView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddFeedView.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -284,6 +286,7 @@
4439DFD719B5E45700408851 /* Views */ = {
isa = PBXGroup;
children = (
A7FA8FE126072836002FC21E /* AddFeedView.swift */,
44BA5D151DAECF1A00A9CE9A /* RecentsCellView.swift */,
A74F609425B5C27100BA52A0 /* FeedCellView.swift */,
A77DD09525B43CF400886D57 /* PreferencesView.swift */,
Expand Down Expand Up @@ -581,6 +584,7 @@
4441F59624308C8D001AEC1E /* Scripts.swift in Sources */,
44B363461DC99D1900128259 /* FeedChecker.swift in Sources */,
44C8198B220D73DC00D9DAAD /* OPMLParser.swift in Sources */,
A7FA8FE226072836002FC21E /* AddFeedView.swift in Sources */,
44BA5D121DAEC0C400A9CE9A /* WindowShakeAnimation.swift in Sources */,
447E0F731DDAB24C001048AB /* FileUtils.swift in Sources */,
44B3634A1DC9BF1B00128259 /* Config.swift in Sources */,
Expand Down
10 changes: 8 additions & 2 deletions Resources/App/Base.lproj/UI.xib
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ DQ
<outlet property="importFromOPMLButton" destination="SIo-Vm-tN9" id="lme-NT-tYN"/>
<outlet property="openAutomaticallyCheckbox" destination="shg-7R-wuU" id="wCo-7O-0Ts"/>
<outlet property="organizeCheckbox" destination="bJl-7q-4yr" id="jET-Ex-bVY"/>
<outlet property="saveToLabel" destination="5qh-sS-yih" id="Y9T-XU-dwg"/>
<outlet property="toolBar" destination="604" id="EEc-Ql-Y2W"/>
</connections>
</view>
Expand Down Expand Up @@ -783,7 +784,7 @@ DQ
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
<rect key="contentRect" x="196" y="213" width="572" height="151"/>
<rect key="screenRect" x="0.0" y="0.0" width="1920" height="1080"/>
<view key="contentView" id="JVG-A7-ap0">
<view key="contentView" id="JVG-A7-ap0" customClass="AddFeedView" customModule="Catch" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="572" height="132"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
Expand Down Expand Up @@ -850,6 +851,11 @@ DQ
<constraint firstItem="PoK-lg-pPH" firstAttribute="top" secondItem="ygd-lr-Dgm" secondAttribute="bottom" constant="20" id="mzo-rJ-EGt"/>
<constraint firstAttribute="trailing" secondItem="ygd-lr-Dgm" secondAttribute="trailing" constant="20" symbolic="YES" id="ptW-zT-nAR"/>
</constraints>
<connections>
<outlet property="addButton" destination="PoK-lg-pPH" id="yuN-UQ-wgj"/>
<outlet property="cancelButton" destination="rXP-L3-jvF" id="Yga-jR-9Xg"/>
<outlet property="feedNameField" destination="MSZ-yJ-ndF" id="bFb-oF-VgZ"/>
</connections>
</view>
<point key="canvasLocation" x="135" y="-402.5"/>
</window>
Expand All @@ -865,7 +871,7 @@ DQ
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<clipView key="contentView" drawsBackground="NO" id="5cr-bY-gGX">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textView editable="NO" importsGraphics="NO" richText="NO" verticallyResizable="YES" smartInsertDelete="YES" id="nMY-Wr-a2c">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
Expand Down
Binary file modified Resources/App/en.lproj/Localizable.strings
Binary file not shown.
Binary file modified Resources/App/it.lproj/Localizable.strings
Binary file not shown.
Binary file modified Resources/App/it.lproj/UI.strings
Binary file not shown.
2 changes: 2 additions & 0 deletions Sources/App/FeedContentsController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class FeedContentsController: NSWindowController {
override func awakeFromNib() {
super.awakeFromNib()

window?.title = NSLocalizedString("Feed Contents", comment: "")

if #available(OSX 10.15, *) {
textView.font = .monospacedSystemFont(ofSize: 12, weight: .regular)
}
Expand Down
2 changes: 2 additions & 0 deletions Sources/App/PreferencesView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import AppKit
class PreferencesView: NSView {
@IBOutlet weak var importFromOPMLButton: NSButton!

@IBOutlet weak var saveToLabel: NSTextField!
@IBOutlet weak var organizeCheckbox: NSButton!
@IBOutlet weak var openAutomaticallyCheckbox: NSButton!
@IBOutlet weak var downloadScriptCheckbox: NSButton!
Expand All @@ -15,6 +16,7 @@ class PreferencesView: NSView {

importFromOPMLButton.title = NSLocalizedString("Import From OPML File…", comment: "")

saveToLabel.stringValue = NSLocalizedString("Save to:", comment: "")
organizeCheckbox.title = NSLocalizedString("Organize in folders by show name", comment: "")
openAutomaticallyCheckbox.title = NSLocalizedString("Open automatically", comment: "")
downloadScriptCheckbox.title = NSLocalizedString("Download using script:", comment: "")
Expand Down

0 comments on commit 177f5a4

Please sign in to comment.