[vlc-commits] macosx: CAS: added i18n support

Felix Paul Kühne git at videolan.org
Fri Jun 1 00:08:12 CEST 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu May 31 23:14:02 2012 +0200| [069f969f50a620dfbe55f99a0fb69df2f9eafe3c] | committer: Felix Paul Kühne

macosx: CAS: added i18n support

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=069f969f50a620dfbe55f99a0fb69df2f9eafe3c
---

 modules/gui/macosx/ConvertAndSave.m |   14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/ConvertAndSave.m b/modules/gui/macosx/ConvertAndSave.m
index a77ee39..0a1c9ff 100644
--- a/modules/gui/macosx/ConvertAndSave.m
+++ b/modules/gui/macosx/ConvertAndSave.m
@@ -22,6 +22,7 @@
  *****************************************************************************/
 
 #import "ConvertAndSave.h"
+#import "intf.h"
 #import <vlc_common.h>
 #import <vlc_url.h>
 
@@ -49,7 +50,16 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
 
 - (void)awakeFromNib
 {
-    // i18n, bla
+    [_window setTitle: _NS("Convert & Save")];
+    [_cancel_btn setTitle: _NS("Cancel")];
+    [_ok_btn setTitle: _NS("Save")];
+    [_drop_lbl setStringValue: _NS("Drop Media here")];
+    [_drop_btn setTitle: _NS("Open Media...")];
+    [_profile_lbl setStringValue: _NS("Choose Profile")];
+    [_profile_btn setTitle: _NS("Customize")];
+    [_destination_lbl setStringValue: _NS("Choose Destination")];
+    [_destination_filename_stub_lbl setStringValue: _NS("Choose an output location")];
+    [_destination_filename_lbl setHidden: YES];
 }
 
 - (void)toggleWindow
@@ -110,7 +120,7 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
 
     if( carried_data ) {
         if( [desired_type isEqualToString:NSFilenamesPboardType] ) {
-            NSArray *values = [[o_paste propertyListForType: NSFilenamesPboardType] sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)];
+            NSArray *values = [[paste propertyListForType: NSFilenamesPboardType] sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)];
 
             if ([values count] > 0) {
                 [self setMRL: [NSString stringWithUTF8String:make_URI([[values objectAtIndex:0] UTF8String], NULL)]];



More information about the vlc-commits mailing list