Added missing internationalisation and more strings in spanish

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29195 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Germán Arias 2010-01-03 18:35:25 +00:00
parent 0968f5097f
commit 4cce4bcf99
3 changed files with 32 additions and 19 deletions

View file

@ -1,3 +1,8 @@
2010-01-03 German Arias <german@xelalug.org>
* Source/NSFontPanel.m: Added missing internationalisation.
* Resources/Spanish.lproj/Localizable.strings: More strings in spanish.
2010-01-03 German Arias <german@xelalug.org>
* Resources/Spanish.lproj/Localizable.strings: More strings in spanish.

View file

@ -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";

View file

@ -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:
{