Skip to content

Commit

Permalink
Localizations
Browse files Browse the repository at this point in the history
  • Loading branch information
objective-see committed Aug 1, 2024
1 parent 69611af commit 8b2649f
Show file tree
Hide file tree
Showing 34 changed files with 2,087 additions and 295 deletions.
2 changes: 1 addition & 1 deletion LuLu/App/AboutWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ -(void)windowDidLoad
}

//set version sting
self.versionLabel.stringValue = version;
self.versionLabel.stringValue = [NSString stringWithFormat:NSLocalizedString(@"Version: %@", @"Version: %@"), version];

//load patrons
self.patrons.string = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"patrons" ofType:@"txt"] encoding:NSUTF8StringEncoding error:NULL];
Expand Down
8 changes: 4 additions & 4 deletions LuLu/App/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ -(void)completeInitialization:(NSDictionary*)initialPreferences
//dbg msg
os_log_debug(logHandle, "running in 'no icon' mode (so no need for status bar)");
}

//automatically check for updates?
// skipped if launched by user (e.g. first time run)
if( (YES != launchedByUser()) &&
Expand Down Expand Up @@ -623,18 +623,18 @@ -(void)check4Update
switch(result)
{
//error
case -1:
case UPDATE_ERROR:
os_log_error(logHandle, "ERROR: update check failed");
break;

//no updates
case 0:
case UPDATE_NOTHING_NEW:
os_log_debug(logHandle, "no updates available");
break;

//new version
// show update window
case 1:
case UPDATE_NEW_VERSION:

//dbg msg
os_log_debug(logHandle, "a new version (%@) is available", newVersion);
Expand Down
35 changes: 0 additions & 35 deletions LuLu/App/Assets.xcassets/FriendsMosyle.imageset/Contents.json

This file was deleted.

Binary file not shown.
Binary file not shown.
19 changes: 19 additions & 0 deletions LuLu/App/Assets.xcassets/InstallAllow.imageset/Contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,29 @@
{
"idiom" : "universal",
"scale" : "3x"
},
{
"filename" : "allow_es.png",
"idiom" : "universal",
"locale" : "es",
"scale" : "1x"
},
{
"idiom" : "universal",
"locale" : "es",
"scale" : "2x"
},
{
"idiom" : "universal",
"locale" : "es",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"localizable" : true
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions LuLu/App/Assets.xcassets/InstallApprove.imageset/Contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,29 @@
{
"idiom" : "universal",
"scale" : "3x"
},
{
"filename" : "approve_es.png",
"idiom" : "universal",
"locale" : "es",
"scale" : "1x"
},
{
"idiom" : "universal",
"locale" : "es",
"scale" : "2x"
},
{
"idiom" : "universal",
"locale" : "es",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"localizable" : true
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions LuLu/App/Assets.xcassets/InstallAuth.imageset/Contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,29 @@
{
"idiom" : "universal",
"scale" : "3x"
},
{
"filename" : "auth_es.png",
"idiom" : "universal",
"locale" : "es",
"scale" : "1x"
},
{
"idiom" : "universal",
"locale" : "es",
"scale" : "2x"
},
{
"idiom" : "universal",
"locale" : "es",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"localizable" : true
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions LuLu/App/Assets.xcassets/InstallBlocked.imageset/Contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,29 @@
{
"idiom" : "universal",
"scale" : "3x"
},
{
"filename" : "blocked_es.png",
"idiom" : "universal",
"locale" : "es",
"scale" : "1x"
},
{
"idiom" : "universal",
"locale" : "es",
"scale" : "2x"
},
{
"idiom" : "universal",
"locale" : "es",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"localizable" : true
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 15 additions & 15 deletions LuLu/App/Base.lproj/AboutWindow.xib
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,16 @@
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="MainAppLuLuText" id="Ws8-bD-j2R"/>
</imageView>
<button tag="101" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="HZZ-Es-mpy">
<rect key="frame" x="344" y="13" width="128" height="32"/>
<rect key="frame" x="13" y="13" width="165" height="32"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="push" title="More Info" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="J9x-sM-h9S">
<buttonCell key="cell" type="push" title="More Information" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="J9x-sM-h9S">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" size="13" name="Menlo-Regular"/>
</buttonCell>
<connections>
<action selector="buttonHandler:" target="-2" id="Cgx-f4-Thr"/>
</connections>
</button>
<button tag="100" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="xnd-Gw-0o8">
<rect key="frame" x="201" y="13" width="128" height="32"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="push" title="Support Us!" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="6g3-Pg-x3P">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" size="13" name="Menlo-Regular"/>
</buttonCell>
<connections>
<action selector="buttonHandler:" target="-2" id="gP0-s7-o6h"/>
</connections>
</button>
<scrollView fixedFrame="YES" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5if-J7-OZf">
<rect key="frame" x="20" y="68" width="446" height="97"/>
<autoresizingMask key="autoresizingMask"/>
Expand Down Expand Up @@ -92,9 +81,9 @@
</scroller>
</scrollView>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="fZJ-sG-ZuJ">
<rect key="frame" x="20" y="166" width="153" height="19"/>
<rect key="frame" x="20" y="166" width="447" height="19"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Supporters/Patrons:" id="fJg-qw-wDf">
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Patrons &amp; Friends" id="fJg-qw-wDf">
<font key="font" size="13" name="Menlo-Regular"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
Expand All @@ -109,6 +98,17 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<button tag="100" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="xnd-Gw-0o8">
<rect key="frame" x="308" y="13" width="165" height="32"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="push" title="Support Us!" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="6g3-Pg-x3P">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" size="13" name="Menlo-Regular"/>
</buttonCell>
<connections>
<action selector="buttonHandler:" target="-2" id="gP0-s7-o6h"/>
</connections>
</button>
</subviews>
</view>
<connections>
Expand Down
Loading

0 comments on commit 8b2649f

Please sign in to comment.