Changeset 3156


Ignore:
Timestamp:
Sep 24, 2007, 12:28:44 PM (14 years ago)
Author:
livings124
Message:

delocalize About window

Location:
trunk
Files:
6 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Transmission.xcodeproj/project.pbxproj

    r3150 r3156  
    6868                A2041D530C9AC523000ACFFB /* Lock.tiff in Resources */ = {isa = PBXBuildFile; fileRef = A2041D520C9AC523000ACFFB /* Lock.tiff */; };
    6969                A2085DDC0C53BC74000BC3B7 /* AboutWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = A2085DDA0C53BC74000BC3B7 /* AboutWindowController.m */; };
    70                 A2085E020C53C16F000BC3B7 /* AboutWindow.nib in Resources */ = {isa = PBXBuildFile; fileRef = A2085E000C53C16F000BC3B7 /* AboutWindow.nib */; };
    7170                A2085E3F0C53C949000BC3B7 /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = A2085E2F0C53C833000BC3B7 /* LICENSE */; };
    7271                A20AB97B0A5C622A004F81FA /* SmallTurtle.png in Resources */ = {isa = PBXBuildFile; fileRef = A20AB97A0A5C622A004F81FA /* SmallTurtle.png */; };
     
    129128                A2A306600AAD24A80049E2AC /* UKKQueue.m in Sources */ = {isa = PBXBuildFile; fileRef = A2A306580AAD24A80049E2AC /* UKKQueue.m */; };
    130129                A2A306620AAD24A80049E2AC /* UKMainThreadProxy.m in Sources */ = {isa = PBXBuildFile; fileRef = A2A3065A0AAD24A80049E2AC /* UKMainThreadProxy.m */; };
     130                A2A6E3A00CA7E4C900F10FEF /* AboutWindow.nib in Resources */ = {isa = PBXBuildFile; fileRef = A2A6E39F0CA7E4C900F10FEF /* AboutWindow.nib */; };
    131131                A2AA579D0ADFCAB400CA59F6 /* PiecesView.m in Sources */ = {isa = PBXBuildFile; fileRef = A2AA579B0ADFCAB400CA59F6 /* PiecesView.m */; };
    132132                A2AE68330C628A35008753C9 /* Creator.nib in Resources */ = {isa = PBXBuildFile; fileRef = A2AE68310C628A35008753C9 /* Creator.nib */; };
     
    361361                A200B83A0A2263BA007BBB1E /* InfoWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = InfoWindowController.m; path = macosx/InfoWindowController.m; sourceTree = "<group>"; };
    362362                A2041D520C9AC523000ACFFB /* Lock.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = Lock.tiff; path = macosx/Images/Lock.tiff; sourceTree = "<group>"; };
    363                 A204310F0C5EAF490081E5CC /* Russian */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = Russian; path = macosx/Russian.lproj/AboutWindow.nib; sourceTree = "<group>"; };
    364363                A20431100C5EAF490081E5CC /* Russian */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = Russian; path = macosx/Russian.lproj/InfoPlist.strings; sourceTree = "<group>"; };
    365364                A20431110C5EAF490081E5CC /* Russian */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = Russian; path = macosx/Russian.lproj/InfoWindow.nib; sourceTree = "<group>"; };
     
    389388                A2265F3F0B5EF5F40093DDA5 /* FileNameCell.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = FileNameCell.h; path = macosx/FileNameCell.h; sourceTree = "<group>"; };
    390389                A2265F400B5EF5F40093DDA5 /* FileNameCell.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = FileNameCell.m; path = macosx/FileNameCell.m; sourceTree = "<group>"; };
    391                 A22A7EBB0C627FC200E30364 /* Greek */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = Greek; path = macosx/Greek.lproj/AboutWindow.nib; sourceTree = "<group>"; };
    392390                A22A7EBC0C627FC200E30364 /* Greek */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = Greek; path = macosx/Greek.lproj/InfoPlist.strings; sourceTree = "<group>"; };
    393391                A22A7EBD0C627FC200E30364 /* Greek */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = Greek; path = macosx/Greek.lproj/InfoWindow.nib; sourceTree = "<group>"; };
     
    397395                A22A7EC10C627FC200E30364 /* Greek */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = Greek; path = macosx/Greek.lproj/PrefsWindow.nib; sourceTree = "<group>"; };
    398396                A22BC9A20C5BBCF100F5FB72 /* BottomBorder.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = BottomBorder.png; path = macosx/Images/BottomBorder.png; sourceTree = "<group>"; };
    399                 A22BC9AD0C5C505200F5FB72 /* Korean */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = Korean; path = macosx/Korean.lproj/AboutWindow.nib; sourceTree = "<group>"; };
    400397                A22BC9AE0C5C505200F5FB72 /* Korean */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = Korean; path = macosx/Korean.lproj/InfoPlist.strings; sourceTree = "<group>"; };
    401398                A22BC9AF0C5C505200F5FB72 /* Korean */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = Korean; path = macosx/Korean.lproj/InfoWindow.nib; sourceTree = "<group>"; };
     
    404401                A22BC9B20C5C505300F5FB72 /* Korean */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = Korean; path = macosx/Korean.lproj/MessageWindow.nib; sourceTree = "<group>"; };
    405402                A22BC9B30C5C505300F5FB72 /* Korean */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = Korean; path = macosx/Korean.lproj/PrefsWindow.nib; sourceTree = "<group>"; };
    406                 A22BCA2D0C5D5CDA00F5FB72 /* Italian */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = Italian; path = macosx/Italian.lproj/AboutWindow.nib; sourceTree = "<group>"; };
    407403                A22BCA2E0C5D5CDA00F5FB72 /* Italian */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = Italian; path = macosx/Italian.lproj/InfoPlist.strings; sourceTree = "<group>"; };
    408404                A22BCA2F0C5D5CDA00F5FB72 /* Italian */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = Italian; path = macosx/Italian.lproj/InfoWindow.nib; sourceTree = "<group>"; };
     
    441437                A25FCDDD0A37695F002BCBBE /* PauseSelected.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = PauseSelected.png; path = macosx/Images/PauseSelected.png; sourceTree = "<group>"; };
    442438                A25FCDDE0A37695F002BCBBE /* ResumeSelected.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ResumeSelected.png; path = macosx/Images/ResumeSelected.png; sourceTree = "<group>"; };
    443                 A26039FC0C6338FB00F5FDFD /* Spanish */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = Spanish; path = macosx/Spanish.lproj/AboutWindow.nib; sourceTree = "<group>"; };
    444439                A26039FD0C6338FB00F5FDFD /* Spanish */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = Spanish; path = macosx/Spanish.lproj/Creator.nib; sourceTree = "<group>"; };
    445440                A26039FE0C6338FB00F5FDFD /* Spanish */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = Spanish; path = macosx/Spanish.lproj/InfoPlist.strings; sourceTree = "<group>"; };
     
    475470                A2A306590AAD24A80049E2AC /* UKMainThreadProxy.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = UKMainThreadProxy.h; path = macosx/UKKQueue/UKMainThreadProxy.h; sourceTree = "<group>"; };
    476471                A2A3065A0AAD24A80049E2AC /* UKMainThreadProxy.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = UKMainThreadProxy.m; path = macosx/UKKQueue/UKMainThreadProxy.m; sourceTree = "<group>"; };
     472                A2A6E39F0CA7E4C900F10FEF /* AboutWindow.nib */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = AboutWindow.nib; path = macosx/AboutWindow.nib; sourceTree = "<group>"; };
    477473                A2AA579A0ADFCAB400CA59F6 /* PiecesView.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = PiecesView.h; path = macosx/PiecesView.h; sourceTree = "<group>"; };
    478474                A2AA579B0ADFCAB400CA59F6 /* PiecesView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = PiecesView.m; path = macosx/PiecesView.m; sourceTree = "<group>"; };
     
    487483                A2BF078E0B066E0800757C92 /* SpeedLimitToTurtleIconTransformer.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = SpeedLimitToTurtleIconTransformer.h; path = macosx/SpeedLimitToTurtleIconTransformer.h; sourceTree = "<group>"; };
    488484                A2BF078F0B066E0800757C92 /* SpeedLimitToTurtleIconTransformer.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = SpeedLimitToTurtleIconTransformer.m; path = macosx/SpeedLimitToTurtleIconTransformer.m; sourceTree = "<group>"; };
    489                 A2C19EDA0C676F5200E0B235 /* French */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = French; path = macosx/French.lproj/AboutWindow.nib; sourceTree = "<group>"; };
    490485                A2C19EDB0C676F5200E0B235 /* French */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = French; path = macosx/French.lproj/Creator.nib; sourceTree = "<group>"; };
    491486                A2C19EDC0C676F5200E0B235 /* French */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = French; path = macosx/French.lproj/InfoWindow.nib; sourceTree = "<group>"; };
     
    504499                A2F6DB070A55F31C0058D1E5 /* SpeedLimitButton.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = SpeedLimitButton.png; path = macosx/Images/SpeedLimitButton.png; sourceTree = "<group>"; };
    505500                A2F8951E0A2D4BA500ED2127 /* Credits.rtf */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = Credits.rtf; path = macosx/Credits.rtf; sourceTree = "<group>"; };
    506                 A2FA345C0CA323DC00C432EE /* en */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = en; path = macosx/en.lproj/AboutWindow.nib; sourceTree = "<group>"; };
    507501                A2FA34610CA323EA00C432EE /* en */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = en; path = macosx/en.lproj/Creator.nib; sourceTree = "<group>"; };
    508502                A2FA34620CA323EA00C432EE /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = macosx/en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
     
    765759                                A21567EB0A9A5034004DECD6 /* MessageWindow.nib */,
    766760                                A2912C520A2956E80097A0CA /* PrefsWindow.nib */,
    767                                 A2085E000C53C16F000BC3B7 /* AboutWindow.nib */,
    768761                                A2AE68310C628A35008753C9 /* Creator.nib */,
     762                                A2A6E39F0CA7E4C900F10FEF /* AboutWindow.nib */,
    769763                                A20B6FA40C4D97840034AB1D /* PriorityNone.png */,
    770764                                A20B6F8B0C4D90980034AB1D /* PriorityMixed.png */,
     
    13431337                                A20B6FA50C4D97840034AB1D /* PriorityNone.png in Resources */,
    13441338                                A20B6FAE0C4D9B040034AB1D /* PriorityNormal.png in Resources */,
    1345                                 A2085E020C53C16F000BC3B7 /* AboutWindow.nib in Resources */,
    13461339                                A2085E3F0C53C949000BC3B7 /* LICENSE in Resources */,
    13471340                                A22BC9A30C5BBCF100F5FB72 /* BottomBorder.png in Resources */,
     
    13531346                                A2041D530C9AC523000ACFFB /* Lock.tiff in Resources */,
    13541347                                A24872B60C9B6BB9000F5B92 /* Advanced.png in Resources */,
     1348                                A2A6E3A00CA7E4C900F10FEF /* AboutWindow.nib in Resources */,
    13551349                        );
    13561350                        runOnlyForDeploymentPostprocessing = 0;
     
    16231617                        sourceTree = "<group>";
    16241618                };
    1625                 A2085E000C53C16F000BC3B7 /* AboutWindow.nib */ = {
    1626                         isa = PBXVariantGroup;
    1627                         children = (
    1628                                 A2FA345C0CA323DC00C432EE /* en */,
    1629                                 A22BC9AD0C5C505200F5FB72 /* Korean */,
    1630                                 A22BCA2D0C5D5CDA00F5FB72 /* Italian */,
    1631                                 A204310F0C5EAF490081E5CC /* Russian */,
    1632                                 A22A7EBB0C627FC200E30364 /* Greek */,
    1633                                 A26039FC0C6338FB00F5FDFD /* Spanish */,
    1634                                 A2C19EDA0C676F5200E0B235 /* French */,
    1635                         );
    1636                         name = AboutWindow.nib;
    1637                         sourceTree = "<group>";
    1638                 };
    16391619                A21567EB0A9A5034004DECD6 /* MessageWindow.nib */ = {
    16401620                        isa = PBXVariantGroup;
  • trunk/macosx/AboutWindow.nib/classes.nib

    r2788 r3156  
    77            OUTLETS = {
    88                fCopyrightField = NSTextField;
     9                fLicenseButton = NSButton;
    910                fLicenseSheet = NSPanel;
    1011                fLicenseView = NSTextView;
  • trunk/macosx/AboutWindow.nib/info.nib

    r2470 r3156  
    44<dict>
    55        <key>IBDocumentLocation</key>
    6         <string>17 91 356 240 0 0 1152 842 </string>
     6        <string>28 119 356 240 0 0 1680 1028 </string>
    77        <key>IBFramework Version</key>
    88        <string>446.1</string>
     
    1212        </array>
    1313        <key>IBSystem Version</key>
    14         <string>8R218</string>
     14        <string>8R4031</string>
    1515</dict>
    1616</plist>
  • trunk/macosx/AboutWindowController.h

    r3083 r3156  
    2929        IBOutlet NSTextView * fTextView, * fLicenseView;
    3030    IBOutlet NSTextField * fVersionField, * fCopyrightField;
     31    IBOutlet NSButton * fLicenseButton;
    3132    IBOutlet NSPanel * fLicenseSheet;
    3233}
  • trunk/macosx/AboutWindowController.m

    r3083 r3156  
    3535}
    3636
    37 #warning make completely localized
    38 - (void) windowDidLoad
     37- (void) awakeFromNib
    3938{
    4039    NSDictionary * info = [[NSBundle mainBundle] infoDictionary];
     
    4746    [[fTextView textStorage] setAttributedString: [[[NSAttributedString alloc] initWithPath:
    4847            [[NSBundle mainBundle] pathForResource: @"Credits" ofType: @"rtf"] documentAttributes: nil] autorelease]];
     48   
     49    //size license button
     50    float oldButtonWidth = [fLicenseButton frame].size.width;
     51   
     52    [fLicenseButton setTitle: NSLocalizedString(@"License", "About window -> license button")];
     53    [fLicenseButton sizeToFit];
     54   
     55    NSRect buttonFrame = [fLicenseButton frame];
     56    buttonFrame.size.width += 10.0;
     57    buttonFrame.origin.x -= buttonFrame.size.width - oldButtonWidth;
     58    [fLicenseButton setFrame: buttonFrame];
     59}
    4960
     61- (void) windowDidLoad
     62{
    5063    [[self window] center];
    5164}
Note: See TracChangeset for help on using the changeset viewer.