diff --git a/ChangeLog b/ChangeLog index ce6f21d32..668cce207 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-01-03 German Arias + + * Source/NSFontPanel.m: Added missing internationalisation. + * Resources/Spanish.lproj/Localizable.strings: More strings in spanish. + 2010-01-03 German Arias * Resources/Spanish.lproj/Localizable.strings: More strings in spanish. diff --git a/Resources/Spanish.lproj/Localizable.strings b/Resources/Spanish.lproj/Localizable.strings index d98297175..02c9d4d66 100644 --- a/Resources/Spanish.lproj/Localizable.strings +++ b/Resources/Spanish.lproj/Localizable.strings @@ -70,21 +70,27 @@ add comments above this one /*** Strings from ../Source/NSFontPanel.m ***/ -/* File: ../Source/NSFontPanel.m:542 */ +/* File: ../Source/NSFontPanel.m:239 */ +"Multiple fonts selected" = "Varias fuentes seleccionadas"; +/* File: ../Source/NSFontPanel.m:544 */ "Font Panel" = "Fuentes"; -/* File: ../Source/NSFontPanel.m:566 */ +/* File: ../Source/NSFontPanel.m:568 */ "Font preview" = "Vista Previa"; -/* File: ../Source/NSFontPanel.m:627 */ +/* File: ../Source/NSFontPanel.m:629 */ "Size" = "Tama\U00F1o"; -/* File: ../Source/NSFontPanel.m:685 */ +/* File: ../Source/NSFontPanel.m:687 */ "Revert" = "Revertir"; -/* File: ../Source/NSFontPanel.m:695 */ +/* File: ../Source/NSFontPanel.m:697 */ "Preview" = "Previa"; -/* File: ../Source/NSFontPanel.m:708 */ +/* File: ../Source/NSFontPanel.m:710 */ "Set" = "Aplicar"; -/* File: ../Source/NSFontPanel.m:1105 */ +/* File: ../Source/NSFontPanel.m:785 */ +"NoFamily" = "No hay fuente"; +/* File: ../Source/NSFontPanel.m:793 */ +"NoFace" = "No hay estilo"; +/* File: ../Source/NSFontPanel.m:1107 */ "Family" = "Fuente"; -/* File: ../Source/NSFontPanel.m:1109 */ +/* File: ../Source/NSFontPanel.m:1111 */ "Typeface" = "Estilo"; diff --git a/Source/NSFontPanel.m b/Source/NSFontPanel.m index a88f6bcb7..fa9c17d63 100644 --- a/Source/NSFontPanel.m +++ b/Source/NSFontPanel.m @@ -48,6 +48,8 @@ #include "AppKit/NSButton.h" #include "AppKit/NSBox.h" +#include "GSGuiPrivate.h" + #define _SAVE_PANEL_X_PAD 5 #define _SAVE_PANEL_Y_PAD 4 @@ -234,7 +236,7 @@ static float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, if (flag) { // TODO: Unselect all items and show a message - [previewArea setStringValue: @"Multiple fonts selected"]; + [previewArea setStringValue: _(@"Multiple fonts selected")]; _family = -1; _face = -1; } @@ -539,7 +541,7 @@ static float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, backing: NSBackingStoreRetained defer: YES screen: nil]; - [self setTitle: @"Font Panel"]; + [self setTitle: _(@"Font Panel")]; v = [self contentView]; @@ -563,7 +565,7 @@ static float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, [previewArea setSelectable: NO]; //[previewArea setUsesFontPanel: NO]; [previewArea setAlignment: NSCenterTextAlignment]; - [previewArea setStringValue: @"Font preview"]; + [previewArea setStringValue: _(@"Font preview")]; [previewArea setAutoresizingMask: (NSViewWidthSizable|NSViewHeightSizable)]; [previewArea setTag: NSFPPreviewField]; @@ -624,7 +626,7 @@ static float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, [label setEditable: NO]; [label setTextColor: [NSColor windowFrameTextColor]]; [label setBackgroundColor: [NSColor controlShadowColor]]; - [label setStringValue: @"Size"]; + [label setStringValue: _(@"Size")]; [label setAutoresizingMask: NSViewMinXMargin | NSViewMinYMargin]; [label setTag: NSFPSizeTitle]; [bottomSplit addSubview: label]; @@ -682,7 +684,7 @@ static float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, // cancel button revertButton = [[NSButton alloc] initWithFrame: revertButtonRect]; - [revertButton setTitle: @"Revert"]; + [revertButton setTitle: _(@"Revert")]; [revertButton setAction: @selector(cancel:)]; [revertButton setTarget: self]; [revertButton setTag: NSFPRevertButton]; @@ -692,7 +694,7 @@ static float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, // toggle button for preview previewButton = [[NSButton alloc] initWithFrame: previewButtonRect]; - [previewButton setTitle: @"Preview"]; + [previewButton setTitle: _(@"Preview")]; [previewButton setButtonType: NSOnOffButton]; [previewButton setAction: @selector(_togglePreview:)]; [previewButton setTarget: self]; @@ -705,7 +707,7 @@ static float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, // button to set the font setButton = [[NSButton alloc] initWithFrame: setButtonRect]; - [setButton setTitle: @"Set"]; + [setButton setTitle: _(@"Set")]; [setButton setAction: @selector(ok:)]; [setButton setTarget: self]; [setButton setTag: NSFPSetButton]; @@ -780,7 +782,7 @@ static float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, } if (_family == -1) { - familyName = @"NoFamily"; + familyName = _(@"NoFamily"); } else { @@ -788,7 +790,7 @@ static float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, } if (_face == -1 || ![_faceList count]) { - faceName = @"NoFace"; + faceName = _(@"NoFace"); } else { @@ -1102,11 +1104,11 @@ static int score_difference(int weight1, int traits1, { case NSFPFamilyBrowser: { - return @"Family"; + return _(@"Family"); } case NSFPFaceBrowser: { - return @"Typeface"; + return _(@"Typeface"); } default: {