Add missing internationalisation.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29189 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2010-01-02 17:09:11 +00:00
parent a180f7e40f
commit d83d3676c3
4 changed files with 56 additions and 49 deletions

View file

@ -1,3 +1,9 @@
2010-01-02 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSColorPanel.m,
* Source/NSOpenPanel.m,
* Source/NSSavePanel.m: Add missing internationalisation.
2009-12-31 Eric Wasylishen <ewasylishen@gmail.com> 2009-12-31 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSShadow.m, Headers/AppKit/NSShadow.h: * Source/NSShadow.m, Headers/AppKit/NSShadow.h:

View file

@ -222,7 +222,7 @@ static int _gs_gui_color_picker_mode = NSRGBModeColorPanel;
backing: NSBackingStoreRetained backing: NSBackingStoreRetained
defer: NO defer: NO
screen: nil]; screen: nil];
[self setTitle: @"Colors"]; [self setTitle: _(@"Colors")];
v = [self contentView]; v = [self contentView];
@ -284,7 +284,7 @@ static int _gs_gui_color_picker_mode = NSRGBModeColorPanel;
[_alphaSlider setMaxValue: MAX_ALPHA_VALUE]; [_alphaSlider setMaxValue: MAX_ALPHA_VALUE];
[_alphaSlider setFloatValue: MAX_ALPHA_VALUE]; [_alphaSlider setFloatValue: MAX_ALPHA_VALUE];
[_alphaSlider setContinuous: YES]; [_alphaSlider setContinuous: YES];
[_alphaSlider setTitle: @"Opacity"]; [_alphaSlider setTitle: _(@"Opacity")];
[[_alphaSlider cell] setBezeled: YES]; [[_alphaSlider cell] setBezeled: YES];
[_alphaSlider setTarget: self]; [_alphaSlider setTarget: self];
[_alphaSlider setAction: @selector(_alphaChanged:)]; [_alphaSlider setAction: @selector(_alphaChanged:)];

View file

@ -7,10 +7,10 @@
Author: Scott Christley <scottc@net-community.com> Author: Scott Christley <scottc@net-community.com>
Date: 1996 Date: 1996
Author: Daniel Bðhringer <boehring@biomed.ruhr-uni-bochum.de> Author: Daniel Boehringer <boehring@biomed.ruhr-uni-bochum.de>
Date: August 1998 Date: August 1998
Source by Daniel Bðhringer integrated into Scott Christley's preliminary Source by Daniel Boehringer integrated into Scott Christley's preliminary
implementation by Felipe A. Rodriguez <far@ix.netcom.com> implementation by Felipe A. Rodriguez <far@ix.netcom.com>
Author: Nicola Pero <n.pero@mi.flashnet.it> Author: Nicola Pero <n.pero@mi.flashnet.it>
@ -38,19 +38,20 @@
Boston, MA 02110-1301, USA. Boston, MA 02110-1301, USA.
*/ */
#include <Foundation/NSString.h> #import <Foundation/NSArray.h>
#include <Foundation/NSArray.h> #import <Foundation/NSBundle.h>
#include <Foundation/NSException.h> #import <Foundation/NSException.h>
#include <Foundation/NSFileManager.h> #import <Foundation/NSFileManager.h>
#include <Foundation/NSNotification.h> #import <Foundation/NSNotification.h>
#include <Foundation/NSURL.h> #import <Foundation/NSString.h>
#include "AppKit/NSApplication.h" #import <Foundation/NSURL.h>
#include "AppKit/NSBrowser.h" #import "AppKit/NSApplication.h"
#include "AppKit/NSBrowserCell.h" #import "AppKit/NSBrowser.h"
#include "AppKit/NSButton.h" #import "AppKit/NSBrowserCell.h"
#include "AppKit/NSForm.h" #import "AppKit/NSButton.h"
#include "AppKit/NSMatrix.h" #import "AppKit/NSForm.h"
#include "AppKit/NSOpenPanel.h" #import "AppKit/NSMatrix.h"
#import "AppKit/NSOpenPanel.h"
static NSString * static NSString *
pathToColumn(NSBrowser *browser, int column) pathToColumn(NSBrowser *browser, int column)
@ -87,7 +88,7 @@ static NSOpenPanel *_gs_gui_open_panel = nil;
- (void) _resetDefaults - (void) _resetDefaults
{ {
[super _resetDefaults]; [super _resetDefaults];
[self setTitle: @"Open"]; [self setTitle: _(@"Open")];
[self setCanChooseFiles: YES]; [self setCanChooseFiles: YES];
[self setCanChooseDirectories: YES]; [self setCanChooseDirectories: YES];
[self setAllowsMultipleSelection: NO]; [self setAllowsMultipleSelection: NO];
@ -129,7 +130,7 @@ static NSOpenPanel *_gs_gui_open_panel = nil;
else else
{ {
[_form abortEditing]; [_form abortEditing];
[[_form cellAtIndex: 0] setStringValue:@""]; [[_form cellAtIndex: 0] setStringValue: @""];
[_form setNeedsDisplay: YES]; [_form setNeedsDisplay: YES];
[_okButton setEnabled: YES]; [_okButton setEnabled: YES];
} }

View file

@ -32,29 +32,29 @@
Boston, MA 02110-1301, USA. Boston, MA 02110-1301, USA.
*/ */
#include <Foundation/NSAutoreleasePool.h> #import <Foundation/NSAutoreleasePool.h>
#include <Foundation/NSException.h> #import <Foundation/NSException.h>
#include <Foundation/NSFileManager.h> #import <Foundation/NSFileManager.h>
#include <Foundation/NSNotification.h> #import <Foundation/NSNotification.h>
#include <Foundation/NSPathUtilities.h> #import <Foundation/NSPathUtilities.h>
#include <Foundation/NSUserDefaults.h> #import <Foundation/NSUserDefaults.h>
#include <Foundation/NSURL.h> #import <Foundation/NSURL.h>
#include "AppKit/NSApplication.h" #import "AppKit/NSApplication.h"
#include "AppKit/NSBox.h" #import "AppKit/NSBox.h"
#include "AppKit/NSBrowser.h" #import "AppKit/NSBrowser.h"
#include "AppKit/NSBrowserCell.h" #import "AppKit/NSBrowserCell.h"
#include "AppKit/NSButton.h" #import "AppKit/NSButton.h"
#include "AppKit/NSEvent.h" #import "AppKit/NSEvent.h"
#include "AppKit/NSFont.h" #import "AppKit/NSFont.h"
#include "AppKit/NSForm.h" #import "AppKit/NSForm.h"
#include "AppKit/NSImage.h" #import "AppKit/NSImage.h"
#include "AppKit/NSImageView.h" #import "AppKit/NSImageView.h"
#include "AppKit/NSMatrix.h" #import "AppKit/NSMatrix.h"
#include "AppKit/NSPasteboard.h" #import "AppKit/NSPasteboard.h"
#include "AppKit/NSDragging.h" #import "AppKit/NSDragging.h"
#include "AppKit/NSSavePanel.h" #import "AppKit/NSSavePanel.h"
#include "AppKit/NSTextField.h" #import "AppKit/NSTextField.h"
#include "AppKit/NSWorkspace.h" #import "AppKit/NSWorkspace.h"
#include "GSGuiPrivate.h" #include "GSGuiPrivate.h"
@ -233,7 +233,7 @@ setPath(NSBrowser *browser, NSString *path)
r = NSMakeRect (8, 39, 291, 21); r = NSMakeRect (8, 39, 291, 21);
_form = [NSForm new]; _form = [NSForm new];
[_form addEntry: @"Name:"]; [_form addEntry: _(@"Name:")];
[_form setFrame: r]; [_form setFrame: r];
// Force the size we want // Force the size we want
[_form setCellSize: NSMakeSize (291, 21)]; [_form setCellSize: NSMakeSize (291, 21)];
@ -296,7 +296,7 @@ setPath(NSBrowser *browser, NSString *path)
r = NSMakeRect (148, 6, 71, 27); r = NSMakeRect (148, 6, 71, 27);
button = [[NSButton alloc] initWithFrame: r]; button = [[NSButton alloc] initWithFrame: r];
[button setBordered: YES]; [button setBordered: YES];
[button setTitle: @"Cancel"]; [button setTitle: _(@"Cancel")];
[button setImagePosition: NSNoImage]; [button setImagePosition: NSNoImage];
[button setTarget: self]; [button setTarget: self];
[button setAction: @selector(cancel:)]; [button setAction: @selector(cancel:)];
@ -312,7 +312,7 @@ setPath(NSBrowser *browser, NSString *path)
r = NSMakeRect (228, 6, 71, 27); r = NSMakeRect (228, 6, 71, 27);
_okButton = [[NSButton alloc] initWithFrame: r]; _okButton = [[NSButton alloc] initWithFrame: r];
[_okButton setBordered: YES]; [_okButton setBordered: YES];
[_okButton setTitle: @"OK"]; [_okButton setTitle: _(@"OK")];
[_okButton setImagePosition: NSImageRight]; [_okButton setImagePosition: NSImageRight];
[_okButton setImage: [NSImage imageNamed: @"common_ret"]]; [_okButton setImage: [NSImage imageNamed: @"common_ret"]];
[_okButton setAlternateImage: [NSImage imageNamed: @"common_retH"]]; [_okButton setAlternateImage: [NSImage imageNamed: @"common_retH"]];
@ -410,8 +410,8 @@ setPath(NSBrowser *browser, NSString *path)
- (void) _resetDefaults - (void) _resetDefaults
{ {
[self _setDefaultDirectory]; [self _setDefaultDirectory];
[self setPrompt: @"Name:"]; [self setPrompt: _(@"Name:")];
[self setTitle: @"Save"]; [self setTitle: _(@"Save")];
[self setAllowedFileTypes: nil]; [self setAllowedFileTypes: nil];
[self setAllowsOtherFileTypes: NO]; [self setAllowsOtherFileTypes: NO];
[self setTreatsFilePackagesAsDirectories: NO]; [self setTreatsFilePackagesAsDirectories: NO];
@ -1699,7 +1699,7 @@ createRowsForColumn: (int)column
{ {
display_progress = YES; display_progress = YES;
base_frac = count / 4; base_frac = count / 4;
progressString = [@"Reading Directory " stringByAppendingString: path]; progressString = [_(@"Reading Directory ") stringByAppendingString: path];
[super setTitle: progressString]; [super setTitle: progressString];
// Is the following really safe? // Is the following really safe?
[self flushWindow]; [self flushWindow];
@ -1848,7 +1848,7 @@ createRowsForColumn: (int)column
NSComparisonResult result; NSComparisonResult result;
NSRange range; NSRange range;
s = [[[aNotification userInfo] objectForKey:@"NSFieldEditor"] string]; s = [[[aNotification userInfo] objectForKey: @"NSFieldEditor"] string];
/* /*
* If the user typed in an absolute path, display it. * If the user typed in an absolute path, display it.