Added missing internationalisation (now is completed) and more strings in spanish

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29201 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
espectador 2010-01-04 01:41:31 +00:00
parent 359af6ae5c
commit d8ddbef28a
5 changed files with 33 additions and 6 deletions

View file

@ -1,3 +1,12 @@
2010-01-03 German Arias <german@xelalug.org>
* Source/NSPrintPanel.m,
* Source/NSPrintOperation.m,
* Source/GSThemeInspector.m: Added missing internationalisation, now is
completed (or so I hope).
* Resources/Spanish.lproj/Localizable.strings: More strings in spanish
(with this the translation to spanish is finished).
2010-01-03 Fred Kiefer <FredKiefer@gmx.de> 2010-01-03 Fred Kiefer <FredKiefer@gmx.de>
* Resources/English.lproj/Localizable.strings: Regenerate this file. * Resources/English.lproj/Localizable.strings: Regenerate this file.

View file

@ -50,6 +50,7 @@ add comments above this one
/* File: ../Source/GSHelpManagerPanel.m:101 */ /* File: ../Source/GSHelpManagerPanel.m:101 */
/* File: ../Source/NSAlert.m:1427 */ /* File: ../Source/NSAlert.m:1427 */
/* File: ../Source/NSPrintPanel.m:285 */ /* File: ../Source/NSPrintPanel.m:285 */
/* File: ../Source/NSPrintOperation.m:681 */
"OK" = "Aceptar"; "OK" = "Aceptar";
/* File: ../Source/GSPrintOperation.m:159 */ /* File: ../Source/GSPrintOperation.m:159 */
@ -89,6 +90,17 @@ add comments above this one
"Open" = "Abrir"; "Open" = "Abrir";
/*** Strings from ../Source/GSThemeInspector.m ***/
/* File: ../Source/GSThemeInspector.m:140 */
"Version: %@" = "Versi\U00F3n: %@";
/*** Strings from ../Source/NSPrintOperation.m ***/
/* File: ../Source/NSPrintOperation.m:680 */
"Error" = "Error";
"Printing error: %@" = "Error de impresi\U00F3n: %@";
/*** Strings from ../Source/NSFontPanel.m ***/ /*** Strings from ../Source/NSFontPanel.m ***/
/* File: ../Source/NSFontPanel.m:239 */ /* File: ../Source/NSFontPanel.m:239 */
"Multiple fonts selected" = "Varias fuentes seleccionadas"; "Multiple fonts selected" = "Varias fuentes seleccionadas";
@ -147,6 +159,10 @@ add comments above this one
/* File: ../Source/NSPrintPanel.m:284 */ /* File: ../Source/NSPrintPanel.m:284 */
"Sorry" = "Error"; "Sorry" = "Error";
"Faxing of print file not implemented" = "El faxeo de archivos no esta implementado"; "Faxing of print file not implemented" = "El faxeo de archivos no esta implementado";
/* File: ../Source/NSPrintPanel.m:467 */
/* File: ../Source/NSPrintPanel.m:602 */
/* File: ../Source/NSPrintPanel.m:609 */
"Manual" = "Manual";
/*** Strings from ../Source/GSInoPanel.m ***/ /*** Strings from ../Source/GSInoPanel.m ***/

View file

@ -33,6 +33,7 @@
#include "AppKit/NSTextView.h" #include "AppKit/NSTextView.h"
#include "AppKit/NSWindow.h" #include "AppKit/NSWindow.h"
#include "GSThemePrivate.h" #include "GSThemePrivate.h"
#include "GSGuiPrivate.h"
static NSTextField * static NSTextField *
new_label (NSString *value) new_label (NSString *value)
@ -136,7 +137,7 @@ static GSThemeInspector *sharedInspector = nil;
version = [[theme infoDictionary] objectForKey: @"GSThemeVersion"]; version = [[theme infoDictionary] objectForKey: @"GSThemeVersion"];
if ([version length] > 0) if ([version length] > 0)
{ {
version = [NSString stringWithFormat: @"Version: %@", version]; version = [NSString stringWithFormat: _(@"Version: %@"), version];
tf = new_label(version); tf = new_label(version);
[tf setFont: [NSFont systemFontOfSize: 12]]; [tf setFont: [NSFont systemFontOfSize: 12]];
[tf sizeToFit]; [tf sizeToFit];

View file

@ -60,6 +60,7 @@
#include "GNUstepGUI/GSEPSPrintOperation.h" #include "GNUstepGUI/GSEPSPrintOperation.h"
#include "GNUstepGUI/GSPDFPrintOperation.h" #include "GNUstepGUI/GSPDFPrintOperation.h"
#include "GNUstepGUI/GSPrintOperation.h" #include "GNUstepGUI/GSPrintOperation.h"
#include "GSGuiPrivate.h"
#define NSNUMBER(a) [NSNumber numberWithInt: (a)] #define NSNUMBER(a) [NSNumber numberWithInt: (a)]
#define NSFNUMBER(a) [NSNumber numberWithFloat: (a)] #define NSFNUMBER(a) [NSNumber numberWithFloat: (a)]
@ -676,8 +677,8 @@ static NSString *NSPrintOperationThreadKey = @"NSPrintOperationThreadKey";
{ {
[_view _cleanupPrinting]; [_view _cleanupPrinting];
[NSGraphicsContext setCurrentContext: oldContext]; [NSGraphicsContext setCurrentContext: oldContext];
NSRunAlertPanel(@"Error", @"Printing error: %@", NSRunAlertPanel(_(@"Error"), _(@"Printing error: %@"),
@"OK", NULL, NULL, localException); _(@"OK"), NULL, NULL, localException);
} }
NS_ENDHANDLER NS_ENDHANDLER
[self destroyContext]; [self destroyContext];

View file

@ -464,7 +464,7 @@ static NSPrintPanel *shared_instance;
manual = [printer stringForKey:@"DefaultManualFeed" inTable: @"PPD"]; manual = [printer stringForKey:@"DefaultManualFeed" inTable: @"PPD"];
if (manual) if (manual)
[control addItemWithTitle: @"Manual"]; [control addItemWithTitle: _(@"Manual")];
list = [printer stringListForKey:@"InputSlot" inTable: @"PPD"]; list = [printer stringListForKey:@"InputSlot" inTable: @"PPD"];
if ([list count]) if ([list count])
{ {
@ -599,14 +599,14 @@ static NSPrintPanel *shared_instance;
if (manual) if (manual)
{ {
if (selected == 0) if (selected == 0)
sel = @"Manual"; sel = _(@"Manual");
else else
selected--; selected--;
} }
if (sel == nil) if (sel == nil)
sel = [list objectAtIndex: selected]; sel = [list objectAtIndex: selected];
def = [printer stringForKey:@"DefaultInputSlot" inTable: @"PPD"]; def = [printer stringForKey:@"DefaultInputSlot" inTable: @"PPD"];
if ([sel isEqual: @"Manual"] == YES) if ([sel isEqual: _(@"Manual")] == YES)
{ {
[dict setObject: NSPrintManualFeed forKey: NSPrintPaperFeed]; [dict setObject: NSPrintManualFeed forKey: NSPrintPaperFeed];
/* FIXME: This needs to be more robust. I'm just assuming /* FIXME: This needs to be more robust. I'm just assuming