mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-24 07:39:54 +00:00
Added localization stubbs for IconSelectionView
This commit is contained in:
@@ -72,6 +72,7 @@
|
||||
<constraint firstItem="57" firstAttribute="leading" secondItem="1" secondAttribute="leading" constant="10" id="111"/>
|
||||
<constraint firstItem="101" firstAttribute="top" secondItem="57" secondAttribute="bottom" constant="8" symbolic="YES" id="112"/>
|
||||
</constraints>
|
||||
<point key="canvasLocation" x="370" y="95"/>
|
||||
</customView>
|
||||
<collectionViewItem id="61">
|
||||
<connections>
|
||||
@@ -15,7 +15,7 @@
|
||||
<window title="Welcome" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="1">
|
||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES"/>
|
||||
<rect key="contentRect" x="196" y="240" width="448" height="255"/>
|
||||
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1418"/>
|
||||
<rect key="screenRect" x="0.0" y="0.0" width="1680" height="1028"/>
|
||||
<view key="contentView" id="2">
|
||||
<rect key="frame" x="0.0" y="0.0" width="448" height="255"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
|
||||
@@ -15,11 +15,9 @@ FOUNDATION_EXTERN NSInteger const kMPDefaultIcon;
|
||||
/**
|
||||
* Is the selected Icon, kMPDefaultIcon if the default icons was selected
|
||||
*/
|
||||
@property (nonatomic, assign) NSInteger selectedIcon;
|
||||
@property (nonatomic, assign) BOOL didCancel;
|
||||
@property (nonatomic, readonly, assign) NSInteger selectedIcon;
|
||||
@property (nonatomic, readonly, assign) BOOL didCancel;
|
||||
|
||||
@property (weak) IBOutlet NSCollectionView *iconCollectionView;
|
||||
@property (weak) IBOutlet NSButton *imageButton;
|
||||
@property (weak) NSPopover *popover;
|
||||
|
||||
- (void)reset;
|
||||
|
||||
@@ -14,6 +14,14 @@
|
||||
NSInteger const kMPDefaultIcon = -1;
|
||||
|
||||
@interface MPIconSelectViewController ()
|
||||
|
||||
@property (nonatomic, assign) NSInteger selectedIcon;
|
||||
@property (nonatomic, assign) BOOL didCancel;
|
||||
|
||||
/* UI properties */
|
||||
@property (weak) IBOutlet NSCollectionView *iconCollectionView;
|
||||
@property (weak) IBOutlet NSButton *imageButton;
|
||||
|
||||
@end
|
||||
|
||||
@implementation MPIconSelectViewController
|
||||
@@ -26,6 +34,7 @@ NSInteger const kMPDefaultIcon = -1;
|
||||
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
|
||||
if (self) {
|
||||
_didCancel = YES;
|
||||
_selectedIcon = kMPDefaultIcon;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
6
MacPass/de.lproj/IconSelection.strings
Normal file
6
MacPass/de.lproj/IconSelection.strings
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
/* Class = "NSButtonCell"; title = "Use Default Icon"; ObjectID = "102"; */
|
||||
"102.title" = "Standardicon verwenden";
|
||||
|
||||
/* Class = "NSButtonCell"; title = "Cancel"; ObjectID = "1kM-cI-P1o"; */
|
||||
"1kM-cI-P1o.title" = "Abbrechen";
|
||||
6
MacPass/en.lproj/IconSelection.strings
Normal file
6
MacPass/en.lproj/IconSelection.strings
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
/* Class = "NSButtonCell"; title = "Use Default Icon"; ObjectID = "102"; */
|
||||
"102.title" = "Use Default Icon";
|
||||
|
||||
/* Class = "NSButtonCell"; title = "Cancel"; ObjectID = "1kM-cI-P1o"; */
|
||||
"1kM-cI-P1o.title" = "Cancel";
|
||||
6
MacPass/fr.lproj/IconSelection.strings
Normal file
6
MacPass/fr.lproj/IconSelection.strings
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
/* Class = "NSButtonCell"; title = "Use Default Icon"; ObjectID = "102"; */
|
||||
"102.title" = "Use Default Icon";
|
||||
|
||||
/* Class = "NSButtonCell"; title = "Cancel"; ObjectID = "1kM-cI-P1o"; */
|
||||
"1kM-cI-P1o.title" = "Cancel";
|
||||
6
MacPass/nl.lproj/IconSelection.strings
Normal file
6
MacPass/nl.lproj/IconSelection.strings
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
/* Class = "NSButtonCell"; title = "Use Default Icon"; ObjectID = "102"; */
|
||||
"102.title" = "Use Default Icon";
|
||||
|
||||
/* Class = "NSButtonCell"; title = "Cancel"; ObjectID = "1kM-cI-P1o"; */
|
||||
"1kM-cI-P1o.title" = "Cancel";
|
||||
6
MacPass/zh-Hans.lproj/IconSelection.strings
Normal file
6
MacPass/zh-Hans.lproj/IconSelection.strings
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
/* Class = "NSButtonCell"; title = "Use Default Icon"; ObjectID = "102"; */
|
||||
"102.title" = "Use Default Icon";
|
||||
|
||||
/* Class = "NSButtonCell"; title = "Cancel"; ObjectID = "1kM-cI-P1o"; */
|
||||
"1kM-cI-P1o.title" = "Cancel";
|
||||
Reference in New Issue
Block a user