[vlc-commits] macosx: l10n fixes
Felix Paul Kühne
git at videolan.org
Sat Feb 11 16:11:34 CET 2012
vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Feb 11 16:10:39 2012 +0100| [f95fb133fa0a13e8a419e7e92d57bcfc77bd4e81] | committer: Felix Paul Kühne
macosx: l10n fixes
(cherry picked from commit ad0a2b09ca28c1cd295ed7a1dc8a9f22885c46a6)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=f95fb133fa0a13e8a419e7e92d57bcfc77bd4e81
---
modules/gui/macosx/coredialogs.m | 15 ++++++++-------
modules/gui/macosx/intf.m | 1 +
2 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/modules/gui/macosx/coredialogs.m b/modules/gui/macosx/coredialogs.m
index 42d05b4..86adb1f 100644
--- a/modules/gui/macosx/coredialogs.m
+++ b/modules/gui/macosx/coredialogs.m
@@ -230,14 +230,7 @@ static VLCCoreDialogProvider *_o_sharedInstance = nil;
[super init];
if( !b_nib_loaded )
- {
b_nib_loaded = [NSBundle loadNibNamed:@"ErrorPanel" owner:self];
-
- /* init strings */
- [o_window setTitle: _NS("Errors and Warnings")];
- [o_cleanup_button setTitle: _NS("Clean up")];
- [o_messages_btn setTitle: _NS("Show Details")];
- }
/* init data sources */
o_errors = [[NSMutableArray alloc] init];
@@ -246,6 +239,14 @@ static VLCCoreDialogProvider *_o_sharedInstance = nil;
return self;
}
+- (void)awakeFromNib
+{
+ /* init strings */
+ [o_window setTitle: _NS("Errors and Warnings")];
+ [o_cleanup_button setTitle: _NS("Clean up")];
+ [o_messages_btn setTitle: _NS("Show Details")];
+}
+
-(void)dealloc
{
[o_errors release];
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 0d4b5e2..50d3ddb 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -662,6 +662,7 @@ static VLCMain *_o_sharedMainInstance = nil;
/* we will need this, so let's load it here so the interface appears to be more responsive */
nib_open_loaded = [NSBundle loadNibNamed:@"Open" owner: NSApp];
+ [self initStrings];
}
- (void)initStrings
More information about the vlc-commits
mailing list